• 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: iTunes AppleScript won't use default browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >iTunes AppleScript won't use default browser (From: "Bob Swerdlow" <email@hidden>)

  • Prev by Date: Re: new to ascript & filemaker
  • Next by Date: Re: iTunes AppleScript won't use default browser
  • Previous by thread: Re: iTunes AppleScript won't use default browser
  • Next by thread: Re: iTunes AppleScript won't use default browser
  • Index(es):
    • Date
    • Thread