Page 1 of 1

answer file using a start location and filter file type

Posted: Tue Aug 05, 2014 3:18 pm
by Da_Elf
as the title says i want the answer dialog to filter both file type and to have a start location. ive googled it and searched the forum but can find it with one one option not both

Re: answer file using a start location and filter file type

Posted: Tue Aug 05, 2014 3:38 pm
by Klaus
Hi Da_Elf,

"why seek far afield when the good could not be any closer by?" 8)

Use the dictionary instead fo Google:
answer file[s] prompt [with defaultPath] [with type types [or type types ...]] windowTitle] [as sheet]
...
put specialfolderpath("desktop") into tFolder
answer file "Select a JPEG file:" with tFolder with type "|jpg|JPEG"
...

Best

Klaus

Re: answer file using a start location and filter file type

Posted: Tue Aug 05, 2014 3:46 pm
by Da_Elf
dictionary was the 1st place i looked naturally. however my mistake was getting the order wrong. when i tried it with the file type then the start folder it didnt work. thanks

Re: answer file using a start location and filter file type

Posted: Tue Aug 05, 2014 3:56 pm
by Klaus
answer file prompt [with defaultPath] [with type ...]
Yep, hard to figure out the correct order... :mrgreen:

Re: answer file using a start location and filter file type

Posted: Tue Dec 16, 2014 9:10 pm
by Da_Elf
Ok i checked the downloads section for their release notes. The copy i got from just clicking download on the homepage was 7.0.0 build 10018 and i see its got a problem with the answer files code. The change log 7.0.1 rc4 shows work was done to it. Does anyone know if its all ok now? i had to go back to the copy of 6.5.0 build 3009 that i initially coded in to get things working again