Fetch help
Fetch help
- Subject: Fetch help
- From: Marcus Rodrigues <email@hidden>
- Date: Wed, 3 Sep 2003 13:18:45 -0300
Hi all!!
Still working with Fetch, I have too doubts.
First:
How do I bypass the inicial Connect window of Fetch? It will not
continue the script untill I hit OK in it...
Second:
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
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
Thx for any help =-D
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.