How to execute an application from php
1 answer
You can run the program osascript
through the PHP exec () function and pass the AppleScript code or file:
exec('osascript -e \'tell app "iTunes" to play\'');
exec('osascript path/to/script');
+10
source to share