Re: Getting the "Share" URL?
Re: Getting the "Share" URL?
- Subject: Re: Getting the "Share" URL?
- From: Steve Mills <email@hidden>
- Date: Thu, 16 Feb 2017 20:44:56 +0000 (GMT)
On Feb 16, 2017, at 01:25 PM, "Stockly, Ed" <email@hidden> wrote:
Is this what you want?
tell application "iTunes"
address of URL track 1
end tell
On 2/15/17, 8:11 PM,
email@hidden> wrote:
Is it possible for Applescript to get the “share” URL from a iTunes Song?
That is, the URL/URI that comes up when you click “Share song -> Copy
Link” like https://itun.es/us/zdfdhb?i=1191989766 ?
URL track seems to only refer to a stream URL, not the iTunes Share URL.
That's not at all what they want, as they said. I'm not sure if you can form urls for specific tracks, but you can form search urls based on the selected track's info. It didn't take much reverse engineering to figure it out. Just go to the iTunes music store and do a search. If you can get to the page that shows you Power Search, enter the artist name and song title, do the search, then right-click on See All and copy the link. Inspect that link and you should be able to build your own urls to search for a song given the track's name and artist. Like this search for Tom Sawyer by Rush:
https://search.itunes.apple.com/WebObjects/MZSearch.woa/wa/advancedSearch?allArtistNames=rush&entity=album&media=music&submit=seeAllLockups&restrict=true&completeTitle=tom+sawyer&genreIndex=1
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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