• 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
Passing arguments to an AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing arguments to an AppleScript?


  • Subject: Passing arguments to an AppleScript?
  • From: Adam Knight <email@hidden>
  • Date: Fri, 26 Sep 2003 12:30:12 -0500

So I've looked into NSAppleScript and have it working for a simple script I need to use to control a second program (not mine). What I really need is a way to set variables in the script based on preferences in my own program.

There's a ton of documentation on how to make a program scriptable, but I can't find much on actually using AppleScript within a program. At this point I'm tempted to load the script from a text file, replace some strings, then compile and run it. Seems hackish since AppleScript supports arguments already (right?).

Of course, by posting I'll figure it out in a few minutes, but I'd appreciate any pointers anyway. :)
--
Adam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: NSTask taking control of my program
  • Next by Date: Re: cocoa-dev digest, Vol 2 #2964 - 15 msgs
  • Previous by thread: Non-document based saving
  • Next by thread: Re: Passing arguments to an AppleScript?
  • Index(es):
    • Date
    • Thread