How to handle the Cancel action of OpenFile dialog with scripting

So if I have an “OpenFile” dialog and the user clicks “Cancel” all I want to do is just close the openfile dialog - with scripting?

I can do what needs to be done if client follows thru the procedure but if they cancel I can’t figure out how to just close the openfile dialog and put them back to where they was.
I can’t figure this out .

Thanks

Thanks, I finally figured it out.

1 Like