Posts with the tag AppleScript

AppleScript

Language References

Applescript Language Guide PDF | HTML

Great Tools

The AppleScript Editor shipped with Mac OS X (or XCode...) PreFab UI Browser http://pfiddlesoft.com/uibrowser/ Script Debugger 4.5 http://www.latenightsw.com Smile http://www.satimage.fr/software/en/smile/index.html

Run a Terminal Command

http://developer.apple.com/library/mac/#technotes/tn2065/_index.html

set hostname to "www.apple.com"
do shell script "ping -c1 " & hostname

Resources

  • Wikipedia...

Read on

Shortcut to Access the Preview Application from Terminal using AppleScript

If you ever wanted to open PDF, JPEG, PNG files etc.

#!/bin/sh
# A simple bash script that uses Applescript to
# open multiple files in Preview. For example:
# "preview hello.png world.gif *.jpg"

if [ -z "$*" ]; then
 ...

Read on