• 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: Error with GURL/GURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Error with GURL/GURL
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Make Finder files invisible, SOLVED
  • Next by Date: Re: Make Finder files invisible
  • Previous by thread: Re: Error with GURL/GURL
  • Next by thread: Re: Error with GURL/GURL
  • Index(es):
    • Date
    • Thread