I’m having an issue with a fixlet I’m running (not the fixlet / BigFix fault) and I need it to run what I have and then pause for 30 seconds and then run the rest…
I don’t see this anywhere in the docs but I’m assuming there is something like this?
Ah sorry, i wrote that on the fly and didn’t test it.
The relevance substitution will effectively paste into the action script the relevance results. so basically it was trying to do ’ parameter “start” = Thu, 09 Dec 2010 13:37:40 -0800’, which doesn’t work without putting quotes around. also, no semicolon. Wrong language. Try this:
parameter "start" = "{now}"
pause while {now < ( (( parameter "start" of action ) as time ) + 30* second)}
//do some stuff after 30 seconds
if
{(exists running applications whose (exists pathname whose (it as lowercase contains
"Internet Explorer" as lowercase) of it))
} parameter
"start"=
"{now}" pause
while
{(exists running applications whose (exists pathname whose (it as lowercase contains
"Internet Explorer" as lowercase) of it)) AND (now-time (parameter
"start") < 120*second)
} endif
continue
if
{not (exists running applications whose (exists pathname whose (it as lowercase contains
"Internet Explorer" as lowercase) of it))
}
First I like to verify if I even need to wait, then wait for the time or the process to complete. Doing this allows me to set a higher timer so I can actually exit out of the action if the process doesn’t end.
If you’re waiting for somthing to start, then you can swap the “not” to the begining and the wait.
this is helpful when doing updates that may be running more than one process. Like acrobat reader. If you miss one process when you do your update, this could cause a pendingfilerenameoperation. If you wait for all items to close, this will reduce the need for reboots.