Applescript error - NSCannotCreateScriptCommandError
Applescript error - NSCannotCreateScriptCommandError
- Subject: Applescript error - NSCannotCreateScriptCommandError
- From: Steve Palmer <email@hidden>
- Date: Wed, 7 Jul 2004 22:50:12 +0100
In trying to support a script construct like:
set foo to name of current task
where 'name' is a get method on a task object and 'current task' is a
task object returned by the NSApplication delegate, I'm getting:
2004-07-07 14:41:55.653 Vienna[2183] Error converting apple event to
script command: 10 "NSCannotCreateScriptCommandError"
Unfortunately the source is too long to post here so my question is:
what does this error actually mean? The Apple docs are unhelpful in
this regard and what are the possible things I may have overlooked in
trying to get this working. The dictionary shows that the 'current
task' and 'name' show up properly. Here's a snippet from the
scriptSuite file:
<key>Task</key>
<dict>
<key>AppleEventCode</key>
<string>flDR</string>
<key>Superclass</key>
<string>NSCoreSuite.AbstractObject</string>
<key>Attributes</key>
<dict>
<key>name</key>
<dict>
<key>AppleEventCode</key>
<string>flNm</string>
<key>ReadOnly</key>
<string>YES</string>
<key>Type</key>
<string>NSString</string>
</dict>
</dict>
</dict>
Any clues?
Thanks!
- Steve
_______________________________________________
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.