Sorry for the late reply - i've been on vacation. Now all which is left to be answered is I had to convert the script into an exe for it to be accepted - maybe because my ahk association is not regist ...
Say you have an MDI application which behaves well when the file open dialog is used and badly (opens a new window) when you start it a second time with a file argument. (The latter, of course, is wha ...