Tuesday, August 11, 2009

Useful tip

From the inimitable Daring Fireball, how to see if an application is running with AppleScript:

tell application "System Events"

count (every process whose name is "BBEdit")

end tell

I modified that into tell application "System Events" to set syncpRunning to count (every process whose name is "Syncplicity") for my purposes.

No comments:

Post a Comment