Jump to content

run aaplescript / application from PHP


markjoe

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.