http://quality.livecode.com/show_bug.cgi?id=20600
Requested as an enhancement to the 'ask file' engine command.
The next question might be what form would that enhancement take? If we
look at the syntax of:
ask file prompt [with defaultFilePath] [with type types [or type types
...]] [as sheet]
Paul Dupuis wrote:
> On 10/23/2017 4:23 PM, Richard Gaskin via use-livecode wrote:
>> Trevor DeVore wrote:
>>
>> > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode <
>> > use-livecode at lists.runrev.com> wrote:
>> >
>> >> One option would be to leave the extension off when
On 10/23/2017 4:23 PM, Richard Gaskin via use-livecode wrote:
> Trevor DeVore wrote:
>
> > On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> >
> >> One option would be to leave the extension off when initially
> >> presented to the user.
Trevor DeVore wrote:
> On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> One option would be to leave the extension off when initially
>> presented to the user. Then add the correct extension before saving
>> if the user did not
On Mon, Oct 23, 2017 at 11:32 AM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:
> One option would be to leave the extension off when initially presented to
> the user. Then add the correct extension before saving if the user did not
> manually add one. It is probably a
In Windows you can add a hook into the open/save file dialogs. You get call
backs for various events including changing the file type. I don’t know about
Mac/Linux but I would assume the same(but different) facilities exist.
Accessing the windows hooks would of course require changes
One option would be to leave the extension off when initially presented to
the user. Then add the correct extension before saving if the user did not
manually add one. It is probably a little more complicated than that
though... unless the user has their OS set to display extensions, they may
not
In our application we often provide our customers with the ability to
save information in a variety of formats using a code snippet such as:
put "YourData.txt" into tDefaultFileName
put "Save some data as:" into tPrompt
put the defaultFolder & tDefaultFileName into tDefaultFilePath
put