• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 19 Sep 2005 11:39:04 -0700


On Sep 16, 2005, at 2:16 PM, Randal L. Schwartz wrote:

"Steve" == Steve Hayman <email@hidden> writes:


Steve> Let me suggest an Automator workflow as a possibility too. You can
Steve> have a "Run Shell Script" action with the perl code in it to produce
Steve> the list of file names, followed immediately by a "Label Finder
Steve> Items" action (which lets you choose a colour to be applied to a list
Steve> of files.).


Can Automator pass names as NUL delimited, rather than \n or whitespace
delimited? I'd be worried if I couldn't get from one step to the next
without the possibility of a misunderstanding.

As Steve points out, you can pass the names as command-line arguments instead, which avoids any parsing problems, but at the cost of imposing a certain fixed limit on how many files you can pass, namely sysv.argmax bytes. If you use stdin to pass files, they come in one per line, \n-delimited. This means that spaces are safe, but names containing "\n" are not. This is, however, quite rare.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
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


References: 
 >Re: How to do some AppleScript inside a Perl program to label duplicates (From: "Gary (Lists)" <email@hidden>)
 >Re: How to do some AppleScript inside a Perl program to label duplicates (From: Steve Hayman <email@hidden>)
 >Re: How to do some AppleScript inside a Perl program to label duplicates (From: email@hidden (Randal L. Schwartz))

  • Prev by Date: Re: How to deal with Asynchronous Finder operations
  • Next by Date: Re: Entourage question
  • 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