what you are saying is absolutely right
In my case if my application is running and application window is not opened(visible in system tray) ,For opening its window i have to click the appicon in system tray .From the scroll down options i open the application window
The Second instance checks whether there is one instance running { if true it quits itself else this is the first instance }
Only one instance at a time seems to be the normal behaviour
Double clicking on the application icon will/should run 1 instance while again double...
Yes "myapp.app" is created by me
if we run the unix executable(myapp) file present at /Applications/myapp.app/Contents/Macos/myapp it runs another instance.
In this case when second instance run it passes message to first instance(through IPC) and kills the second instance.
the same i want to...
Thanks for making me believe that it is possible.
How can i link the apple script with the application Icon(Info.plist)
I could move the original application to somewhere other than /Applications, replace it with your new script
I can create such an app with osacompile -e 'do shell script...
How can i run another instance of the application while the application is already running, by clicking on the application Icon in /Applications/.
I dont want to run it from /Applications/myapp.app/Contents/MacOS/myapp
Can i link a script file containing statements
(1)open -n...