FROM : has
DATE : Thu Nov 08 23:18:38 2007
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
DATE : Thu Nov 08 23:18:38 2007
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
| Related mails | Author | Date |
|---|---|---|
| Ken Victor | Nov 8, 22:10 | |
| has | Nov 8, 23:18 | |
| Ken Victor | Nov 8, 23:38 |






Cocoa mail archive

