I am trying to launch a second session of SU programmatically from another script. The second session should start with the a specified user script and exit. I am on Mac OSX.
I would also check the running SU version to ensure it was opening the same…
# First we get the path to the current parent version of SketchUp, this is the easiest
# way I've found to ensure the right version restarts when more than one version is open.
#CUR_APP_PATH = (ENV["IG_ROOT"]).split("/")[0..-3].join("/").freeze.inspect unless defined? CUR_APP_PATH
CUR_APP_PATH = $:.grep(/SketchUp\./)[0].split('/Contents')[0].inspect unless defined? CUR_APP_PATH
#sup = Sketchup.find_support_file('SketchUp.exe').tr("/", "\\")
# Next we get the process identity [pid] of the actual running version of SketchUp.
CUR_APP_PID = Process.pid.freeze unless defined? CUR_APP_PID