Skip to Content

Submit your nominations for the Luxist Awards' Best in Decor
AOL Tech

SystemEvents posts

Filed under: Features, How-tos

AppleScript: Finder commands

Now that you've mastered the tell command, it's time to introduce some of the other AppleScript commands that you may encounter.

Location command
This command will allow you to open a specific location (either on your Mac or on a web server). This command is most often used with the Finder. For instance, if you wanted to open "www.tuaw.com," then you would type:

tell application "Finder" to open location "http://www.tuaw.com"

Remember, when dealing with an application always include quote marks around the application name. When you're typing a URL, be sure to include the prefix (HTTP:, AFP:, FTP:, etc.) and include quote marks around the URL. You can also tell a specific web browser to open the URL:

tell application "Safari" to open location "http://www.tuaw.com"

However, if you use the Finder version of the script, it will open your default browser.

Continue readingAppleScript: Finder commands

Filed under: Software, Mods

Export Stickies text via Applescript

As you may know, Apple's Stickies isn't directly scriptable via Applescript (technically, you can send a system event). Still, one enterprising soul has discovered a work around, and posted it to Mac OS X Hints. His script creates a new text file, one for each Sticky. Once you've got your text file, you can do whatever you wish with it.

The script's author notes that his script only works on text for the time being; images will not be exported.

As reader Eric notes, this script is for the Stickies application, not the Dashboard widget. Ignore the fact that I used an image of the widget for this post (it just looked so nice).

Tip of the Day

Reply in the Mail.app with a specific quote.
Select the text you want quoted and then hit the reply button.
Only your selected text will copied to the reply email.


Follow us on Twitter!
 TUAW [Cafepress]

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

More Apple Analysis

AOL Radio TUAW on Stitcher