Skip to main content
deleted 101 characters in body
Source Link
nohillside
  • 108.3k
  • 43
  • 230
  • 291

I have searched high and low in this and other discussion boards, but just don't quite get the answer I want. I use terminalTerminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command is as follows:

spotify-ripper user.name "/path/to/directory" "spotifyURI" (of course, minus the quotes) is as follows:

 spotify-ripper user.name "/path/to/directory" "spotifyURI" 

I've tried countless times to get Automator to:

  1. Ask for finder items (to create the "path/to/directory")

    Ask for finder items (to create the "path/to/directory")

  2. Ask for Text (asking me to paste in the URI/URL link from spotify)

    Ask for Text (asking me to past in the URI/URL link from spotify)

  3. Run Shell Script (/bin/bash) a) spotify-ripper user.name "$@"

    Run Shell Script (/bin/bash)

     spotify-ripper user.name "$@" 

I have tried it with "Pass input" to "stdin" or "as arguments". Just get an error. I've read that "$@" will pass both variables one after the other which just what I need. I've also tried "$1" "$2" as some posts have suggested. What am I missing? I just want to pass path info and a URL to the end of a shell command, but nothing seems to work. I've tried the GET and SET Variable options, but that doesn't seem to help either.

Anyone have any ideas what I should be doing?

I have searched high and low in this and other discussion boards, but just don't quite get the answer I want. I use terminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command is as follows:

spotify-ripper user.name "/path/to/directory" "spotifyURI" (of course, minus the quotes)

I've tried countless times to get Automator to:

  1. Ask for finder items (to create the "path/to/directory")
  2. Ask for Text (asking me to paste in the URI/URL link from spotify)
  3. Run Shell Script (/bin/bash) a) spotify-ripper user.name "$@"

I have tried it with "Pass input" to "stdin" or "as arguments". Just get an error. I've read that "$@" will pass both variables one after the other which just what I need. I've also tried "$1" "$2" as some posts have suggested. What am I missing? I just want to pass path info and a URL to the end of a shell command, but nothing seems to work. I've tried the GET and SET Variable options, but that doesn't seem to help either.

Anyone have any ideas what I should be doing?

I use Terminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command (of course, minus the quotes) is as follows:

 spotify-ripper user.name "/path/to/directory" "spotifyURI" 

I've tried countless times to get Automator to:

  1. Ask for finder items (to create the "path/to/directory")

  2. Ask for Text (asking me to past in the URI/URL link from spotify)

  3. Run Shell Script (/bin/bash)

     spotify-ripper user.name "$@" 

I have tried it with "Pass input" to "stdin" or "as arguments". Just get an error. I've read that "$@" will pass both variables one after the other which just what I need. I've also tried "$1" "$2" as some posts have suggested. What am I missing? I just want to pass path info and a URL to the end of a shell command, but nothing seems to work. I've tried the GET and SET Variable options, but that doesn't seem to help either.

Anyone have any ideas what I should be doing?

Source Link

Adding variables to a shell command in Automator

I have searched high and low in this and other discussion boards, but just don't quite get the answer I want. I use terminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command is as follows:

spotify-ripper user.name "/path/to/directory" "spotifyURI" (of course, minus the quotes)

I've tried countless times to get Automator to:

  1. Ask for finder items (to create the "path/to/directory")
  2. Ask for Text (asking me to paste in the URI/URL link from spotify)
  3. Run Shell Script (/bin/bash) a) spotify-ripper user.name "$@"

I have tried it with "Pass input" to "stdin" or "as arguments". Just get an error. I've read that "$@" will pass both variables one after the other which just what I need. I've also tried "$1" "$2" as some posts have suggested. What am I missing? I just want to pass path info and a URL to the end of a shell command, but nothing seems to work. I've tried the GET and SET Variable options, but that doesn't seem to help either.

Anyone have any ideas what I should be doing?