To solve this, I built a Powershell script to launch individual instances of Firefox, one at a time, and issue a command to run one imacros script. Upon completion, the powershell script will remove that job, and issue another command to launch a new instance of Firefox and run another imacros script.
I get the following error from iMacros:
iMacros run command: macro C:\Users\stockton\Documents\iMacros\Macros\JrOilers_v_Blazers-2015.12.04.iim not found (Error code: -930)
does it think that the command includes the word "macro" up front? Because the path for the iim file is correct.
Here's the powershell loop for issueing the command:
Code: Select all
foreach($imacroFile in $iMacrosFiles) {
Try
{
$args = -join ("imacros://run/?m=", $imacroFile)
Write-Host $args
$job = Start-Job -name "Firefox flickr" -ScriptBlock { & 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe' @args } -ArgumentList $args
Wait-Job $job
Receive-Job $job
$job | Remove-Job
}
Catch
{
}
}