Anyone know how to tell php execute a applescript?
+4
A:
You can run the program osascript
via PHP's exec() function and pass AppleScript code or a file:
exec('osascript -e \'tell app "iTunes" to play\'');
exec('osascript path/to/script');
Ferdinand Beyer
2009-10-03 12:56:24
wow that's neat +1 for coolness
mcgrailm
2010-04-10 11:33:14