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
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
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
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
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
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