Re: Getting a subset list of files
Re: Getting a subset list of files
- Subject: Re: Getting a subset list of files
- From: tom wible <email@hidden>
- Date: Sun, 03 Apr 2011 11:33:42 -0400
On 02 Apr 2011 10:40:46 -0500 Jim Brandt <email@hidden> wrote:
set cmd to "find " & Originals & " -iname \"" & MacD & "\" -print0"
-- -print0 returns a string with nil separators
set OrgStr to (do shell script cmd) as text
set nil to ASCII character 0
-- make it into a list
tell application "TextCommands" to set OrgList to split OrgStr
using nil
much easier to use a/s's "every paragraph" construct:
set cmd to "find " & Originals & " -iname \"" & MacD
set OrgStr to every paragraph of (do shell script cmd)
u just need 2 know a/s defines paragraphs as lines...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden