Monitor for new folders not triggering

Discuss RoboTask here
Post Reply
pancakegh
Posts: 15
Joined: Mon Feb 16, 2015 10:21 am

Monitor for new folders not triggering

Post by pancakegh »

Hi,

I made a task that is supposed to trigger when a new folder is created in a directory:

- The directory is located on a network drive: P:\ARTWORK-DATA\A_Artwork data
- include masks set to *.*
- Filters: Watch for new files / Watch for changed files with everything checked / Monitor files / Monitor folders
- Interval set to 5 seconds

- Save changes: Save changes to files, save in common list

The action is simply not triggering. From indesign I package a new artwork, which generates a folder in P:\ARTWORK-DATA\A_Artwork data which contains several files including a .PDF which I would like to copy.
I also tried setting the mask to *.pdf and setting the folder to include subfolders. No avail either.

A side note: The folder P:\ARTWORK-DATA\A_Artwork data contains 5000+ folders and 30.000+ files.

Is the action not triggering because the folder contents is simply to big to index?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Monitor for new folders not triggering

Post by Oleg »

A side note: The folder P:\ARTWORK-DATA\A_Artwork data contains 5000+ folders and 30.000+ files.
The trigger try to check file list on specified parameters every 5 seconds.
But I'm afraid that checking process takes more than 5 seconds to check so large folder on network drive.
Also pay attention that disk P must be mapped and available for RoboTask.
How do you use RoboTask with this task: as simple application or as system service?
I made a task that is supposed to trigger when a new folder is created in a directory.
In this case you do not need to check files at all

Also are you sure that you check folder with subfolders. If not then the trigger will not work in most cases.

Look at my example (below). Trigger fires when new subfolder created and ignores all other events (create, modify or delete files; removing folders)

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task40"
Hide=INTEGER|0
ID=INTEGER|-1597765888
LogOnAsUser=INTEGER|1
Name=STRING|"check new folders"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action1\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"0"
message=STRING|"new folder created"
position=STRING|"3"
title=STRING|"new forlder"
width=STRING|"330"

[Actions\Action2]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""newfolders.txt """
Params=FOLDER

[Actions\Action2\Params]
ifnonzero=STRING|"0"
program=STRING|"{TempDir}\newfolders.txt"
runas=STRING|"0"
wait=STRING|"0"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Params=FOLDER
UniqueID=INTEGER|1352388669

[Events\Event1\Params]
chg=STRING|"0"
chga=STRING|"1"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"0"
folder1=STRING|"D:\incoming"
foldercount=STRING|"1"
incmask=STRING|"*.*"
interval=STRING|"5"
listmode=STRING|"1"
mon_files=STRING|"0"
mon_folders=STRING|"1"
new=STRING|"1"
onelist=STRING|"{TempDir}\newfolders.txt"
pass=STRING|"0"
passmode=STRING|"1"
required=STRING|"1"
saveresults=STRING|"1"
subfolders1=STRING|"1"

Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Do not forget to enable the task after importing.
Oleg Yershov
Post Reply