Is it possible to embed AppleScript into a PHP script written for the command-line PHP interpreter? I tried using the Heredoc method to put an applescript into a string variable then run it through the shell but I keep getting a parse error no matter what I try.
For a short example, say I want to run this applescript from a PHP command line
script:
tell application "Safari"
activate
open location "http://www.php.net/"
end tell
How would I do it?
Thanks,
-Nick
