• 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
Re: Fetch help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: tell application "FileMaker Pro/Developer"
  • Next by Date: Re: tell application "FileMaker Pro/Developer"
  • Previous by thread: Fetch help
  • Next by thread: System Date Format
  • Index(es):
    • Date
    • Thread