;***************************** ;* RoboTask Task file ;* Do not edit in text editor! ;***************************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|-1 CatID=INTEGER|1931015449 ContinueOnError=INTEGER|0 ExternalName=STRING|"Task378" Hide=INTEGER|0 ID=INTEGER|1630547918 LocalVariables=STRING|"filename,readonly" LogOnAsUser=INTEGER|1 Name=STRING|"Check readonly Attribute" OnErrorTaskID=INTEGER|0 Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|3 WriteGeneralLog=INTEGER|0 [Actions] Action1=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER Action7=FOLDER [Actions\Action1] ActionID=STRING|"A_DIALOG_OPEN" Enabled=INTEGER|-1 Name=STRING|"Open Dialog" Params=FOLDER [Actions\Action1\Params] caption=STRING|"Open File" default=STRING|"None" filter=STRING|"Text files|*.txt|All files|*.*|" variable=STRING|"FILENAME" [Actions\Action2] ActionID=STRING|"BASIC_EVALUATE" Enabled=INTEGER|-1 Name=STRING|"Evaluate" Params=FOLDER [Actions\Action2\Params] expression=STRING|"(GetAttr(""{filename}"") and 1)>0" variable=STRING|"READONLY" [Actions\Action3] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action3\Params] case=STRING|"0" operator=STRING|"0" type=STRING|"3" value1=STRING|"{readonly}" [Actions\Action4] ActionID=STRING|"A_DIALOG_MESSAGE" Enabled=INTEGER|-1 Name=STRING|"Show ""File {filename}""" Params=FOLDER [Actions\Action4\Params] icon=STRING|"0" msg0=STRING|"File {filename}" msg1=STRING|"is protected" msgcount=STRING|"2" playsound=STRING|"0" showmessage=STRING|"1" [Actions\Action5] ActionID=STRING|"A_FLOW_ELSE" Enabled=INTEGER|-1 Name=STRING|"Else" [Actions\Action6] ActionID=STRING|"A_DIALOG_MESSAGE" Enabled=INTEGER|-1 Name=STRING|"Show ""File {filename}""" Params=FOLDER [Actions\Action6\Params] icon=STRING|"1" msg0=STRING|"File {filename}" msg1=STRING|"is not protected" msgcount=STRING|"2" playsound=STRING|"0" showmessage=STRING|"1" [Actions\Action7] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If"