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

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.

  • Follow-Ups:
    • Re: URL and Applescript
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: detecting keyedarchive data
  • Next by Date: NSDraggingInfo - > DragRef?
  • Previous by thread: Re: ATSUI in NSView
  • Next by thread: Re: URL and Applescript
  • Index(es):
    • Date
    • Thread