Jump to content

Apple Music search with Alfred


Recommended Posts

  • 2 weeks later...

Here's what I have so far:

 

https://www.gingerbeardman.com/alfred/

 
it prefers songs and music videos in results
(a version searching only for albums would be easy enough to create)
 
however, right now it opens the result in you browser as i can't figure out the URL scheme to open iTunes to that song or collection.
 
If anybody figures it out, feel free to let me know and I'll host this on github.
Edited by gingerbeardman
new download link
Link to comment

 

Yeah, I found that and others but I can't get any links to open their respective pages in iTunes.

 

If you can find an iTunes link starting with http:// that you can change to start with itms:// that when entered in Safari opens iTunes to a specific page, let me know!

 

eg.

 

David Bowie "Blackstar"

http://itunes.apple.com/gb/album/blackstar/id1059043043

Becomes

itms://itunes.apple.com/gb/album/blackstar/id1059043043

Which opens iTunes, but not to the correct tab.

Edited by gingerbeardman
Link to comment
  • 1 year later...
  • 5 months later...

Thank you Gingerbeardman.

 

A few things:

- The Search iTunes Music Store take me to the UK store. Is it possible to switch to US store?

- More importantly for me, I would like to be able to search Apple Music, not the iTunes Music Store. Do you have plans to develop such a workflow?

 

Thanks

Matthew

Link to comment
  • 1 month later...
On 21/02/2018 at 7:58 PM, mlondon said:

Thank you Gingerbeardman.

 

A few things:

- The Search iTunes Music Store take me to the UK store. Is it possible to switch to US store?

- More importantly for me, I would like to be able to search Apple Music, not the iTunes Music Store. Do you have plans to develop such a workflow?

 

Thanks

Matthew

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

Edited by gingerbeardman
Link to comment
1 minute ago, gingerbeardman said:

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

 

And regarding searching Apple Music instead of iTunes Store? :)

Link to comment
On 16/04/2018 at 8:00 PM, gandalfsaxe said:

 

And regarding searching Apple Music instead of iTunes Store? :)

 

OK @gandalfsaxe a bit more digging and it was possible to do this with minor changes—I just had to find the correct documentation.

 

Let me know if you need to search for anything other than song and album.

 

See above for updated download link!

 

Edited by gingerbeardman
Link to comment
  • 10 months later...
On 4/17/2018 at 2:58 AM, gingerbeardman said:

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

Link to comment
On 2/19/2019 at 6:42 AM, MandyB said:

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

 

what exactly is the problem?

Link to comment
On 2/19/2019 at 5:42 AM, MandyB said:

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

Which of the 6 steps do you get stuck at?

Link to comment
  • 1 month later...
On 4/17/2018 at 12:02 AM, gingerbeardman said:

 

OK @gandalfsaxe a bit more digging and it was possible to do this with minor changes—I just had to find the correct documentation.

 

Let me know if you need to search for anything other than song and album.

 

See above for updated download link!

 

 

Thanks! What I actually wanted is a little simpler: Instead of a built-in search that shows up in Alfred, I just want to search from alfred, but then redirected to the application (for Mac AppStore and iTunes for Apple Music). Like you can do with spotify using "spotify:search:{query}". You know how to do this?

Link to comment
On 3/23/2019 at 9:24 PM, gandalfsaxe said:

 

Thanks! What I actually wanted is a little simpler: Instead of a built-in search that shows up in Alfred, I just want to search from alfred, but then redirected to the application (for Mac AppStore and iTunes for Apple Music). Like you can do with spotify using "spotify:search:{query}". You know how to do this?

 

You may be able to bypass Alfred completely using iTunes URL Scheme, but I cannot help you with that.

 

https://stackoverflow.com/questions/31194155/apple-music-url-scheme

 

Edited by gingerbeardman
Link to comment
  • 2 weeks later...
On 2/22/2018 at 2:38 AM, gingerbeardman said:

OK, I fixed my workflows for Alfred 3.

 

Search Mac App Store

Search App Store

Search iTunes Music Store

 

NEW April 2018

Search Apple Music

 

Here they are: http://workupload.com/archive/hfKc87d

 

 

Hi, as I am currently in Australia, I've set the COUNTRY as u'AU' following your suggestions. However there's always an annoying delay before the exact song popping up. Is there anything I can do with it?

Link to comment
On 4/7/2019 at 10:19 AM, Lawrenxe said:

Hi, as I am currently in Australia, I've set the COUNTRY as u'AU' following your suggestions. However there's always an annoying delay before the exact song popping up. Is there anything I can do with it?

 

I think it's just a bit slow by nature. While it might feel slower than most Alfred workflows, compare it to how sluggish iTunes normally is for pulling up Apple Music results. 

Link to comment
  • 4 months later...
On 2/21/2018 at 10:38 AM, gingerbeardman said:

OK, I fixed my workflows for Alfred 3.

 

Search Mac App Store

Search App Store

Search iTunes Music Store

 

NEW April 2018

Search Apple Music

 

Here they are: http://workupload.com/archive/hfKc87d

 

 

Is it possible to Search the iTunes Music Store by Artist? It appears the only options are search by Album and Song, but would love to also search by Artist. Any help is much appreciated, thanks

Link to comment
  • 2 weeks later...
On 8/20/2019 at 9:27 PM, Adrian00 said:

 

Is it possible to Search the iTunes Music Store by Artist? It appears the only options are search by Album and Song, but would love to also search by Artist. Any help is much appreciated, thanks

 

Sure thing! I've added Artist search to both iTunes Music Store and Apple Music workflows.

 

Downloads: https://www.gingerbeardman.com/alfred/

 

If you find this useful, please leave a donation via the button on my site.

 

Support open-source software ❤️

 

cheers,

matt

Edited by gingerbeardman
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...