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

Re: [MacPerl] hotfolder mechanism



Perhaps it would be easier to use Sys 8+ folder actions to invoke your
script, which as I understand would only be invoked after the transfer is
complete. I am not sure how it would behave when putting files into embedded
folders, but it may still prove a bit easier and less resource intensive
(i.e. keeping a program open all the time and having to make sure it stays
open).

-K

--
"I am not a shrimp, I am a king prawn!"
    - Muppets from Space

> From: Axel Rose <rose@sj.com>
> Date: Thu, 15 Jun 2000 10:55:13 +0200
> To: macperl@macperl.org
> Subject: [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
> 


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