• 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: (resend)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (resend)


  • Subject: Re: (resend)
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 26 Mar 2010 18:40:14 -0500

Ok.  This command gets me really close to only getting a listing of directory names sorted be most recent first:

ls -tF


With this output, we get a / after each folder so I can bring that into Applescript and only get the lines that end with /, clean them off and I've got the directory names I want sorted properly and not recursing.

Well, at least I know what I'm doing tonight.  Man.

Thanks all.
- Alex

On Mar 26, 2010, at 5:39 PM, Mark J. Reed wrote:

> The -d goes with the /* version.  If just passing the dir to ls
> without the /* then -d will just echo the start dir  (. by default).
>
> If all you want is the names, leave off -l.  Did you maybe confuse
> that with the -1 I suggested?
>
> On Friday, March 26, 2010, Stockly, Ed <email@hidden> wrote:
>>
>>
>>
>>
>>
>>
>>>>> Also, AppleScript seems to increase the word count in a string for every space character it runs into and also uses a colon as a word separator no matter what.
>>
>> One of two things is happening here. Either you’ve encountered a situation where text item delimiters have been set to “:” and not reset or you’re displaying a flavor of  unicode text output as ascii and it’s getting munged.  Either one is easy to fix if we see what generates this behavior.
>>
>> Go ahead and post the portion of the script that does this.
>>
>> ES
>>
>>
>>
>>
>
> --
> Mark J. Reed <email@hidden>

 _______________________________________________
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

  • Follow-Ups:
    • Re: (resend)
      • From: Shane Stanley <email@hidden>
References: 
 >(resend) (From: Alex Zavatone <email@hidden>)
 >Re: (resend) (From: "Stockly, Ed" <email@hidden>)
 >Re: (resend) (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: (resend)
  • Next by Date: Re: Back and forth between Posix and HFS paths
  • Previous by thread: Re: (resend)
  • Next by thread: Re: (resend)
  • Index(es):
    • Date
    • Thread