• 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: Doug McNutt <email@hidden>
  • Date: Tue, 22 May 2007 10:21:02 -0600

At 09:09 -0700 5/22/07, Mike Dougherty wrote:
>Well, it is an app. that the user can double-click on to start.  But there's no reason why I can't also call it from the command line. Under normal circumstances the user can double click "Foobar.app" to start the app. But occasionally they would like to get "Alternate Behavior 1". Which calls "Foobar.app" with the argument "alternate1". So in a sense it is both, a Double Clickable .app bundle, and a command-line program. This being the case I thought using an AppleScript for this would have been a good choice to make alternate behaviors also double-clickable.

If it's just a few options and a single file path that you need, have a look at a drag and drop interface I once put together to pass a file for conversion to a variety of line ends. It uses a folder full of aliases to a single AppleScript to get different options. It could respond to double clicks in place of dropped file icons. The source code is all there.

<ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit>  52 kB
<ftp://ftp.macnauchtan.com/Software/LineEnds/ReadMe_fixends.txt>  4 kB
--

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
 _______________________________________________
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

References: 
 >Program arguments (From: Mike Dougherty <email@hidden>)
 >Re: Program arguments (From: Tobias Langlotz <email@hidden>)
 >Re: Program arguments (From: Mike Dougherty <email@hidden>)
 >Re: Program arguments (From: "Mark J. Reed" <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