Passing multiple arguments to shell script using automator

Hi All,

I have finally jumped into some automation, and obviously i have problems :wink:

I want to make an automation that does the following.

1 - “Ask for finder Items” - which i want to use to get a specific folder
2 - “Ask for text” - To get the Text#1
3 - “Ask for text” - To get the Text#2

These arguments will then be inserted into my script.

Now how do i pass more than 1 argument into my script, i have figured out how to pass 1 argument, namely the lastes from either 1,2 or 3,
but not all 3.

Any tips or tricks is very appreciated.

Best regards…Jan

Bump for this.

I’m trying to send 2 arguments to a shell script in automator:

  1. Input text from user
  2. The value of Get Selected Item in Finder action

I need these 2 arguments passed to a shell script which performs an action on 2) file using contents of 1) user input.

However, this doesn’t appear possible using Automator alone as the only argument passed to the shell script is that of the previous action–the action before that’s input does not carry over and not assigned to an array (which seemed like what would logically happen).

If there is no way to do this in automator alone, I assume an AppleScript would be the next step. Could someone please help me with this/point me in the right direction of how to go about it? Any information would be appreciated.

Thanks!

Chris

Model: MacBook Pro 15" 2.33 C2D 2GB RAM
AppleScript: 2.0
Browser: Firefox 2.0.0.12
Operating System: Mac OS X (10.5)