Re: Save file dialogs...

2017-10-24 Thread Paul Dupuis via use-livecode
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]

Re: Save file dialogs...

2017-10-23 Thread Richard Gaskin via use-livecode
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

Re: Save file dialogs...

2017-10-23 Thread Paul Dupuis via use-livecode
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.

Re: Save file dialogs...

2017-10-23 Thread Richard Gaskin via use-livecode
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

Re: Save file dialogs...

2017-10-23 Thread Trevor DeVore via use-livecode
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

RE: Save file dialogs...

2017-10-23 Thread Ralph DiMola via use-livecode
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

Re: Save file dialogs...

2017-10-23 Thread Brian Milby via use-livecode
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

Save file dialogs...

2017-10-23 Thread Paul Dupuis via use-livecode
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