Help - Monitor Folder & Open Files

Discuss RoboTask here
Post Reply
bofeibous
Posts: 1
Joined: Tue Jul 27, 2010 1:03 pm

Help - Monitor Folder & Open Files

Post by bofeibous »

I'm trying to automate photo processing. I've created a
script in photoshop to auto process photo on open. I
need
Robo task to monitor a folder and evertime a new file is
uploaded to the folder it will open the new file in
photoshop. Also is there anyway to limit it to only open
a new file ever 30 secs not all at once?

My attempt at the task

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|862834545
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task1"
Hide=INTEGER|0
ID=INTEGER|732681530
LogOnAsUser=INTEGER|1
Name=STRING|"Auto Process"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|1
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""*.jpg """
Params=FOLDER

[Actions\Action1\Params]
ifnonzero=STRING|"0"
program=STRING|"*.jpg"
runas=STRING|"1"
wait=STRING|"0"
workdir=STRING|"C:\Documents and 
Settings\cooper.KOBE.002\My Documents\KOBE PHOTO 
SYSTEM\Original"

[Events]
Event1=FOLDER

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

[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|"C:\Documents and 
Settings\smith\My Documents\PHOTO 
SYSTEM\Original"
foldercount=STRING|"1"
id=STRING|"HZYW4UD2T"
incmask=STRING|"*.*"
interval=STRING|"15"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"
Last edited by bofeibous on Wed Jul 28, 2010 3:01 pm, edited 1 time in total.
David W.
Posts: 41
Joined: Wed Feb 22, 2006 8:02 am

Help - Monitor Folder & Open Files

Post by David W. »

I would say something like this.  Not tested.  Use as a pattern and fine tune it.  I don't trust the file monitoring to always detect so I use a file loop that fires every 30 sec.

Code: Select all

<br>;*****************************<br>;* RoboTask Task file<br>;* Do not edit in text editor!<br>;*****************************<br> <br>[Root]<br>ActionAfterRun=INTEGER|0<br>Actions=FOLDER<br>Automat=INTEGER|0<br>CatID=INTEGER|703976723<br>ContinueOnError=INTEGER|0<br>Events=FOLDER<br>ExternalName=STRING|"Task260"<br>Hide=INTEGER|0<br>ID=INTEGER|732681530<br>LogOnAsUser=INTEGER|1<br>Name=STRING|"Auto Process (imported)"<br>OnErrorTaskID=INTEGER|0<br>Priority=INTEGER|3<br>RunOnClose=INTEGER|0<br>RunOnStartup=INTEGER|1<br>ToLog=INTEGER|3<br>WriteGeneralLog=INTEGER|0<br><br>[Actions]<br>Action1=FOLDER<br>Action2=FOLDER<br>Action3=FOLDER<br>Action4=FOLDER<br><br>[Actions\Action1]<br>ActionID=STRING|"A_LOOP_FILE"<br>Enabled=INTEGER|-1<br>Name=STRING|"File Loop"<br>Params=FOLDER<br><br>[Actions\Action1\Params]<br>createmode=STRING|"1"<br>date1=STRING|"20100921"<br>date2=STRING|"20100921"<br>destvar=STRING|"{PHOTO_FILE_NAME}"<br>DuringDays=STRING|"1"<br>DuringHours=STRING|"1"<br>DuringMinutes=STRING|"1"<br>DuringMonths=STRING|"1"<br>file0=STRING|"C:\My Documents\My Photos"<br>filecount=STRING|"1"<br>OlderDays=STRING|"1"<br>OlderHours=STRING|"1"<br>OlderMinutes=STRING|"1"<br>OlderMonths=STRING|"1"<br>savesize=STRING|"0"<br>searchkind=STRING|"0"<br>subdirs=STRING|"1"<br>timesize=STRING|"0"<br>WithoutPath=STRING|"0"<br><br>[Actions\Action2]<br>ActionID=STRING|"A_GENERAL_RUN_PROG"<br>Enabled=INTEGER|-1<br>Name=STRING|"Run ""photoshop.exe {PHOTO_FILE_NAME}"""<br>Params=FOLDER<br><br>[Actions\Action2\Params]<br>ifnonzero=STRING|"0"<br>params=STRING|"{PHOTO_FILE_NAME}"<br>program=STRING|"photoshop.exe"<br>runas=STRING|"0"<br>wait=STRING|"0"<br><br>[Actions\Action3]<br>ActionID=STRING|"A_LOOP_BREAK"<br>Enabled=INTEGER|-1<br>Name=STRING|"Break"<br><br>[Actions\Action4]<br>ActionID=STRING|"A_LOOP_END"<br>Enabled=INTEGER|-1<br>Name=STRING|"End Loop"<br><br>[Events]<br>Event1=FOLDER<br><br>[Events\Event1]<br>Enabled=INTEGER|-1<br>EventID=STRING|"E_GENERAL_CYCLIC"<br>Params=FOLDER<br><br>[Events\Event1\Params]<br>id=STRING|"GJNCASR4"<br>interval=STRING|"30"<br><br>
Post Reply