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: John Delacour <email@hidden>
- Date: Tue, 20 Aug 2002 20:30:58 +0100
At 4:50 pm -0700 19/8/02, Christopher Nebel wrote:
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
That's not my experience. No matter how I sort the directory in te
Finder, the result is the same
, which is the same thing that "list folder" gives you. Come to
think of it, why not just use "ls -A"?
Because I would quickly run out of useful things to do with my
limited knowledge of Unix scripting and I didn;t buy a Mac in 1984
because I envied those geeks with the green command lines!
As for perl, I just love it -- it even has documentation!
JD
_______________________________________________
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.