This is driving me crazy. I built a workflow that does the following:
- Find Events in iCal completed
- Event Summary completed
- Conversion from Text (com.apple.applescript.text-object) to Text (com.apple.cocoa.string) completed
- Run Shell Script completed … this is the shell script:
rm -rf ~/Desktop/Work_Stats.txt
touch ~/Desktop/Work_Stats.txt
for f in “$@”
do
echo “$f” >> ~/Desktop/Work_Stats.txt
done
perl -pi -e ‘s/\r/\n/g’ ~/Desktop/Work_Stats.txt
cat ~/Desktop/Work_Stats.txt | grep Summary: | cut -f 2 | sort | uniq -c | sort -n >> ~/Desktop/Work_Stats.txt - Conversion from Text (com.apple.cocoa.string) to Files/Folders (com.apple.cocoa.path) completed
- Get Specified Finder Items completed
- Conversion from Files/Folders (com.apple.cocoa.path) to Files/Folders (com.apple.applescript.alias-object) completed
- Open Finder Items completed
- Workflow completed
When I save the workflow as an application it runs but the text file is empty when it should have the results of my shell command. When I run the workflow, the source of the application, the text file has the desired information in it. I have run this on 3 macs all running at current software update levels for leopard and I get the same behavior. I do get this error in the system log when I run the automator application:
Work Calendar Stats2527: The action “Initiate Remote Broadcast” could not be loaded because the application “QuickTime Broadcaster” was not found.
Can anyone toss me a clue? How do I debug this thing?
Thanks!!
Model: intel iMac, MacBook, & Macbook Pro
AppleScript: 2.0.1
Browser: Safari 525.27.1
Operating System: Mac OS X (10.5)