Feature request: Close app if last open window is closed
I have bought SecuritySpy for my father to keep an eye on a camera and he uses it religiously.
The one challenge is that he calls me at least once a week because 'it's not working'. Without fail the 'problem' is that he has closed the 'All cameras' window the day before and when he wants to look again he doesn't see anything when he clicks on the app. :-D
Is it perhaps possible to add a setting somewhere (off by default) that closes the app if the last open window is closed? I've seen that on some other apps and I think that would solve the issue.
The one challenge is that he calls me at least once a week because 'it's not working'. Without fail the 'problem' is that he has closed the 'All cameras' window the day before and when he wants to look again he doesn't see anything when he clicks on the app. :-D
Is it perhaps possible to add a setting somewhere (off by default) that closes the app if the last open window is closed? I've seen that on some other apps and I think that would solve the issue.
Comments
-
I understand the issue, but what you are suggesting is against Apple's human interface guidelines. Only single-window apps should quit if their one and only window is closed by the user. Virtually all multi-window apps stay open if all windows are closed, and this is especially important for SecuritySpy, because in most cases it should stay open in the background and continue to process cameras if all windows are closed.
One solution for you would be to create a simple AppleScript using the Script Editor application, that you will find in the /Applications/Utilities/ folder. Enter the script as follows:
tell application "SecuritySpy"
activate
open main video window
end tell
Then save this as an Application to the Desktop or to the Dock, and instruct your father to open this when he wants to view the cameras. -
Ah makes sense.
Thanks for the AppleScript, that should do the trick! -
FYI in the latest 4.2.8 version of SecuritySpy, if SecuritySpy is open with no visible windows, and the user clicks the SecuritySpy icon in the Dock (or double-click in the Finder), SecuritySpy will automatically open the "All Cameras" window. This should solve the problem you are describing.
