Automator Application Fails when the Workflow works Perfectly

This is driving me crazy. I built a workflow that does the following:

  1. Find Events in iCal completed
  2. Event Summary completed
  3. Conversion from Text (com.apple.applescript.text-object) to Text (com.apple.cocoa.string) completed
  4. 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
  5. Conversion from Text (com.apple.cocoa.string) to Files/Folders (com.apple.cocoa.path) completed
  6. Get Specified Finder Items completed
  7. Conversion from Files/Folders (com.apple.cocoa.path) to Files/Folders (com.apple.applescript.alias-object) completed
  8. Open Finder Items completed
  9. 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)

It appears the Event Summary Automator action has a problem as noted by others. Here is a script which replaces that action as provided by a helpful soul on the apple discussion forum
http://discussions.apple.com/thread.jspa?messageID=9229301#9229301