Use a filepanel in your script

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.



No comments so far.

(comments are closed)