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

Re: URL and Applescript


  • Subject: Re: URL and Applescript
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 29 Aug 2003 22:38:36 -0700

On Friday, August 29, 2003, at 05:42 PM, Philippe Robin wrote:

Now my app successfully respond to
tell application "MyApp"
GetURL URL "test"
end tell

First of all, this is the wrong command. It should look like this:

tell application "MyApp" to GetURL "test://test"

Note the absence of the "URL" argument. The object for the command has to be the URL, or else it won't work with applications that do send the event to other applications.

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?

This is the correct way to do it: <http://cocoa.mamasam.com/MACOSXDEV/2002/01/1/21537.php>

The example uses the old plist format, but you can treat it as a specification and write something using the new format using Property List Editor.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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.
References: 
 >URL and Applescript (From: Philippe Robin <email@hidden>)

  • Prev by Date: Re: ATSUI in NSView
  • Next by Date: AOL Service over Broadband - network problems for applications?
  • Previous by thread: URL and Applescript
  • Next by thread: NSDraggingInfo - > DragRef?
  • Index(es):
    • Date
    • Thread