How do you get the name of an open saved file in memory using message box?

Robert Brenstein rjb at robelko.com
Fri Jun 18 14:08:19 EDT 2010


On 14.06.10 at 07:38 -0700 charles61 apparently wrote:
>Hi Sarah,
>
>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.
>
>Charles Szasz
>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.

Robert



More information about the Use-livecode mailing list