Re: Error with GURL/GURL
Re: Error with GURL/GURL
- Subject: Re: Error with GURL/GURL
- From: Bernard Desgraupes <email@hidden>
- Date: Mon, 21 Jun 2004 13:51:13 +0200
John Stewart wrote:
>
On 06/21/04 at +0200 Bernard Desgraupes said this
>
>
>
>
>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?"
>
>
>
>
>
>
If you got the command from Standard Additions OSAX why did you use it in a Finder tell block?
>
In fact I'm doing all this programmatically in a C++ app. I just
transposed to an AppleScript to understand what's going wrong.
>
Take
>
it out of the tell block and it works as advertised.
>
>
You are right that it works. But I'd like to understand what is the
target application when such a command is sent. What's the target of the
GURL/GURL AppleEvent exactly ?
_______________________________________________
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.