Skip to main content

Open program/file

Open a program with its parameters, or a file in the application that opens it (a PDF in the PDF viewer).

Command in the Application toolkit · id ooa.application/open_program_file · 5 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
LocationFileYesThe program or file to open: browse for it or type its path. A $variable works too.
ParametersStringNoFor a program: what to pass to it, as typed after it on a command line. Words in quotes stay together.
Start inFileNoFor a program: the folder it starts in. Empty: the agent's working folder.
Wait (seconds)NumberNo0Pause this long after opening so its window can appear; 0 continues at once.
Wait for windowBooleanNofalseFor a program: go on as soon as its window shows, waiting at most wait_seconds (G4); off always pauses the whole time.

Outputs​

OutputTypeWhat it is
process_idNumberThe program's process id, for Stop program; 0 when a file was opened in its application.