• 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: 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.

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

  • Prev by Date: New Address Book in Jaguar 10.2...
  • Next by Date: RE: QuickTime: playing two movies
  • 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