Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > PHP calling applescript (PLEASE HELP!!)

PHP calling applescript (PLEASE HELP!!)
Thread Tools
Grizzled Veteran
Join Date: Oct 2000
Location: Vancouver
Status: Offline
Reply With Quote
Nov 22, 2002, 12:27 PM
 
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...
Alex Duffield
http://www.incontrolsolutions.com
Fatal error: Call to undefined function: signature() in /usr/local/www/htdocs/showthread.php on line 813
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2