application.writeTXTfile question

Hi,

I noticed that if you do not specify a filename in this function, on windows you get a (Windows??) Save dialog. Is it possible to have the option to specify a “Suggestion Filename” and let the “Windows” Save Dialog appear with the Sggested Filename in the FileName area of the Save Dialog?? This way the user can change the location and filename, or can just press “Save” in the Save Dialog.

Paul

You can use the following to define the name first:

var p = plugins.file.showFileOpenDialog()

and use the result like p.getAbsolutePath()…

Marcel, with this option (that does offer new some new ideas… :-) ) i run into the same issue:

In the area where the user can put the filename, I want to make a suggestion, for example: CustomerReport_06-02-2004.txt. The user can then override it, or just click “save”.

That is the other thing about this option: It says “Open”. To not confuse the user, it should say “Save”

Servoyians: Any chance of adding these features?

Paul

Sorry, my mistake. You should use:

application.showFileSaveDialog( [fileName suggestion])

:D

Yep, that does it!

I never looked there. Doesn’t it make more sence to have this function under the file plugin node in the method editor?

Paul