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
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.