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

RE: document list?


  • Subject: RE: document list?
  • From: George Mack <email@hidden>
  • Date: Wed, 13 Dec 2000 17:50:15 -0500

Message: 4
From: email@hidden
Subject:
To: email@hidden
Date: Wed, 13 Dec 2000 10:47:27 -0800

I've been given the task to write a Script that when executed will check
a given folder for files and ftp them to an ftp server.
When it's run again I don't want to ftp any files that have already been
uploaded!

OK, assuming that you can't/don't want to delete the file or move it out of
the folder after uploading, I have a solution that works pretty reliably
and is not too complicated.

In the preferences folder create a new folder called "Uploading Aliases" or
something similar.

Each time you upload a file, create an alias to that file in the "Uploading
Aliases" folder.

Then, before you upload a file make sure there is not already an alias to
that file in the "Uploading Aliases" folder.

Finally, ad an idle handler that will remove any aliases from the
"Uploading Aliases" folder whose original has been deleted or moved.

Another approach I've used is to change the color of the icon (tell app "Finder" to set label index of file TheFile to 3). Then you just have to have a filter in your process loop that ignores all files with that color icon, using a "whose" clause. No extra lists, no aliases, no back-up /synchronization issues. And you can choose to set the color only after a *successful* upload, if you have such issues with the ftp site. AND it gives a fast visual check on progress.

George
--
GEORGE MACK DESIGN  Scituate, MA 02066  (781) 544-3880
Design-Illustration-Desktop Publishing-Miscellaneous Magic


  • Follow-Ups:
    • RE: document list?
      • From: Phi Sanders <email@hidden>
  • Prev by Date: scripting the launcher
  • Next by Date: Re: "List View" ASIP Please!
  • Previous by thread: RE: document list?
  • Next by thread: RE: document list?
  • Index(es):
    • Date
    • Thread