Mod or Creation Date
Mod or Creation Date
- Subject: Mod or Creation Date
- From: Marcus Rodrigues <email@hidden>
- Date: Tue, 20 Jul 2004 15:34:45 -0300
Hya People!!!
I'm trying to get the creation or modification dates of files stored on
a PC, using an alias as destination of the script:
set destino to "Macintosh HD:users:marcus:desktop:Marcus no P3"
set curDate to the current date
tell application "Finder"
launch
set allnames to name of every file of alias destino
set cd to the modification date of allnames
set arquivosdeletados to {}
set AppleScript's text item delimiters to ", "
repeat with aname in allnames
set aname to (aname as string)
try
if creation date of file aname < curDate - 7 * days then
delete file aname
set arquivosdeletados to arquivosdeletados & aname
end if
end try
end repeat
end tell
set tuf to the items of arquivosdeletados as string
allnames
cd
It gives me an error saying it can't get the dates of files.... Any
help???
.: Marcus Rodrigues :.
Designer Grafico
Moderador BAC-MacUsers
email:
mailto:email@hidden
site:
http://homepage.mac.com/marcusrodrigues
iChat: email@hidden
Fone: 54 81144454
_______________________________________________
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.