• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
calling osascript command from php
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: calling osascript command from php
      • From: James Sentman <email@hidden>
  • Prev by Date: Re: The Ones & Oh's of Logic
  • Next by Date: General applescript questions
  • Previous by thread: Re: The Ones & Oh's of Logic
  • Next by thread: Re: calling osascript command from php
  • Index(es):
    • Date
    • Thread