calling osascript command from php
calling osascript command from php
- Subject: calling osascript command from php
- From: Paul Trilsbeek <email@hidden>
- Date: Fri, 15 Mar 2002 15:28:51 +0100
Hi,
I'm trying to call the osascript shell command from a php page, but I
can't get it to run. For example a script like this:
osascript -e 'list disks'
runs fine from the command line, but when I try to call it from php like this:
shell_exec("osascript -e \'list disks\'")
it does not work. A normal unix command like "ls" works fine like this:
shell_exec("ls")
I can imagine it has someting to do with permissions, but I would not
know how to work around this then. I noticed (using sherlock) that
there is an invisible file called "osascript" in the /bin directory,
but I can't access it from the terminal.
Any ideas? Could I change permissions of this invisible "osascript"
file/command?
Best regards,
Paul
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.