• 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: Getting a subset list of files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Getting a subset list of files
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Why is all not all?
  • Next by Date: Re: Why is all not all?
  • Previous by thread: Re: Getting a subset list of files
  • Next by thread: Re: Getting a subset list of files
  • Index(es):
    • Date
    • Thread