• 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: Sort error in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort error in Leopard


  • Subject: Re: Sort error in Leopard
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 10 Feb 2012 06:24:13 -0600

Hey Yvan,

On Feb 10, 2012, at 05:32, KOENIG Yvan wrote:
Thanks for this code.

Certainly.

I added a R in the call to Shell to get the contents of subfolders.
...
Below are the paths to files embedded in the subfolder but the 'subfolder' descriptor is dropped.

Macintosh HD:Library:Fonts:LicenseExtrasCandela.pdf
would be :
Macintosh HD:Library:Fonts:Candela ƒ:LicenseExtrasCandela.pdf

'ls' gets tricky with the -R switch.

Run this on a directory in the Terminal, and you'll see.

"ls" -Rtr1

If you want to create a more coherent path structure when going recursive you need to use something like 'find':

This will find in the current directory:

 find . | egrep -iv ".ds_store"

This will yield full-paths rather than relative ones:

 find ~/Desktop/ | egrep -iv ".ds_store"

I'm pretty sure you can't do the date-sort in 'find' like we're doing with 'ls', but I'm too tired to make sure at the moment.

Anyway that give you a little bit to chew on.

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Re: Sort error in Leopard (From: Nigel Garvey <email@hidden>)
 >Re: Sort error in Leopard (From: Christopher Stone <email@hidden>)
 >Re: Sort error in Leopard (From: Shane Stanley <email@hidden>)
 >Re: Sort error in Leopard (From: Christopher Stone <email@hidden>)
 >Re: Sort error in Leopard (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Sort error in Leopard
  • Next by Date: Re: Sort error in Leopard
  • Previous by thread: Re: Sort error in Leopard
  • Next by thread: Re: Sort error in Leopard
  • Index(es):
    • Date
    • Thread