Automator will not accept script READS, but Terminal will

Joined
Feb 10, 2015
Messages
2
Reaction score
0
Points
1
Automator does not allow keyboard input of data when requested by a running script or program

Automator step 1: Get Selected Finder Item (which is a shell script called readInput.sh that is dragged onto the Automator icon to become arg $1):
#!/bin/sh
read myline
echo $myline

Automator step 2: Run Shell Script (using arguments) which has:
cd Desktop
echo "Using: $1" > $HOME/Desktop/Results.txt
echo `date` >> $HOME/Desktop/Results.txt
echo " " >> $HOME/Desktop/Results.txt
chmod +x readInput.sh
"$1" >> $HOME/Desktop/Results.txt 2>&1
echo "Shell Script is completed" >> $HOME/Desktop/Results.txt
open -a TextEdit $HOME/Desktop/Results.txt
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top