• 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 00:25:09 -0400


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.



In a run shell script action, there's a popup that lets you choose to have the input items presented to your action either as lists of text (e.g. file names) one per line, terminated by a newline, OR as command-line arguments. The conversion actions would do the right thing here when the previous action is producing a list of file names; if you were worried that your script would need to cope with a filename with a newline in it, you could ask for the input to be passed as arguments and that should avoid that problem.


On the other hand, when the output of a shell script action is being converted to a list of files for a subsequent action, it's assumed that newlines are the separators and as far as I know there is no way to specify NUL as a separator instead. I agree that that would be a good idea and will see about filing an enhancement request.


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