• 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
Mod or Creation Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Mod or Creation Date
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: non breaking space
  • Next by Date: Newbie with very simple question
  • Previous by thread: Re: Photostitch dictionary...
  • Next by thread: Re: Mod or Creation Date
  • Index(es):
    • Date
    • Thread