I am creating an app where the user saves a graphics file. The file object is used to open a save file dialogue box which is directed to the application directory. If the file is readable, the file is saved to the users selected directory. I then save the selected directory as a string, so if the save dialogue box is opened again, it opens to the same directory the user used before.

Now the problem. No matter what I do, if the user opens the file dialogue box and cancels out, the directory is changed to one that I don't want. Is there a condition that will pick up the user selecting the cancel button in the save dialogue box or some other way of doing this?

Found the answer by doing another search.

Answer posted:

Use the expression Get Result Pathname under the File Selector menu for the File Object. If you want to confirm the user hit OK and not cancel, compare two values in a condition:

FileSelectorResult different than ""

Steve


I've tried Last Action OK, file is readable, and file is writable. I don't see anything else that might do the trick.

Thanks,
Steve