Hi. --- In [email protected], "Gardner, Paul G." <[EMAIL PROTECTED]> wrote: > For some reason, even though I'm not setting the > "folder" flag, changes made to that subfolder (i.e. inserts) are still > firing off the command to call the @Executed section of my script. The > arg(2) is the name of the subfolder so adding the if statement is allowing > me not to have an error, but I don't believe this is the correct behavior, > is it? Is there something I'm not doing correctly here?
Your script seems to be correct. You could maybe restart the watchfolder after the copying, instead of checking for isfolder. When the content of a folder is changed, i.e. a file is added or removed, the last changed date of the folder is changed, so the watchfolder is probably triggered by that. But when you set "file" as a parameter only files should be watched according to the readme. Don't know... I also observed another thing: With watchfolder on, you can't rename any files or folder in the watched folder. I also don't know, if it's supposed to be like that... Mockey Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
