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

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>
  • Prev by Date: Property (variable)
  • Next by Date: Re: Moving on even when a part fails
  • Previous by thread: Re: Fetch
  • Next by thread: Re: Fetch
  • Index(es):
    • Date
    • Thread