Therefore, when the last document is closed, I recommend the current working directory change to the one in which TextPad was installed. But remember the "actual" current working directory, as it was before the last document was closed.
Then, if you call the "open" command, switch the working directory back to the "actual" one before triggering the open dialog. If the directory doesn't exist, give this dialog instead:
Code: Select all
Working directory does not exist. From which directory do you wish to open a document?
Button1: <The working directory (recreate it first)>
Button2: <The default/startup directory>
Button3: <Browse...>
I think this is a great idea. Thanks to gormania for sparking it in me! :' )