Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Saving workflow as app. is useful' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Saving workflow as app. is useful
Authored by: DeminJanu on Aug 23, '08 01:01:12PM
The good thing about having AppleScript open your Automator workflow (saved as an application) is that you can then pass files to it:

Tell application "Automator Workflow.app"
open FileList
end tell

great for having AppleScript filter out filetypes and such, and then having Automator do the file managemement/opening, which is ugly in AppleScript.

For example, an Applescript which filters the selection for some type of file (via file extension) and then passes the files to the Automator application "Torrent Files - Move & Open.app", which moves the files and then opens them:
tell application "Finder"
set Filez to selection as list
end tell

set TorrentFiles to (files of Filez whose name extension is "torrent")
tell application "Torrent Files - Move & Open"
open Filez
end tell

(still working on the filtering bit, but it almost works)
I found that moving files, keeping track of where they went, and then opening them was a horrible pain in AppleScript

[ Reply to This | # ]