• 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: oldest file of folder1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oldest file of folder1


  • Subject: Re: oldest file of folder1
  • From: Robert Poland <email@hidden>
  • Date: Tue, 1 Feb 2005 16:06:56 -0700

Wizards,

This script;

tell application "Finder"
set folder1 to choose folder
set f to POSIX path of folder1
set the_oldest to last paragraph of (do shell script "ls -t " & quoted form of f)
set the_oldest to POSIX path of folder1 & the_oldest
get {label index} of file the_oldest
set x to result
...


gets the proper file name but I can't seem to figure out how to use it. I get an error; "Can't get label index of "dcp_460.jpg".

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: oldest file of folder1
      • From: Michelle Steiner <email@hidden>
    • Re: oldest file of folder1
      • From: "Adam K. Wuellner" <email@hidden>
  • Prev by Date: Re: open image sequence in quicktime
  • Next by Date: Re: oldest file of folder1
  • Previous by thread: Re: oldest file of folder1
  • Next by thread: Re: oldest file of folder1
  • Index(es):
    • Date
    • Thread