• 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
Applescript error - NSCannotCreateScriptCommandError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Applescript error - NSCannotCreateScriptCommandError
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Bidirectional up/down triangles in NSAttributedString?
  • Next by Date: Re: Strange printing issue
  • Previous by thread: Re: Bidirectional up/down triangles in NSAttributedString?
  • Next by thread: Re: Applescript error - NSCannotCreateScriptCommandError
  • Index(es):
    • Date
    • Thread