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: 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