The Useless BAT! Mac OS

For those without comedic tastes, the so-called experts at Wikipedia have an article about Mac OS X.

MacOS (originally named 'Mac OS X' until 2012 and then 'OS X' until 2016) is the current Mac operating system that officially succeeded the classic Mac OS in 2001. Although the system was originally marketed as simply 'version 10' of Mac OS, it has a history that is largely independent of the classic Mac OS. I recently replied to someone on the Low End Mac Facebook page who when responding to someone's query about a G5 used for music production, declared the Powermac G5 as, 'useless.' In part of my defense, I referenced this G5 review from Sound On Sound magazine, who were blown away by the G5. And they say that part of mac os is useless. Posted by 8 months ago. And they say that part of mac os is useless. Being pretty unfamiliar with batch files, I'm not sure of the functionality available, but there are two main scripting methods on OS X which are similar: AppleScript. AppleScript is a scripting language which lets you control OS X and many applications.

The default wallpaper for Mac OS X 10.3 'Panther', painted with oil on canvas, took Apple CEO Steve Jobs nearly three years to paint.

The Useless Bat Mac Os X

Mac OS X (the X stands for XPerience) is one of the greatest pieces of iArt ever created. It is the only painting of its kind to actually interact with iHuman iUsers by animating with the iUser's movements. In fact it is so interactive that it is mistaken for an operating system. Although no one can be sure, given the intense secrecy surrounding its development, it is believed that Mac OS X was created and implemented entirely by one being, Steve Jobs.

OS X is known for its extraordinary level of prettiness and is just the operating system to get if you love amazingly useful features such as smoke blowing across your desktop when you burn a disk. Features such as this are enhanced even more by the fact that you can make the smoke 'waft' across your desktop if you blow in the microphone. Clearly, OSX has been designed from the ground up to enable the most productive and useful experience imaginable.

  • 1History
  • 2Features

History[edit]

133BC-1959[edit]

BigD, a very experienced computer engineer, decided that he wanted to make a better OS than Windows, so he decided to code one from scratch. And 2 days later, he completed the software and started to distribute among his friends, which one of them happened to be Steve Jobs. They both got into a feud and they separated their ties. They stop being friends 32 days later and now, BigD is developing another newer software, called 'Mack OR D', ever since Steve Jobs made Mac OS X famous and gained copyright, rendering BigD stranded in the IT world without an OS to look after.

1960-1970[edit]

Mac

Steve Jobs, a descendant of Michelangelo, who one day, while thinking in his cardboard box outside Denny's, felt he was a shame to his family. One day while

Paint pallet Jobs used while creating Mac OS X. His quick use of the pallet made it all shiny, pixelated, and it spun.

scrimmaging through a garbage heap for food, he came across a painting kit. At that moment he just started painting feeling, 'possessed by Michelangelo.' Jobs then woke up one day and saw his finished piece of artwork. He was amazed by the fact that it glowed at night and that if he moved his paintbrush, a little arrow followed it. Snorting a bit of coke, Jobs named his piece Mac OS X.

Mac OS X was sent in to a venture corporation by Jobs, hoping to start his company Apple (named after the various colored and moldy apple cores he used as paint). His idea wasn't taken seriously (because no one takes homeless people seriously), but after repeated attempts Jobs finally....


...failed. So he kidnapped a white collar kind of person, killed him, and took his cloths. Jobs shaved with a keychain (took him five days) and tried for the last time. This time he was taken seriously and the Apple company was created

1980's-1990's[edit]

At first the company was useless, it had nothing to sell, and it was close to being shutdown. That is when an employee noticed an unframed painting on the wall. He asked Jobs who made it and Jobs said he did. The employee started to kiss his iAss quickly afterwards and this gave Jobs a wonderful idea. First every kiss-ass employee was fired, then Jobs showed his artwork to his technical team. They were amazed by the painting's look and user interface and the fact that they didn't need to put effort into it.

