How to execute an application from php

Does anyone know how to tell php to execute applescript?

+2


source to share


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







All Articles