• 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: finding newest file in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding newest file in a folder


  • Subject: Re: finding newest file in a folder
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 16 Mar 2004 10:27:43 -0800

On Mar 15, 2004, at 5:24 PM, Andrew Oliver wrote:

On 3/15/04 5:04 PM, "Christopher Nebel" <email@hidden> wrote:

Piping through head(1) had occurred to me, but I suppressed the idea because I don't like the way "do shell script" mangles line endings for you.

And the 'altering line endings' option for 'do shell script' doesn't do it
for you either, Chris?

do shell script string -- the command or shell script to execute.
Examples are ls or /bin/ps -auxwww
...
[altering line endings boolean] -- change all line endings to
Mac-style and trim a trailing one (default true)

It's not that there's no adequate solution, it's a bit of personal brain damage. I remember thinking that "paragraph 1" would be necessary to get rid of the trailing line-feed, forgetting that the default behavior is to remove it.


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


References: 
 >Re: finding newest file in a folder (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Drive mapping question
  • Next by Date: GUI Scripting mystery
  • Previous by thread: Re: finding newest file in a folder
  • Next by thread: Re: finding newest file in a folder
  • Index(es):
    • Date
    • Thread