Solution Number:
5509
Name:
Using AppleScript to Quit Server
Description:
Big Business for Mac does not include support for AppleScript, but as an application will respond to AppleScript instructions such as "Quit." This is very straightforward if you are familiar with AppleScript.
Big Business Server takes an extra parameter when being told to Quit, which corresponds to the Server Shutdown dialog which protects against disconnecting current users. (5509)
Status:
Complete
Picture:
Solution:
To Quit Big Business Server for MacOS using an AppleScript, you need to specify the "delay" parameter.
Insert the following into your AppleScript:
tell application "BB Server Engine" quit with delay {x} -- -2: Display the quit dialog box, -- -1: Wait until all users are disconnected, -- 0: Wait the specified number of minutes before disconnecting. end tell
Replace x with your preferred setting, as follows:
- Using 0 (e.g. quit with delay {0}) will quit BB Server immediately, disconnecting any active users. Using 2 would quit in two minutes.
- Using -1 will quit BB Server when the last user disconnects.
- Using -2 will display the quit dialog box.
Related:
|