Guide 6 - Programs

Perun2 provides a convenient interface for files and programs.

We can open a file using its default program. Enter a name, a path or multiple values.

open 'a.png'

We can open a popular program. Right here you can find some useful constants to choose from. If there is no constant value for your program, enter a string literal with an absolute path to it.

open gimp

We can open a file using a program as shown below.

open 'a.png'
  with gimp

Of course more complex scripts can be made. Make sure to put the with part at the end of the command and not somewhere in the middle.

open '*.png'
  order by creation desc
  limit 1
with gimp
Next