• 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: Scripting Additions Calls in Tell Blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Additions Calls in Tell Blocks


  • Subject: Re: Scripting Additions Calls in Tell Blocks
  • From: Walter Ian Kaye <email@hidden>
  • Date: Mon, 9 Feb 2004 22:46:36 -0800

At 05:29p -0800 02/09/2004, Michael Terry didst inscribe upon an electronic papyrus:

On Feb 9, 2004, at 4:34 PM, Michael Terry wrote:

Now, I happen to think 'open location''s behavior is wonderful,

I should mention that the "wonderful behavior" I'm referring to is that inside a browser tell block it directs the OpenURL event to that browser instead of the system default.

Actually that's GetURL, not OpenURL (which is a completely different aevt).
<<event GURLGURL>>, to be exact. Type it (with real guillemets) and compile -- you'll see it transform into 'open location'.

Does Safari support GURL? (I'd check, but I'm shutting down apps in preparation for a reboot.)


At 12:40a -0500 02/10/2004, Gary Lists didst inscribe upon an electronic papyrus:

>From another list, here is an example of a problem stemming from the use of
the same command 'open location' inside a tell block. (Although I didn't see
the specific problem noted...an error?)

I just thought it was an interesting and relevant coincidence.

> On 2/8/04 2:51 PM, "ANSWERER" <REMOVED> wrote:
>
>>> Can somebody please help me with the appropriate Panther syntax for:
>>>
>>> tell application "Finder"
>>> open location "http://SOMEDOMAIN/~somedirectory/Digests/DBI-Users/";
>>> end tell
>>
>> ASKER,
>>
>> "open location" is part of Standard Additions, not part of the Finder's
>> dictionary. Try taking it out of the Finder tell block and see what happens:
>>
>> open location "http://SOMEDOMAIN/~somedirectory/Digests/DBI-Users/";
>>
>> HTH,
>>
>> ANSWERER
>>
>
> Thanks ANSWERER, that did it!!

But of course, we would have to classify that as a Panther Finder bug, and not infer anything about how AS is supposed to work.


-boo
who just had a 5-hour surprise IM from the first girl he ever kissed :D
(glad I put my screen name on my web site!)
_______________________________________________
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.

  • Follow-Ups:
    • Re: Scripting Additions Calls in Tell Blocks
      • From: Michael Terry <email@hidden>
References: 
 >Scripting Additions Calls in Tell Blocks (From: Michael Terry <email@hidden>)
 >Re: Scripting Additions Calls in Tell Blocks (From: Michael Terry <email@hidden>)

  • Prev by Date: Sed replace oneline nogo in Applescript
  • Next by Date: Re: Extracting data from HTML
  • Previous by thread: Re: Scripting Additions Calls in Tell Blocks
  • Next by thread: Re: Scripting Additions Calls in Tell Blocks
  • Index(es):
    • Date
    • Thread