i dont believe that its a timer.
that would be weird...

here is the 1st email i get... for a file that just changed a few minutes ago...


====================================================
A file has been changed.

struct  
CFCMETHOD        onChange       
CFCPATH  S:\reports\version4.0\cfc\root_productionCodeMover.cfc         
DATA     struct 
FILENAME         s:\reports\version4.0\shorty.txt       
LASTMODIFIED     {ts '2008-05-20 15:30:26'}     
TYPE     CHANGE         
GATEWAYID        ProductionCodeMover_root       
GATEWAYTYPE      FileWatcher    
ORIGINATORID     [empty string]         
====================================================

and here is the 2nd email that i get...

====================================================
A file has been changed.

struct  
CFCMETHOD        onChange       
CFCPATH  S:\reports\version4.0\cfc\root_productionCodeMover.cfc         
DATA     struct 
FILENAME         s:\reports\version4.0\shorty.txt       
LASTMODIFIED     {ts '2008-05-21 09:53:39'}     
TYPE     CHANGE         
GATEWAYID        ProductionCodeMover_root       
GATEWAYTYPE      FileWatcher    
ORIGINATORID     [empty string]         
====================================================

what the effffff????/

thanks for any insight!
tony



On Wed, May 21, 2008 at 12:38 AM, Andrew Scott
<[EMAIL PROTECTED]> wrote:
> Well, thats weird. I am going to assume that there is a timer for the
> watching of the directory then, not sure on that.
>
> But your problem is a weird one, I suggested the delete event because
> I got caught in .Net for that once before so was curious if this was
> the case here.
>
>
>
> On Wed, May 21, 2008 at 12:00 PM, Tony <[EMAIL PROTECTED]> wrote:
>> exsqueeze me :)
>>
>> im watching the "onChange" event.
>> and having it send me an email.
>>
>> so, what you are saying is that i need to turn the onDelete event off
>> and that will stop the behaviour i am seeing? because the ACT of editing
>> a file in "system speak" is a deletion then a re-creation from memory?
>>
>> wow, i figured it was something odd like that. and even more odd.  if i put
>> more time between the editing of the file, it sometimes WOULDNT do two
>> events, and only would do one event.  wonder why?
>>
>> thanks
>> tony
>>
>> On Tue, May 20, 2008 at 7:55 PM, Andrew Scott
>> <[EMAIL PROTECTED]> wrote:
>>> What events are you watching?
>>>
>>> Editing a file, deletes then recreates from memory. So you will get
>>> two emails if you are watching both these events.
>>>
>>>
>>> On Wed, May 21, 2008 at 5:48 AM, Tony <[EMAIL PROTECTED]> wrote:
>>>> hi all.
>>>>
>>>> i have an event gateway test app using the directory watcher
>>>> and its working, i have it setup to send me an email everytime
>>>> a file changes..
>>>>
>>>> problem is, is that im testing with a simple text file, and when i
>>>> make a change and save the file, i get two emails :(
>>>>
>>>> one email for the previous change, and one email for the current change.
>>>> if i do it again, same thing.  one email that matches the previous
>>>> email, and one new one.
>>>>
>>>> ideas?
>>>> thanks!
>>>> tony
>>>>
>>>> --
>>>> 'Never have anything in your life that you can't walk out on in thirty
>>>> seconds flat, if you spot the heat coming around the corner'
>>>>
>>>> robert deniro - heat (1995)
>>>>
>>>>
>>>
>>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305816
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to