#!/bin/bash

#--------------------------------------------------------
#-- setup the path to the dialogs

GBdialogPATH=/usr/local/Gtkbasic-002

FILECHOOSER="$GBdialogPATH/dialog-multifilechooser/GBdialog-multifilechooser"

#---------------------------------------------------------------
# modes (1-4) open file , save file , open folder , create folder
# multiselect only for mode 1


# -- open multiple files -----------------------------------

title="Open Files"
folder="/usr/share/audio"
wildcards="*.au"
mode="1"
multiselect="1"
result=`"$FILECHOOSER" "$title" "$folder" "$wildcards" "$mode" "$multiselect" 2>/dev/null`


#-- display the choice: -----------------------------------

xmessage -center "you chose:
$result

bye bye...
"

