• 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 scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes scripting


  • Subject: Re: iTunes scripting
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 21 Jan 2009 16:21:57 -0700

On Jan 21, 2009, at 2:38 PM, Matthew Smith wrote:

I wouldn’t say the dictionary is wrong. I would say that if it is an http URL then iTunes would expect it to be an audio stream. If it was an itms URL then it would be an iTunes  Store link. E.g. “itms://something here”. I found the protocol in the Info.plist inside the iTunes.app package. The big question is what does iTunes expect for an itms URL.

I don't know whether that's true.  For example, I just browsed to Queen's "We Are the Champions" in the iTunes Store, and right clicked on it.  I then chose "Copy iTunes Store URL".  I am not about to paste the result into this message:

http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=27243734&id=27243728&s=143441

Note that it is an http URL, not an itms URL.

However, I experimented a little, and found that to solve Roy's original problem and to answer your question, if you change "http" to "itms" in the URL, it will then open iTunes directly into the iTunes Store at the relevant item.  Therefore, his script should read

tell application "iTunes"
open location "itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=79033036&id=79033083&s=143441"
end tell

-- Michelle

-- 
"I never told my religion, nor scrutinized that of another. I never attempted to make a convert, or wished to change another's creed. I have judged of other's religion by their lives, for it is from our lives, and not from our words, that our religion must be read."

~Thomas Jefferson


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: iTunes scripting
      • From: Philip Aker <email@hidden>
References: 
 >Re: iTunes scripting (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: iTunes scripting
  • Next by Date: AppleScript in XCode
  • Previous by thread: Re: iTunes scripting
  • Next by thread: Re: iTunes scripting
  • Index(es):
    • Date
    • Thread