• 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
Re: CGIs with OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGIs with OSX


  • Subject: Re: CGIs with OSX
  • From: T&B <email@hidden>
  • Date: Mon, 2 Apr 2001 17:41:38 +1000

AFAIK the command "osascript" works with files, not strings.

No, osascript does both :-) The man page doesn't make it clear:

"DESCRIPTION
osascript executes the given script file, or standard input if none is
given."

but it does work. To prove it, try this via Telnet:

/usr/bin/osascript '2+3'

which compiles on the fly and gives the result of 5.

Since you can give it strings, it compiles on the fly and can include variables for dynamic output.

Tom
T&B
http://www.tandb.com.au


  • Follow-Ups:
    • Re: CGIs with OSX
      • From: Timothy Bates <email@hidden>
    • Re: CGIs with OSX
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: [Admin?]
  • Next by Date: Re: CGIs with OSX
  • Previous by thread: Coordinating a sequence of events
  • Next by thread: Re: CGIs with OSX
  • Index(es):
    • Date
    • Thread