How do you get the name of an open saved file in memory using message box?
rjb at robelko.com
Fri Jun 18 13:08:19 CDT 2010
On 14.06.10 at 07:38 -0700 charles61 apparently wrote:
>The user does not get the file by selecting ti. In this situation,
>1. The user creates a new file and populates the file
>2. Then saves the file "abc".
>3. User decides to make a change in the file.
>4. The user opens a new file without saving the changes to file abc.
>This is where I want to get a dialog asking the User to save file
>"abc" or disregard the last changes made and start a new file.
>cszasz at mac.com
Your script that handles step 2 gets the file name from the user. You
just need to preserve it to use in 4.
To save a new file, you must be using the ask file dialog. It returns
the path to the file in "it". Filename is the last item of the path.
More information about the use-livecode