Re: applescript and browsers
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.