• 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: last modified file - how to catch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: last modified file - how to catch?


  • Subject: Re: last modified file - how to catch?
  • From: Emmanuel LEVY <email@hidden>
  • Date: Mon, 07 Jul 2014 15:11:29 +0200

You already got several useful replies, you may also want to know that the shell command "ls" accepts a "-t" option to sort files by modification date, so that you would get the last modified file with:

first paragraph of (do shell script "ls -t " & (quoted form of (posix path of (alias "MacHD:Users:okn:Documents:_Output:"))))

All the best!
Emmanuel


On Jul 6, 2014, at 11:07 PM, okn wrote:

>
>
> Hi & good day,
>
> With AppleScript I know how to get the first or last file in a folder, f ex:
>
> get first file of folder alias "MacHD:Users:okn:Documents:_Output:”
>
> But I need the last file (by property?!) Modification date.
>
> Also maybe one should first set the folder window to sort by Modification date, so that the latest file to have been added to the folder _Output would be uppermost?!
>
> Right now unclear how to proceed…
>
> with best regards,
> Omar K N
> Stockholm, Sweden
>
> _______________________________________________
> 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


 _______________________________________________
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: 
 >last modified file - how to catch? (From: okn <email@hidden>)

  • Prev by Date: Re: last modified file - how to catch?
  • Next by Date: Re: last modified file - how to catch?
  • Previous by thread: Re: last modified file - how to catch?
  • Next by thread: Re: Re: last modified file - how to catch?
  • Index(es):
    • Date
    • Thread