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

10.5: 10.5.1 update solves AppleScript/Automator issue Apps
This hint pointed out that this older hint for running Automator workflows from AppleScript was broken.

But if you saved your Automator workflow as an application rather than a workflow, then used AppleScript to open it, it would run. Although I did not see this as a real hint as opposed to an obvious behavior, it was the only way to get Automator workflows to run via AppleScript -- until now. Coming back to this on a whim, it seems the 10.5.1 update has fixed this problem, and the older hint now works correctly. For example...

tell application "Automator Launcher" to open "Macintosh HD:Users:userNmae:Desktop:foo.workflow"

...works as expected under 10.5.1.
    •    
  • Currently 1.71 / 5
  You rated: 1 / 5 (7 votes cast)
 
[8,477 views]  

10.5: 10.5.1 update solves AppleScript/Automator issue | 4 comments | Create New Account
Click here to return to the '10.5: 10.5.1 update solves AppleScript/Automator issue' 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 | # ]
10.5: 10.5.1 update solves AppleScript/Automator issue
Authored by: FOOOD on May 17, '09 05:52:48AM

Has anyone tried this lately?
I've tried this with 10.5.7 and can't get it to work.



[ Reply to This | # ]
10.5: 10.5.1 update solves AppleScript/Automator issue
Authored by: mark hunte on May 17, '09 08:28:36AM

Geez, come on Apple..

It Looks like its broken AGAIN!

---
mh



[ Reply to This | # ]
10.5: 10.5.1 update solves AppleScript/Automator issue
Authored by: Benoit on Nov 12, '09 12:06:48AM

Hi,
I have the same issue extension torrent file are behaving weird. I want to label blue only .torrent and I get some other file too being labeled .rar, .avi, .temp ...
Regards,
Benoit



[ Reply to This | # ]