Re: ask file with filter/type - how to read the selected type ?

2008-06-10 Thread Björnke von Gierke
You have to use the "ask file with type" form to know the file type selected within the dialogue, for example: on mouseUp ask file "" with type "PNG file|png|PNGf" or type "Plain file|txt|TEXT" put it && the result end mouseUp message box: /Users/bvg/Desktop/file.txt Plain file Most likely "a

Re: ask file with filter/type - how to read the selected type ?

2008-06-10 Thread viktoras didziulis
Thanks A LOT! With type it & the result works now! All the best! Viktoras J. Landman Gay wrote: viktoras didziulis wrote: Jacqueline, Thanks for the suggestion, still 'the result' after execution is empty. It would probably contain something if path selection failed. The other 'result' (path

Re: ask file with filter/type - how to read the selected type ?

2008-06-10 Thread J. Landman Gay
viktoras didziulis wrote: Jacqueline, Thanks for the suggestion, still 'the result' after execution is empty. It would probably contain something if path selection failed. The other 'result' (path stored in 'it') does not always contain an extension. If user types it in, or chooses from a lis

Re: ask file with filter/type - how to read the selected type ?

2008-06-10 Thread viktoras didziulis
Jacqueline, Thanks for the suggestion, still 'the result' after execution is empty. It would probably contain something if path selection failed. The other 'result' (path stored in 'it') does not always contain an extension. If user types it in, or chooses from a list of existing file names, t

Re: ask file with filter/type - how to read the selected type ?

2008-06-10 Thread J. Landman Gay
viktoras didziulis wrote: is there any way to know what file type user selects in ask file with filter dialog ? I need to specify different handlers for file "Save as", and now am first asking user to select the type of a desired output (i.e. raw binary, ascii text, png image or ppm image) and

ask file with filter/type - how to read the selected type ?

2008-06-10 Thread viktoras didziulis
is there any way to know what file type user selects in ask file with filter dialog ? I need to specify different handlers for file "Save as", and now am first asking user to select the type of a desired output (i.e. raw binary, ascii text, png image or ppm image) and next opening ask file dial