• 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: Passing arguments to the script from command line.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing arguments to the script from command line.


  • Subject: Re: Passing arguments to the script from command line.
  • From: Brian Johnson <email@hidden>
  • Date: Wed, 12 Jan 2005 22:48:41 -0800 (PST)


On Wed, 12 Jan 2005, Andrew Oliver wrote:
On 1/12/05 3:20 AM, "Kumar Shailove" <email@hidden> wrote:

Hi List,
I have saved a script as an application. Is there any way to pass command line
arguments to the script, it this script is executed from the command line.

No can do. The only arguments you can currently pass into a script is a list of aliases when using your script as a droplet. No command-line options exist.

(deftly avoiding the dreaded top-post ....:)

I haven't actually cobbled together a test/demonstration of this, but the peacePipe package I wrote to get from apache to applescript uses a shell script on one end of the pipe, so someone _could_ set up a shell script to accept command-line arguments, package them for a CGI-style applescript, and pass it through peacePipe to get it run. I actually do this with a number of preset cron scripts, but without arguments.

  - brian johnson, dept of architecture, university of washington
      peacePipe:  quicksilver.caup.washington.edu/software/peacepipe

(if anybody actually undertakes to _do_ this, please email me for a bit of advice and info recently discovered to be missing from the release notes.. oops)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • latest shell script puzzlements
      • From: Barry Chern <email@hidden>
References: 
 >Re: Passing arguments to the script from command line. (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Passing arguments to the script from command line.
  • Next by Date: latest shell script puzzlements
  • Previous by thread: Re: Passing arguments to the script from command line.
  • Next by thread: latest shell script puzzlements
  • Index(es):
    • Date
    • Thread