The Haiku/BeOS Tip Server
Tips and tricks for Haiku/BeOS users

Use a filepanel in your script

Contributed by:
This tip is valid for: Haiku only

BeOS has long had the alert command. With alert, you can put up a little message on the screen with one to three buttons:

alert “Hello World” “go away” “hello” “ok”

With Haiku alpha1, the dev team seems to have slipped something else in quietly: filepanel

filepanel -d ~/Desktop -t “Open a File”


filepanel returns the full pathname of the selected file to standard output. This means that scripts can now ask the user where an app should be installed, for example, or whether to put a symlink in the Deskbar menu and what to call it.

Documentation seems limited to runningĀ filepanel with theĀ –help parameter.

Posted in Haiku, Scripting, Terminal

(comments are closed).