markjoe Posted December 15, 2006 Share Posted December 15, 2006 I want to find a way to activate applescripts from PHP. The purpose here is to automate some operations on my web server (that I have applescripts for) from a web interface. The applescripts can be complied as applications also, if that makes any difference. Otherwise the are just like any other executable script file. I tried digging around the PHP functions, but didn't find any that looked like what I'm looking for. I know this may be a long shot. Link to comment https://forums.phpfreaks.com/topic/30725-run-aaplescript-application-from-php/ Share on other sites More sharing options...
trq Posted December 15, 2006 Share Posted December 15, 2006 Take a look at [url=http://php.net/exec]exec[/url] and its related functions. Link to comment https://forums.phpfreaks.com/topic/30725-run-aaplescript-application-from-php/#findComment-141642 Share on other sites More sharing options...
markjoe Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks alot, that looks like the function to do it.Having a few problems with it though. The www user does not have shell access by default, so I tried to add shell access to the www user by setting the shell for the www user to /bin/bash in Netinfo Manager. I still can't get shell access with the www user. I can issue commands like 'whoami' and 'pwd', but cannot run './hello.app'. ('./hello.app' works from the command line) But that may be for a different forum.Thanks again for the help. Link to comment https://forums.phpfreaks.com/topic/30725-run-aaplescript-application-from-php/#findComment-141837 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.