Scripting Index has sometimes very good examples
![jthi_0-1722839051200.png jthi_0-1722839051200.png](/t5/image/serverpage/image-id/66827i9918F04EB88886B6/image-size/medium?v=v2&px=400)
In this case if you want it to open on Desktop, you can use $DESKTOP path variable
Names Default To Here(1);
New Window("File explore",
<<modal,
Spacer Box(size(20, 10)),
Text Box("Choose a log.txt file:"),
BB1 = Button Box("Pick file",
D = Pick File("Select file", "$DESKTOP");
If(D != "",
file1 << set text(D)
);
),
file1 = Text Box(),
);
-Jarmo