Anyone know how to tell php execute a applescript?
1 Answer
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');
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');