• 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: Executing AppleScript from NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing AppleScript from NSString?


  • Subject: Re: Executing AppleScript from NSString?
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 23 Dec 2001 17:06:20 -0500

on 01-12-23 3:59 PM, Enigmarelle Development at email@hidden
wrote:

> You could pass it to osascript I think (never done it). man osascript in
> terminal.
> "osascript executes the given script file, or standard input if none is
> given."

You should also be able to do it using the new features offered by
AppleScript Studio, although I haven't gotten quite this far with ASS yet.
ASS allows you, somehow, to substitute AppleScript statements for
Objective-C code in a Cocoa application.

One possibility would be to call the Run Script AppleScript command
implemented in the Standard Additions scripting addition. Run Script can
take a string as its direct parameter, as long as the string is a valid
AppleScript statement.

But there may be a more direct way to do it.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont


References: 
 >Re: Executing AppleScript from NSString? (From: Enigmarelle Development <email@hidden>)

  • Prev by Date: Re: Executing AppleScript from NSString?
  • Next by Date: ANN: DisplayKit 1.0 released
  • Previous by thread: Re: Executing AppleScript from NSString?
  • Next by thread: Re: Executing AppleScript from NSString?
  • Index(es):
    • Date
    • Thread