Re: iTunes AppleScript won't use default browser
Re: iTunes AppleScript won't use default browser
- Subject: Re: iTunes AppleScript won't use default browser
- From: Michael Terry <email@hidden>
- Date: Mon, 1 Dec 2003 10:53:32 -0800
On Dec 1, 2003, at 9:55 AM, Bob Swerdlow wrote:
I'm adding some scripts to iTunes to allow web searches based on the
currently selected song. However, I've found that once I create the
target
URL, calling 'open location targetURL' does NOT open the default web
browser
when the script is run from the iTunes menu. Instead, iTunes creates
a new
item in its playlist with the end of the URL as its name. I think
this is
because iTunes has its own 'open location' command which is supposed
to open
an audio stream on the Internet and play it.
There are probably a zillion ways to solve this, but the first one I
thought of was:
tell application "System Events"
open location "
http://www.google-watch.org"
end tell
Well, actually, the first one I thought of was:
tell applescript to open location "
http://www.google-watch-watch.org"
but that didn't work. It seems like commands sent to AppleScript
bypassed the current application in the past, but recently it hasn't
been working for me.
Cheers,
Mike
_______________________________________________
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.