• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do some AppleScript inside a Perl program to label duplicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to do some AppleScript inside a Perl program to label duplicates
      • From: pete boardman <email@hidden>
    • Re: How to do some AppleScript inside a Perl program to label duplicates
      • From: pete boardman <email@hidden>
    • Re: How to do some AppleScript inside a Perl program to label duplicates
      • From: email@hidden (Randal L. Schwartz)
References: 
 >Re: How to do some AppleScript inside a Perl program to label duplicates (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: AppleScript, Login hook or login item
  • Next by Date: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Previous by thread: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Next by thread: Re: How to do some AppleScript inside a Perl program to label duplicates
  • Index(es):
    • Date
    • Thread