Does any one know how to call an AppleScript from PHP (and pass it variables} and then have the results returned to the PHP script as a string???
Using
Code:
$foobar = system('/usr/bin/osascript /path/to/script');
Doesn’t return the results.
I tried
Code:
$foobar = `/usr/bin/osascript /path/to/script`;
That NORMALY returns the results of shell commands, but doesn’t seem to work for my AppleScript... Perhaps because the AppleScript is taking to long to supply the results?????
Even once I get the results back to PHP, I will still have the problem with needing to pass the AppleScript variables...