Hi Dave,
There is a sample stack "FileFiltering" at my userspace "henk" at
Revonline, showing the different options of the answer file command.
If you know the extension of the file that is going to be saved, you
could check whether an extension is added to the filename of not. If
there's no extension, you could add it to the filename by script, and
then do the file save.
Hope this helps,
Henk
How does "ask file with type" work?
Dave
Thu, 05 Apr 2007 04:46:41 -0700
Hi,
I have a script with the following ask statement:
ask file "Enter Name of New Script File" with myScriptFolderPath
with type "rev"
What is this supposed to do?
This is what I want to happen:
The choose file dialog is displayed.
The user enters a file name with or without an extension (or is
forced to enter an extension) and the extension appended to file name.
If the file exists they are prompted to replace the current file or
not.
At the moment, if the user enters a file without an extension this
name is passed back. This is ok and it's easy to handle, but it
means that I will have two different "File Exists, Replace this
file?" dialogs which is messy and inconsistent.
The alternative is to do my own choose file dialog, but it will be
a lot of work to replicate the OS Version, especially when running
on multiple platforms.
Any ideas or suggestions?
All the Best
Dave
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution