Re: Fetch help
Re: Fetch help
- Subject: Re: Fetch help
- From: James Matthews <email@hidden>
- Date: Wed, 3 Sep 2003 14:40:43 -0400
How do I bypass the inicial Connect window of Fetch?
Uncheck the "Show New Connection dialog at startup" checkbox in the
Misc. section of Fetch Preferences.
\How do I get feedback to know wich files were deleted? Like storing the
file name in a list? The rest I could do by send this list as
e-mail...but I don't know how to create the list in the first place.
Here is the script:
set curDate to the current date
tell application "Fetch 4.0.3" to launch -- in background
tell application "System Events" to set visible of process "Fetch
4.0.3" to false
tell application "Fetch 4.0.3"
open url
"ftp://printserv:*****@ftp.pidalo.com.br/ARC/arquivos_recebidos/"
set allnames to name of every remote file
set deletednames to {}
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
set deletednames to deletednames & aname
end if
end repeat
end tell
Then, at the end of the script, you'd add some code to email the list
stored in the deletednames variable.
--
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.