So they ifilmed the painting and tried to control it from a screen to no avail. Then somebody mentioned computers (this is the 80's by the way) and the team quickly worked on to create the worlds first personal computer (Microsoft was still unknown). They bought a tub of Legos, melted it, formed it into a box, and shoved a piece of glass in the front. The next step was to upload the Mac OS X into it, so they attempted to shove it. After repeated attempts they finally...

...failed, again. Someone brought up a neat-O idea, how bought mix the painting with UNIX. No one knew what that was, they thought it was a brand of chocolate. It was so they slobber the box with chocolate and attempt to shove the painting in. The person with the UNIX idea scolded the tech team and told them he meant the AT&T operating system. It was too late, the team had thrown the painting into a batch of melting UNIX chocolate bars and the plastic boxes. Steve Jobs saw this and became furious, but the batch exploded before the tech team was fired, and the iMac was born.

Today[edit]

The iMac is considered an important moment in art history and mistakenly in PC history. The original canvas, the Mac OS X, was destroyed, so in order to continue the survival of the Mac OS X, the OS is repainted in sweat shops in Taiwan and placed inside iMacs. The iMacean Military is now in a battle against the HP Pavilionites in some dude's basement in Chicago.

Features[edit]

Look[edit]

The painting is shiny due to its high level content of lead and melted toys. The blue background is said to be painted by technique known as neon lights.

Uselessness[edit]

  • Like most artwork, there are no uses.
  • I once uploaded porn on Mac OS X, but you can't enjoy it in an art gallery.
  • I tried to change the background, but I received an error that said I couldn't do that for I was 'vandalizing a great piece of artwork.'
  • Mac OS X is to be used as a scrapbook where cutouts of programs are pasted on.
  • Widgets are to be taped on the screen.

Games[edit]

OSX has a massive variety of fun, exciting games. These include:

The Useless Bat Mac Os 11

Bands[edit]

iwrestledabearonce was hired by Steve Jobs to write commercial songs Mac OS X, but, while they were recording the song, they all dropped their instruments on the floor, thus recording their first hit single. They continued mangling their instruments and screaming like banshees, thus creating their first album.

Mac OS X in iPods[edit]

One day during a conference meeting, Steve Jobs began doodling on a piece of sketch paper. This turned out to be a portable version of the Mac OS X painting. Once again, he and his staff made history in the electronics industry by sliding the small piece of paper into a plastic box. Thus, the birth of iPod.

Later, Jobs colored it and created the iPod with photos.

The iPod with video was conceived when a the tech team supervisor Joe put a portable TV behind the photo iPod. Steve Jobs painted the portable TV to mimic its background for consumer marketing reasons.

See also[edit]


Apple Product Range
iPods:iPod - iPod Mini - iPod Nano - iPod Yocto - iPod Lo-Fi - iPod Floppy - iPod chair - iPod Car - iPod Slim - iCan't Believe It's Not iPod - iCan't Believe It's Not Butter
iDevices:iMac - iPad - iNuke - iRon - Apple Watch - iMath - iHamster - iRaq - iPoop - iOwa - iRak - iRan - IEye - iBladder - iClothes - iBrows - iRack - iDiot - iCarly - iBauer - iWeapon - iSland
iHardware:iGraters - iSpell Key - MacBook - Euroipods - triPod - ehPod - YouPod - IHenge - iEarth - iPhone
iSoftware:iTunes - iMovie - iLinux - Mac OS X - Mac OS 10.5
i3rd Party Mods:iPod Nano 200gb Instructions - iTrip - iHack
iOthers:Neuroipods - iFraud - iCult
Retrieved from 'https://uncyclopedia.ca/w/index.php?title=Mac_OS_X&oldid=6029574'
The useless bat mac os 11HomeSahi - Open Source
Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.
edited June 2010 in Sahi - Open Source
Hi All,
I went through the following post and created batch mode execution of multiple test cases on Windows it does works fine. http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
But, I need to create a similar batch mode execution on Mac. For example, if we consider safari browser:
java -cp ..libant-sahi.jar net.sf.sahi.test.TestRunner 'C:SahiuserdatascriptsVita_G3_FrameworkTest_ScriptsExecution.suite' 'C:Program FilesSafariSafari.exe' 'http://s2k3-2106'; 'C:SahiuserdatascriptsVita_G3_FrameworkResultsSafari' Localhost 9999 1 'Safari.exe' 'Safari.exe' '-noframemerging'
I tried changing the directory to '/Users/VCadmin/Sahi/userdata/scripts/ ect /ect' and execute on Mac terminal, But this does not work.
How can i modify it to run on Mac machine? [ Since, C: and stuff don’t work on Mac]

Comments

  • Hi Narayan,
    Can you please give a example as to how to execute a test Suit on Mac OS X. I went through the documention and examples provided by sahi. Most of the examples are only for Windows. There are not many Mac or Linux examples.
    It would be really helpfull, if we have examples or documentaion for Mac and Linux also.
  • Hi Wasim,
    As stated here: http://sahi.co.in/w/Running+multiple+tests+in+batch+mode, you need to use the correct paths to the Safari executable
    Try:
    If 'open -a Safari' does not work, try with 'open' or '/full/path/to/Safari'
    Regards,
    Narayan
  • edited June 2010
    Thanks Narayan Open -a works.
    For other sahi users commands to work on Mac:
    switch over to sahi bin directory:
    cd sahi
    cd bin
    Safari Browser:
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a Safari' 'http://s2k3-2106.local/' 'scripts/Vita_G3_Framework/Results/Safari' Localhost 9999 1 'Safari' 'Safari' '-noframemerging'
    Firefox Browser:
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a Firefox' 'http://s2k3-2106.local/' 'scripts/Vita_G3_Framework/Results/Firefox' Localhost 9999 1 'Firefox' 'Firefox' '-profile browser/ff/profiles/sahi$threadNo -no-remote'
    Chrome:
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a 'Google Chrome' ' 'http://s2k3-2106.local/' 'scripts/Vita_G3_Framework/Results/Chrome' Localhost 9999 1 'Google Chrome' 'Google Chrome' '--user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking'
    [For Chrome - You need to use (open -a 'Google Chrome') in single quotes]. Ensure your proxy settings are set right.
    Batch mode execution works on Mac.
  • Thanks a lot wasimhbr for contributing back : )
    Regards,
    Narayan
  • Hi,
    Thanks for the usefull tips for using Sahi on MAC. It works great!
    I am still facing an issue using sahi in batch mode on MAC. The firefox profiles doesn't seem to work as the proxy settings are not done automatically when using the batch mode. Also I tried running Sahi on Safari but am getting out of memory error. I am sure I am missing out something. Please share if you have any insights.
    Regards,
    Pankaj Kumar
  • Hi Pankaj,
    You hit the same error as i got it. Even i struggled with this error. To be honest, i dono what’s going wrong here. I feel there might be something in depth we are missing or there might be a bug in Sahi or its something silly we are missing. (Narayan can put a light on this).
    First Part:
    I will tell you what I did to overcome this:
    1. Stop sahi proxy server.
    2. Change settings on safari such that it does not use proxy server.
    3. Close the browser.
    4. Launch browser and connect to some website like google.com
    5. Once google launches without using proxy server.
    6. Don’t close the browser, change back ur browser settings to use sahi proxy server .
    7. Go back to the terminal and start sahi.sh file from bin directory.
    8. Now launch you application, It will not throw Java out of memory error on console.
    9. Once its starts working then any number of times you can open and close browser no-issues.
    Second Part:
    When you are running scripts on windows you just call batch file which remains in the same bin directory until it completes execution on all browsers. But that’s not the case with Mac.
    After you complete execution on one browser, you need to set back the execution path to bin directory:
    I am sharing the code for .sh file i had written for my application:
    _________________________________________________________________
    #!/bin/bash
    echo 'Executing Automation Suite'
    cd ~
    cd Sahi/bin
    echo 'Execution on Safari'
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a Safari' 'http://s2k3-2106.verdad.local/' 'scripts/Vita_G3_Framework/Results/Safari' Localhost 9999 1 'Safari' 'Safari' '-noframemerging'
    echo 'Execution on Firefox'
    cd ~
    cd Sahi/bin
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a Firefox' 'http://s2k3-2106.verdad.local/' 'scripts/Vita_G3_Framework/Results/Firefox' Localhost 9999 1 'Firefox' 'Firefox' '-profile browser/ff/profiles/sahi$threadNo -no-remote'
    echo 'Execution on Google Chrome'
    cd ~
    cd Sahi/bin
    java -cp ../lib/ant-sahi.jar net.sf.sahi.test.TestRunner 'scripts/Vita_G3_Framework/Test_Scripts/Execution.suite' 'open -a 'Google Chrome' ' 'http://s2k3-2106.verdad.local/' 'scripts/Vita_G3_Framework/Results/Chrome' Localhost 9999 1 'Google Chrome' 'Google Chrome' '--user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking'
    echos 'Completed execution on all 3 browsers'
    cd ~
    cd Sahi/userdata/Scripts/Vita_G3_Framework/Test_Scripts - (Replace this with your path)
    _____________________________________________________________________________
    You can execute this script from any where but change the paths accordingly.
    Launch firefox manually once and check if is it launching. while scripting be carefull with case. Mac is case sensitive.
    We can successfuly do a batch mode execution, Give a try !!
  • Hi wasimhbr,
    Thanks for your valuable inputs. I tried the steps you have suggested but it is not working for me. The strange thing is that I was able to execute my scripts individually through the Sahi controller earlier. After I tried my hands on batch execution using sahi suites I started getting the errors like:But now i get the same error even if try to execute a single script through the sahi controller.
    This is happenning on both Firefox as well as Safari.
    I also tried fiddling with the heap size using the -Xms and -Xmx parameters.
    I updated my sahi.sh like this:Please let me know where I am doing it wrong or any suggestions/workrounds.
    This error message provided here is just a snippet of the long error message. I can mail the complete error message if needed.
    Regards,
    Pankaj
  • Hi,
    Got the problem resolved for the single script execution through Sahi controller.
    Honestly speaking the problem is still not clear to me but what I did was update Java, restart the MAC, and download fresh copy of Sahi. This worked for me. Now I will try to work upon the suite/batch thing. Lets see which way the cookie crumbles!
    I will keep posting my findings.
    Regards,
    Pankaj Kumar
  • Guys the problem of outofmemory is because of how Java uses proxy settings on Mac.
    We configure the browser to use Sahi as its proxy.
    On Mac, Java uses the system wide proxy. So now, Browser and Java both use Sahi as its proxy. (What wasimhbr noticed. If you configure the proxy and then start Java, it will use Sahi as its proxy too. If you change the proxy after starting Java, then things are fine)
    It should have been
    browser -> Sahi -> Java (urlconnection) -> Website
    but it has become
    browser -> Sahi -> Java (urlconnection picks Sahi proxy now) -> Sahi
    This is where the recursion comes in.
    To fix this, open userdata.properties and set these properties:
    Basically we are forcing Java to use a direct connection here.
    Let me know if this fixes your issue.
    Regards,
    Narayan
  • Thanks Narayan!
    I tried the same and was able to execute the batch/suite. But I had to keep
    ext.http.proxy.enable=false
    and also had to follow the sequence mentioned by wasimhbr. The only challenge remaining is to use profiles to automatically set firefox proxy settings.
    I have the following shell script that will automatically invoke sahi proxy and then launch the suite runner:This works fine if I have already set the Firefox proxy to point to localhost:9999
    But the suite execution on Safari through my shell script still gives the out of memory error.
    Regards,
    Pankaj Kumar
  • Hi, i'm trying to launch suites on MAC OS X, too (i have 10.6.3) and i'm experiencing problems, though i've read instruction and this post carefully and tried to do all according to them.
    For example, i'm trying to run test under Safari (running from sahi/bin dir):
    after this, i'm getting a message from which i think that everything is right in syntax:
    In other terminal tab, where Sahi server is running, i get:
    So suite file was accessed and Sahi tells that it's running scripts, but browaser not opens and nothing happens.
    After some time, a log file appears telling:
    I'm not getting any other error messages so i don't understand what exactly i make wrong. Can you please help me? ( i removed site URLs from post because forum not allows me to post them)
  • edited July 2010
    btw i've tried absolute path to browser as well (/Applications/Safari.app/Contents/MacOS/Safari) and tried the same for FireFox and Chrome, with same effect.
  • There are couple of things that might be causing this:
    1. If you are trying on Safari Browser, you need to change the browser security settings to always accept cookies.
    2. Just have a look at relative paths.
    3. Try launching browser from terminal and check whether you are able to launch your application.
    4. Execute a single script before running a batch script.
    5. Re-verify the Sahi proxy settings.
  • Hi, i've re-checked all of these several times and i sure in all settings and paths, running 'open -a Safari' or 'open -a Firefox' in terminal also works. Running single script is not working too (but works manually through Sahi tool)
  • Hi,
    Do ensure that you have followed the instructions provided by wasimhbr (post #7 in this thread) and Narayan (post #10 in this thread).
    Regards,
    Pankaj
  • Hi Psylence,
    For Safari, browserOptions should be blank.
    Regards,
    Narayan
  • Hi,
    I want to do the following on MAC+Safari:
    1. Write a shell script that does the following:
    > Launch the sahi proxy as a background job
    > Run a suite
    Now my problem is that if I follow the mentioned sequence I have to first manually set Safari to use sahi as its proxy listening at port 9999. Now if I execute my shell script it goes into an endless loop resulting into Out of memory error. I tried all the suggestions given above, but in vain.
    Please give some suggestion.
    Regards,
    Pankaj Kumar
  • Hi all,
    i moved a step further but i still cannotmake things working for me.
    FIrst, browser finally opens (that's good), but only if browserOptions is empty (that relates to FireFox, too, not only to Safari)
    Second, when i set proxy options in Safari (on MacOS these are global system proxy options) i getting the same out of memory error already described above. So i'm able to use only FF.
    Third, and the worst problem is that Sahi ignores port for some reason when i'm trying to run batch job. I mean, i'm using port 3000 to run my local application that i test and i'm providing URL with port when runnning batch job, but after opening browser, Sahi tries to open URL without port (and of course, cannot reach application). I think it's a bug.
    Regards, psylence
  • Hi again,
    I finally managed to run tests, by changing my app port from 3000 to 80, but i still think that it would be greate for Sahi to support custom ports in batch mode, as many developers use them.
    psylence