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


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: (no subject)
  • Next by Date: Re: How to deal with Asynchronous Finder operations
  • 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