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: Mon, 19 Sep 2005 20:11:27 -0400
On 16-Sep-05, at 5:16 PM, Randal L. Schwartz wrote:
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.
I've been reminded (thank you chris) that the AMShellScriptAction
class - which is the object that actually implements the Run Shell
Script method and which is used when you build your own custom shell
script automator actions - defines inputFieldSeparator and
outputFieldSeparator methods, which default to "\n", but that you
could override this (in Objective-C) and create your own subclass for
a special shell script action that used a different separator such as
NUL.
So it is possible (*), but not directly, and provided you don't mind
messing around with Obj-C to do this which I realize is not exactly
what many scripters are good at. But someone could theoretically
create a nice reusable NullSeparatedShellScript automator action that
could receive and emit NUL-separated pathnames and it could plug in
nicely to other things in the workflow.
(*) Possible in the sales sense of "Let me redefine your question so
I can answer it YES."
_______________________________________________
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