• 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: Program arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Program arguments


  • Subject: Re: Program arguments
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 21 May 2007 11:58:43 -0400

On 5/21/07, Mike Dougherty <email@hidden> wrote:
Also, calling the application as a shell script requires the AppleScript to
know the absolute path of the application before shipping the script. Since
this application, and its associated AppleScripts will be distributed to
users, who may put the application anywhere on their hard drive, I don't
think a shell script solution will work.

Ok, wait.

EITHER

(1) you have an icon for the app that the users double-click, in which
case the users have to be able to find that icon . . .

OR

(2) you have a command-line application, which can reside anywhere in
the user's PATH, and you only need to know the name.

Which is it?

If the application is built for OS X with the full .app directory etc,
then you can supply parameters to be passed to the executable when the
app is launched (by double-click or open) by adding them to a text
file in the resources directory.

For "do shell script" I believe you can use nohup, backgorunding (&),
and I/O redirection to get the app to go into the background without
leaving an open window.  But I'm not sure what AppleScript is adding
to the mix in this case - why not just make the launchable app a shell
script in the first place?





--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Program arguments
      • From: Mike Dougherty <email@hidden>
References: 
 >Program arguments (From: Mike Dougherty <email@hidden>)
 >Re: Program arguments (From: Tobias Langlotz <email@hidden>)
 >Re: Program arguments (From: Mike Dougherty <email@hidden>)

  • Prev by Date: Re: Program arguments
  • Next by Date: Re: Program arguments
  • Previous by thread: Re: Program arguments
  • Next by thread: Re: Program arguments
  • Index(es):
    • Date
    • Thread