Re: Fetch
Re: Fetch
- Subject: Re: Fetch
- From: James Matthews <email@hidden>
- Date: Tue, 2 Sep 2003 12:49:46 -0400
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.
- Follow-Ups:
- Re: Fetch
- From: Marcus Rodrigues <email@hidden>