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

Re: Applescript error - NSCannotCreateScriptCommandError


  • Subject: Re: Applescript error - NSCannotCreateScriptCommandError
  • From: Steve Palmer <email@hidden>
  • Date: Thu, 15 Jul 2004 19:38:48 -0700

Resending:

Can you show us your scriptSuite and scriptTerminology files?

scriptSuite:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>Name</key>
<string>TestApp</string>
<key>AppleEventCode</key>
<string>Tsta</string>

<key>Classes</key>
<dict>
<key>TestApp</key>
<dict>
<key>AppleEventCode</key>
<string>capp</string>
<key>Superclass</key>
<string>NSCoreSuite.NSApplication</string>
<key>ToManyRelationships</key>
<dict>
<key>tasks</key>
<dict>
<key>Type</key>
<string>Task</string>
<key>AppleEventCode</key>
<string>taSK</string>
</dict>
</dict>
<key>Attributes</key>
<dict>
<key>currentTask</key>
<dict>
<key>AppleEventCode</key>
<string>cuTA</string>
<key>ReadOnly</key>
<string>YES</string>
<key>Type</key>
<string>Task</string>
</dict>
</dict>
</dict>
<key>Task</key>
<dict>
<key>AppleEventCode</key>
<string>taSK</string>
<key>Superclass</key>
<string>NSCoreSuite.AbstractObject</string>
<key>Attributes</key>
<dict>
<key>name</key>
<dict>
<key>AppleEventCode</key>
<string>taNm</string>
<key>ReadOnly</key>
<string>YES</string>
<key>Type</key>
<string>NSString</string>
</dict>
</dict>
</dict>
</dict>
</dict>
</plist>

scriptTerminology:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>Description</key>
<string>Test Script Suite</string>
<key>Name</key>
<string>Test Suite</string>

<key>Classes</key>
<dict>
<key>TestApp</key>
<dict>
<key>Description</key>
<string>Test</string>
<key>Name</key>
<string>application</string>
<key>PluralName</key>
<string>applications</string>
<key>Attributes</key>
<dict>
<key>currentTask</key>
<dict>
<key>Description</key>
<string>Returns the current task</string>
<key>Name</key>
<string>current task</string>
</dict>
</dict>
</dict>
<key>Task</key>
<dict>
<key>Name</key>
<string>task</string>
<key>PluralName</key>
<string>tasks</string>
<key>Attributes</key>
<dict>
<key>name</key>
<dict>
<key>Description</key>
<string>The name</string>
<key>Name</key>
<string>name</string>
</dict>
</dict>
</dict>
</dict>
</dict>
</plist>




On Jul 11, 2004, at 2:54am, Nick Zitzmann wrote:

On Jul 10, 2004, at 4:27 PM, Steve Palmer wrote:

then the breakpoint to retrieve 'current task' in the NSApplication
derived class is hit and THEN it hits the -objectSpecifier function.
I'm probably missing something fundamental. Is my AppleScript syntax
correct here? I should add that I did search the archives but none of
the original discussions enlightened me.

Can you show us your scriptSuite and scriptTerminology files?

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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.


- 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.
_______________________________________________
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>
References: 
 >Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Controllers and Views
  • Next by Date: Re: Applescript error - NSCannotCreateScriptCommandError
  • Previous by thread: Re: Applescript error - NSCannotCreateScriptCommandError
  • Next by thread: Re: Applescript error - NSCannotCreateScriptCommandError
  • Index(es):
    • Date
    • Thread