Page 1 of 1

Restarting the Indigo Server

PostPosted: Fri Jul 15, 2016 8:24 am
by Radjin
Is there a command or script I can use to restart the Indigo Server?

Re: Restarting the Indigo Server

PostPosted: Fri Jul 15, 2016 8:53 am
by Different Computers
Code: Select all
OPEN(1)                   BSD General Commands Manual                  OPEN(1)

NAME
     open -- open files and directories

SYNOPSIS
     open [-e] [-t] [-f] [-F] [-W] [-R] [-n] [-g] [-h] [-b bundle_identifier]
          [-a application] file ... [--args arg1 ...]

DESCRIPTION
     The open command opens a file (or a directory or URL), just as if you had
     double-clicked the file's icon. If no application name is specified, the
     default application as determined via LaunchServices is used to open the
     specified files.

     If the file is in the form of a URL, the file will be opened as a URL.

     You can specify one or more file names (or pathnames), which are inter-
     preted relative to the shell or Terminal window's current working direc-
     tory. For example, the following command would open all Word files in the
     current working directory:

     open *.doc

     Opened applications inherit environment variables just as if you had
     launched the application directly through its full path.  This behavior
     was also present in Tiger.

     The options are as follows:

     -a application
         Specifies the application to use for opening the file

     -b bundle_indentifier
         Specifies the bundle identifier for the application to use when open-
         ing the file

     -e  Causes the file to be opened with /Applications/TextEdit

     -t  Causes the file to be opened with the default text editor, as deter-
         mined via LaunchServices


so, what you need is

Code: Select all
open /Library/Application\ Support/Perceptive\ Automation/Indigo\ 6/IndigoServer

Re: Restarting the Indigo Server

PostPosted: Fri Jul 15, 2016 10:48 am
by jay (support)
This AppleScript will work, assuming you don't hit the 600 error:

Code: Select all
tell application "IndigoServer"
   quit
end tell

# Give the server some time to fully shut down
delay 10

tell application "IndigoServer"
   activate
end tell

Re: Restarting the Indigo Server

PostPosted: Fri Jul 15, 2016 11:33 am
by Radjin
Perfect, thank you Jay.