Re: oldest file of folder1
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