1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
tell application "Finder" set path_ to "path:to:folder:with:your:fakeworkflow:files" repeat with fileRef_ in (get every item of folder path_) set file_ to contents of fileRef_ my _runWorkflow(file_) end repeat end tell on _runWorkflow(file_) tell application "Fake" open file_ delay 1 run workflow wait until done with timeout (60 * 5) end tell end _runWorkflow |

