Git Product home page Git Product logo

Comments (5)

dehesa avatar dehesa commented on June 2, 2024

Hey there @amit-coditas,

Is this the Apple Music Script-Command or is that the extension in the store? If it is related to the Script-Command, maybe @StevenRCE0 can help here since he is the author. In any case, I will suggest you to try the Apple Music Store extension?

from script-commands.

amit-coditas avatar amit-coditas commented on June 2, 2024

I do have the extension installed, but it doesn't have the 'search' option at all, hence was trying out the script.

@StevenRCE0 would it be possible to have a quick look? thank you for your help!!

from script-commands.

StevenRCE0 avatar StevenRCE0 commented on June 2, 2024

Thanks for your feedback. Just to make it clear, are you referring to what you input in the 1st argument did not paste into the music app as expected? (That's how it work, really straight forward: save your clipboard, copy the argument, reveal the Music app, paste into the search box, restore your clipboard) If this happens, it could be a hassle. However, if you're expecting what you've copied to automatically appear in the argument's field, the behaviour is handled by Raycast.

from script-commands.

amit-coditas avatar amit-coditas commented on June 2, 2024

Hello @StevenRCE0 ,

thank you for the reply. I understand now, you are using the clipboard to 'transfer' what was passed in the argument/text in raycast to Apple Music app.

I was hoping of a workflow where I see a song or an artist on any webpage (for e.g. Reddit), I copy the song name or Artist Name, and fire a workflow on raycast which then takes me to apple music, does a Ctrl V and makes the search (Basically avoiding an extra CTRL + V in Raycast)

I imagined the argument being Optional was either reading it from the input OR from the clipboard.

I edited the script to remove the argument and just read from the clipboard directly, and assigned a hotkey to this script.

Now it works perfectly! Copy anything, Hit a hotkey and voila, it's on AM with the results.

from script-commands.

StevenRCE0 avatar StevenRCE0 commented on June 2, 2024

For this use case, you may find Raycast's Quicklink helpful. To get it working, copy the Deeplink of the script command, and create a Quicklink like this:

raycast://script-commands/apple-music-search?arguments={Query}

Assign a shortcut for the Quicklink instead of the Script Command and make sure you've turned on Pass selected text as argument under Raycast settings -> Extensions -> Quicklinks.

After setting the whole thing up, just select any text on the web page for example, press the shortcut (no CTRL+C needed!), and it'll do.

from script-commands.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.