[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] hotfolder mechanism



Hello folks,

before reinventing the wheel I'd like to know whether this
has been done before:

A MacPerl script is watching a hot folder.
When new files or folders arrive it is checked whether they
continue to change. After complete arrival those files are
further processed by whatever Mac program and put into an
out folder.

The concrete task I have in mind is to use StuffIt Deluxe
for compressing. It's a pity that only Expander but neither
Deluxe nor DropStuff has such a mechanism.

There a several minor problems for which I alreday found a
solution. (stat($file))[8] gives last access time which
continue to change until copying into the hot folder is
finished. Controlling StuffitDexlue with AppleScript is no
problem too.

But processing dropped folders get's cumbersome. A module
for having the watched/hot folder mechanism seems to be a
common question for me though it is hard to implement with
all sorts of error checking. Imagine one pulls out a dropped
file from the watched folder or is doing a second copy to it
after it has been processed already.

Any thoughts about this are very welcomed


Many regards,
Axel
-- 
----------------------------------------------------------------------
Axel Rose, Springer & Jacoby Digital GmbH & Co. KG, mailto:rose@sj.com
  pub PGP key 1024/A21CB825 E0E4 BC69 E001 96E9  2EFD 86CA 9CA1 AAC5
  "... denn alles, was entsteht, ist wert, daß es zugrunde geht ..."

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org