Re: Fetch
Re: Fetch
- Subject: Re: Fetch
- From: Marcus Rodrigues <email@hidden>
- Date: Tue, 2 Sep 2003 14:27:51 -0300
Thx very much!!!!!
It was exactly what I wanted!!!
And I learned a lot more from your script. Thx again =-D
On Tuesday, September 2, 2003, at 01:49 PM, James Matthews wrote:
I discovered somethig nice: Fetch is recordable!!!!
It helps a lot. But I have one doubt. Is there a way to get a file's
date with Fetch? I want to make a script to erase, for example, files
wich are one week old... Is that possible???
Yes. Here's a script that does that:
set curDate to the current date
tell application "Fetch 4.0.3"
open url "ftp://userid:@host/incoming/"
set allnames to name of every remote file
repeat with aname in allnames
set aname to (aname as string)
if modification date of remote file aname < curDate - 7 * days then
delete remote file aname
end if
end repeat
end tell
Thanks,
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com
_______________________________________________
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.
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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.
References: | |
| >Re: Fetch (From: James Matthews <email@hidden>) |