I have been struggling with this problem for a while.
I am trying to execute a macro as a stand-alone process from the desktop with or without WP already running.
When done I want to close this occurrence of WP via AppClose but if WP was already running not to close that occurrence too.
Using AppLocate I can determine if WP is already active at the start before PS loads WP again for the macro.
I give it some time to load then check again with AppLocate.
The problem is that both handles are the same and I cannot close one of them without the remaining one becoming unstable and wants to close.
So I end up with an superfluous icon on the taskbar.
Is there a way to do this properly?
Any help will be very much appreciated.