Re: Error with GURL/GURL
Re: Error with GURL/GURL
- Subject: Re: Error with GURL/GURL
- From: John Stewart <email@hidden>
- Date: Mon, 21 Jun 2004 20:15:23 -0400
On 06/21/04 at +0200 Bernard Desgraupes said this
>
I wrote:
>
>
>
>
>>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 ?
>
>
>
>
Oh I should have thought a bit more. It is sent to System Events and not
>
to the Finder app. So targetting my GURL/GURL event to 'sevs' signature
>
now works. Thanks.
>
There is no need to "target" any application, open location in the Standard Additions osax
automatically targets the default web browser. It will also target the email program if you use a
mailto type of format.
In general it's a good idea to keep the commands of any osax outside of tell blocks whenever
possible. You've already discovered why this is so. :) Paste the script below into your script
editor and run it, note what happens and also note there are no tell blocks needed.
(* Script Start *)
Open location "
http://www.apple.com"
open location "
mailto:email@hidden"
(* Script End *)
JBS
--
I was thinking about how people seem to read the Bible a whole lot more as they get older; then it
dawned on me .....they're cramming for their final exam. - George Carlin
_______________________________________________
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.