Jump to content
Nedsummers

Very amateur and simple script question

Recommended Posts

Hey guys,

I'm creating a workflow that will search a (guitar tab database) website for the current song you are listening to iTunes.

Unfortunately, I am very amateur with scripts. I hadn't really looked at one until today!

I have a script that copies the song name and artist to my clipboard (using the line "set the clipboard to (nom & art)") however, I was wondering how you can get it instead to set "nom & art" to the query for the next step of the workflow?

I know this is incredibly amateur, but thanks in advance for the help!

Ned

Share this post


Link to post

Hey guys,

I'm creating a workflow that will search a (guitar tab database) website for the current song you are listening to iTunes.

Unfortunately, I am very amateur with scripts. I hadn't really looked at one until today!

I have a script that copies the song name and artist to my clipboard (using the line "set the clipboard to (nom & art)") however, I was wondering how you can get it instead to set "nom & art" to the query for the next step of the workflow?

I know this is incredibly amateur, but thanks in advance for the help!

Ned

 

Ned, have you taken a look at this post? This details how to string multiple script filters together. If you aren't using a script filter, the same principle applies. What you do is, use AppleScript to call Alfred back up. At the end of workflow execution, use the Run Script output item, with the language set to /usr/bin/osascript to:

tell application "Alfred 2" to search "<your text here>"

 

Replace <your text here> with the next command and text that you want to pass to it.

Share this post


Link to post

Ned, have you taken a look at this post? This details how to string multiple script filters together. If you aren't using a script filter, the same principle applies. What you do is, use AppleScript to call Alfred back up. At the end of workflow execution, use the Run Script output item, with the language set to /usr/bin/osascript to:

tell application "Alfred 2" to "<your text here>"

 

Replace <your text here> with the next command and text that you want to pass to it.

 

 

Hi David. Don’t you mean tell Alfred to search?

 

tell application "Alfred 2" to search "<your text here>"

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...