Re: Applescript error - NSCannotCreateScriptCommandError
Re: Applescript error - NSCannotCreateScriptCommandError
- Subject: Re: Applescript error - NSCannotCreateScriptCommandError
- From: Steve Palmer <email@hidden>
- Date: Sun, 11 Jul 2004 21:30:35 +0200
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.