Re: URL and Applescript
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.