I use Automator to do the following:
- ask user to choose a folder (as Service action)
- ask user to choose the name from the list (AppleScript
choose from list ...) - pass the folder chosen and the name chosen to shell-script
I understand how to pass folder chosen from step 1 to step 2. But I don't understand how to pass both variables between steps 2 and 3 (I can pass just one). I tried to return {answer, input} at step 2. But shell-script fails with the error -[__NSArrayM fileSystemRepresentation]: unrecognized selector sent to instance 0x600000654b80.