Re: getting a file list in sorted order
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.