Re: How to do some AppleScript inside a Perl program to label duplicates
Re: How to do some AppleScript inside a Perl program to label duplicates
- Subject: Re: How to do some AppleScript inside a Perl program to label duplicates
- From: Steve Hayman <email@hidden>
- Date: Fri, 16 Sep 2005 17:05:53 -0400
I found a neat Perl script which finds duplicate files. It
prints each set of duplicate files out on the terminal like this:
/Users/pete/projects/a/doc1.doc
/Users/pete/projects/a/backup1/doc1.doc
/Users/pete/projects/a/backup2/doc1.doc
plus information about their size. What I'd like to do is label these
files in the Finder
Let me suggest an Automator workflow as a possibility too. You can
have a "Run Shell Script" action with the perl code in it to produce
the list of file names, followed immediately by a "Label Finder
Items" action (which lets you choose a colour to be applied to a list
of files.).
(Not knowing what your perl script does, you might need to tweak the
perl code that it outputs only the list of files one per line, and
nothing else.)
This way there's no real need to mix Perl and Applescript directly at
all. The list of files output by the Run Shell Script action will
automatically be converted to the right kind of file reference so
that the "Label Finder Items" action can do its thing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden