Created
February 5, 2016 19:41
-
-
Save itod/400e8cd6ca1bae45471e to your computer and use it in GitHub Desktop.
Runn all Fake Workflows in a Folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" | |
set path_ to (get path to desktop as string) & "workflows" | |
set dir_ to folder path_ | |
set ext_ to "fakeworkflow" | |
set files_ to items of dir_ whose name of it ends with ext_ | |
tell application "Fake" | |
repeat with file_ in files_ | |
--display dialog (get title of file_) | |
open file_ | |
delay 1 | |
run workflow | |
wait until done | |
close front window | |
delay 1 | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment