• 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: applescript and browsers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript and browsers


  • Subject: Re: applescript and browsers
  • From: WJ Shack <email@hidden>
  • Date: Mon, 26 Jan 2004 14:28:37 -0600

On 1/26/04 11:51 AM, Paul Berkowitz at email@hidden wrote:

If you just want to open a specific URL in the user's own default browser,
don't target a specific application at all. Just use the 'open location'
built-in scripting addition command:

open location http://url.here


-------- End Quote --------

I have been having trouble with open location in Panther. I can construct a
URL that works fine when I use it with Safari:

tell application "Safari"
activate
make new document at beginning of documents
set the URL of document 1 to gURL
end tell

But when I use the same url with open location it gives me a -1703 error,
"some data is of the wrong type". The script used to work with open
location, but something changed. I prefer open location since I keep
changing my mind on a default browser. Any suggestions?
_______________________________________________
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.

  • Prev by Date: Re: applescript and browsers
  • Next by Date: Getting contents of folder question.
  • Previous by thread: Re: applescript and browsers
  • Next by thread: Re: applescript and browsers
  • Index(es):
    • Date
    • Thread