• 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 file list in sorted order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a file list in sorted order


  • Subject: Re: getting a file list in sorted order
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 19 Aug 2002 16:50:02 -0700

On Monday, August 19, 2002, at 03:50 PM, John Delacour wrote:

set s to "cd ;perl -e '
$dir = qq~/users/jd~; opendir DIR, $dir ;
for (readdir DIR){print ; print $/}'"
do shell script s

If you want that to give you the results in sorted order, you'd better stick a " | sort" at the end of that script -- otherwise, you'll just get the results in directory order, which is the same thing that "list folder" gives you. Come to think of it, why not just use "ls -A"?


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: getting a file list in sorted order
      • From: John Delacour <email@hidden>
References: 
 >Re: getting a file list in sorted order (From: John Delacour <email@hidden>)

  • Prev by Date: Re: getting a file list in sorted order
  • Next by Date: Re: (was Int Function) mod bug
  • Previous by thread: Re: getting a file list in sorted order
  • Next by thread: Re: getting a file list in sorted order
  • Index(es):
    • Date
    • Thread