[QUESTION at bottom] After installing Splunk from the dmg, when I use the little helper to get Splunk Enterprise running in my browser, I get the following error message:
error "osascript: OpenScripting.framework - scripting addition \"/Library/ScriptingAdditions/Numerics.osax\" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition \"/Library/ScriptingAdditions/Satimage.osax\" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition \"/Library/ScriptingAdditions/XMLLib.osax\" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
307:308: syntax error: Expected end of line, etc. but found unknown token. (-2741)" number 1
The Script Editor in Debug mode shows that the startup script is failing on the last line of this script (note that the comments are as Script Editor reports them, not something that I added; using COMMENT# to correct formatting artifacts):
set SCRIPT_NAME to "osxManageSplunk.sh"
set SPLUNK_ICON to path to resource "splunk_icon.icns"
COMMENT# Single line file, populated by postinstall script, required: no newline.
set SPLUNK_HOME_FILE to path to resource "SPLUNK_HOME.path"
COMMENT# Read SPLUNK_HOME value from above file.
open for access SPLUNK_HOME_FILE
set SPLUNK_HOME to (read SPLUNK_HOME_FILE)
close access SPLUNK_HOME_FILE
COMMENT# Get path as /foo/bar instead of Foo:Bar. God I hate you,
COMMENT# AppleScript. I don't understand you, but I do know I hate you.
set SCRIPT_PATH to POSIX path of (path to resource SCRIPT_NAME)
COMMENT# Run startup shell script and pass in SPLUNK_HOME path. And as
COMMENT# always, quote it. /bin/sh Macintosh HD doesn't work so well.
do shell script "\"" & SCRIPT_PATH & "\" \"" & SPLUNK_HOME & "\" \"" & SPLUNK_ICON & "\""
QUESTION: Any idea what I'm doing wrong? How do I make this work?
... View more