To call AppleScript from Python, I use the "appscript" bridge:
http://appscript.sourceforge.net/
What can I use to call AppleScript from Java on Mac OS X 10.6+?
To call AppleScript from Python, I use the "appscript" bridge:
http://appscript.sourceforge.net/
What can I use to call AppleScript from Java on Mac OS X 10.6+?
I don't know Java, but anything that can execute a command line tool can execute an AppleScript using
osascript
. I use it to execute AppleScripts from PHP and vim scripts.Here's an approach that works for me for Java on Mac OS X 10.6+. This example script fetches the creation date of the current folder: