views:

467

answers:

2

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
wow that's neat +1 for coolness
mcgrailm
A: 

www is not allowed to do that ...it seems

yh