URL and Applescript
URL and Applescript
- Subject: URL and Applescript
- From: Philippe Robin <email@hidden>
- Date: Sat, 30 Aug 2003 01:42:28 +0100
Hello,
I am trying to make my app respond to a URL scheme like xyz://abcd/
I have searches the list, found some precious help,
any following the advise i have tried to add applescript support to my
app.
Now my app successfully respond to
tell application "MyApp"
GetURL URL "test"
end tell
but when I click on the URL that should show in my app, my app starts
or activate and nothing else.
What do I do wrong, is the signature of my command wrong?
Here is the script suite...
<key>AppleEventCode</key>
<string>XYZW</string>
<key>Classes</key>
<dict>
<key>MyApp</key>
<dict>
<key>AppleEventCode</key>
<string>capp</string>
<key>Attributes</key>
<dict>
</dict>
<key>Superclass</key>
<string>NSApplication</string>
<key>SupportedCommands</key>
<dict>
<key>GetURL</key>
<string>handleGetURLScriptCommand:</string>
</dict>
</dict>
</dict>
<key>Commands</key>
<dict>
<key>GetURL</key>
<dict>
<key>AppleEventClassCode</key>
<string>GURL</string>
<key>AppleEventCode</key>
<string>GURL</string>
<key>Arguments</key>
<dict>
<key>URL</key>
<dict>
<key>AppleEventCode</key>
<string>gURL</string>
<key>Optional</key>
<string>YES</string>
<key>Type</key>
<string>NSString</string>
</dict>
</dict>
<key>CommandClass</key>
<string>NSScriptCommand</string>
</dict>
</dict>
<key>Name</key>
<string>MyApp</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.