Basic Apple Script

Posted by on Jan 9, 2013 in Apple, Mac | No Comments

On your desktop, create a folder called test. Inside the test folder, create a folder called tester. Now open a finder window and navigate to a random location, like home, but not one of these folders.

Now open the AppleScript Editor and paste the code below into the AppleScript Editor input window (the top pane).

tell application "Finder" to set the target of the front Finder window to folder "tester" of folder "test" of desktop

The finder will automatically open the tester folder in the foremost open window.

A complete tutorial here:

http://www.macosxautomation.com/applescript/firsttutorial/index.html

Email this to someoneTweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on StumbleUponShare on RedditDigg this

Leave a Reply