Wrong folder

Monte Goulding monte at sweattechnologies.com
Wed Mar 19 23:19:00 EST 2003


>
> > Try:
> >
> > on mouseUp
> > answer file empty with "/Macintosh HD/Revolution 1.1.1 Classic/Doggies/"
> > with filter "JPEGs,*.jpg"
> > put url ("binfile:" & it) into img 1 of grp 1
> > end mouseUp
> ----------
> Nope, still opens to the Desktop list.
>
Maybe it's silent protest about the fact you are using a file extension
filter instead of a type code????

Just from some minor testing it looks as though it will open at the last
place it navigated to and opened a file from unless you specify the full
path of a file (not folder). Quite a nice feature when you think about it.

Personally if I were asking the user to choose a file only from a specific
folder I'd just use the files function to get a list and present that to the
user. Failing that you could always use the first JPEG in the list as a
default choice.

Monte





More information about the use-livecode mailing list