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


Click here to return to the '10.4: An Automator plug-in to tar and gzip in the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: An Automator plug-in to tar and gzip in the Finder
Authored by: mayo2ca on Aug 05, '05 02:20:14PM

The only way I can get this to work is to change "get Specified Finder Items" to "Get Selected Finder Items" as well as somebody else mentioned above changing the tcsh shell to sh. (haven't tried putting #!/bin/tcsh as the first line, but that'll fix it if you run the script manually in shell).

Few warnings:
- dirname to an empty string ("") will return ., so if you don't have anything selected it will gzip your current directory
- if you have files with spaces in them, they will not be archived, as Finder does not enclose them in "" when passing them as arguments to the script, and the script uses space as separator, so a filename with space will actually become two filenames
- it will create archive per filename, not one archive with multiple files



[ Reply to This | # ]
10.4: An Automator plug-in to tar and gzip in the Finder
Authored by: jpryor68 on Aug 05, '05 04:00:19PM

Funny: when I open the workflow file in Automator, all I see is a single action: Get Specified Finder Items (with no items specified). It seems clear that would work better as Get Selected Finder Items. But MORE IMPORTANTLY, this is the only action in the workflow. There's no second action included. Consequently, the workflow is incapable of doing anything.

At first I just thought the poster had submitted a buggy workflow. But now from the comments it looks like other people ARE seeing a second action. Weird. Have I damaged my Automator set-up somehow? I can't imagine how, I hardly use it. Any ideas?

I'm using 10.4.1.



[ Reply to This | # ]
10.4: An Automator plug-in to tar and gzip in the Finder
Authored by: Arlo on Aug 05, '05 05:23:47PM

This workflow requires OS X 10.4.2, as the shell script action was updated.

---
www.automatorworld.com
"Better Living Through Macintosh Scripting"



[ Reply to This | # ]