Problems with making my app scriptable
Problems with making my app scriptable
- Subject: Problems with making my app scriptable
- From: Jesus De Meyer <email@hidden>
- Date: Fri, 11 Apr 2003 22:41:20 +0200
My app has a scriptSuite and has the scriptTerminology. When I start
ScriptEditor and type the following script:
tell application "AW"
set x to get song of track
end tell
Both song and track show up as variables (green) instead of objects
(blue). When I check the dictionary I do get the AW Suite where there
is a Track specified with a song property that returns a unicode text.
So obviouly when running the script I get the error that the variables
song and track are not defined.
Below are the scriptSuite and the (localized) scriptTerminology. Thanks
for any help
<?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>AppleEventCode</key>
<string>AWav</string>
<key>Classes</key>
<dict>
<key>AWController</key>
<dict>
<key>AppleEventCode</key>
<string>AWCO</string>
<key>Attributes</key>
<dict>
<key>songPlaying</key>
<dict>
<key>AppleEventCode</key>
<string>AWsp</string>
<key>Type</key>
<string>NSString</string>
</dict>
</dict>
<key>Superclass</key>
<string>NSCoreSuite.AbstractObject</string>
</dict>
</dict>
<key>Name</key>
<string>AW</string>
</dict>
</plist>
*********
<?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>Classes</key>
<dict>
<key>AWController</key>
<dict>
<key>Attributes</key>
<dict>
<key>songPlaying</key>
<dict>
<key>Description</key>
<string>The current song that is playing</string>
<key>Name</key>
<string>song</string>
</dict>
</dict>
<key>Description</key>
<string>A track</string>
<key>Name</key>
<string>Track</string>
<key>PluralName</key>
<string>Tracks</string>
</dict>
</dict>
<key>Description</key>
<string> AW specific classes</string>
<key>Name</key>
<string>AW suite</string>
</dict>
</plist>
_______________________________________________
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.