Re: Error with GURL/GURL
Re: Error with GURL/GURL
- Subject: Re: Error with GURL/GURL
- From: jj <email@hidden>
- Date: Mon, 21 Jun 2004 15:00:38 +0200
>
Can someone tell me what's wrong with this simple script (which used to
>
work under Jaguar AFAIR):
>
>
tell application "Finder"
>
open location "http://sourceforge.net/projects/rezilla"
>
end tell
>
>
I get an error, something like "Some data do not have the correct type"
>
>
The dictionary for Standard additions says:
>
"open location: Opens a URL with the appropriate program
>
open location plain text -- the URL to open
>
[error reporting boolean] -- Should error conditions be
>
reported in a dialog?"
"open location" is part of the Standard Addition osax, and the Finder thinks
it should handle the GURLGURL event. Simply move it out of the "tell block".
Eg:
open location "
http://sourceforge.net/projects/rezilla"
Or, if you need it so bad:
tell application "Finder"
tell me to open location "
http://sourceforge.net/projects/rezilla"
end tell
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.