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

Program arguments


  • Subject: Program arguments
  • From: Mike Dougherty <email@hidden>
  • Date: Mon, 21 May 2007 08:04:04 -0700

Hello,

I've searched all over the place for an answer to this and have found nothing. So I joined this list and will pose my problem here in hopes someone has a solution.

I have an application that uses command line arguments to determine how it should behave when it runs. This appears to be an oddity when trying to make this application work with a Mac. So I thought I would wrap these command line options in AppleScripts in order make it easier for the users. However, now that I've spent 2+ days looking for an AppleScript solution, I am wondering if this is even possible either. So my question is: How do I pass command line arguments to an application in an applescript?

I would have expected something like:

tell application "Foobar" with arguments {"baz", "quux"}
  launch
end tell

But that doesn't work, nor does anything else I've tried.

Thanks for your time and help,
Mike



--
*********************************
Mike Dougherty
email@hidden
858.232.3635

http://www.google.com/talk/
*********************************



 _______________________________________________
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: Tobias Langlotz <email@hidden>
    • Re: Program arguments
      • From: James Nierodzik <email@hidden>
  • Prev by Date: Re: Which drive is a CD in?
  • Next by Date: Re: Program arguments
  • Previous by thread: Re: Quitting a Stay-open Application
  • Next by thread: Re: Program arguments
  • Index(es):
    • Date
    • Thread