• 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: NSAppleScript - executeAndReturnError & suspendExecution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript - executeAndReturnError & suspendExecution


  • Subject: Re: NSAppleScript - executeAndReturnError & suspendExecution
  • From: has <email@hidden>
  • Date: Thu, 8 Nov 2007 22:18:38 +0000

Ken Victor wrote:

my app uses [NSAppleScript executeAndReturnError] to execute apple
scripts from its scripts menu. this works fine for many of the
functions in my app that may be invoked via an applescript. however...

if the applescript tells my app to print something, then in my
handling of the script, i will call:
	[NSAppleScript suspendExecution]
	[NSPrintOperation runOperationModalForWindow: ...]
and then in the delegate for runOperationModalForWindow... i call
	[NSAppleScript resumeExecutionWithResult:]


You appear to be confusing NSAppleScript with NSScriptCommand: - suspendExecution and -resumeExecutionWithResult: belong to the latter, not the former.

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSAppleScript - executeAndReturnError & suspendExecution
      • From: Ken Victor <email@hidden>
  • Prev by Date: Re: Best pattern to follow for scheduling an event
  • Next by Date: Re: Determining if firewall is active
  • Previous by thread: NSAppleScript - executeAndReturnError & suspendExecution
  • Next by thread: Re: NSAppleScript - executeAndReturnError & suspendExecution
  • Index(es):
    • Date
    • Thread