I'm needing to run a simple one-line script on some machines via policy but
the language is AppleScript. Therefore, I'm preceding that with the
"osascript -e" to run it as a shell script.
In the policy under the Advanced tab I'm adding this to the Run Command
field (all one line):
osascript -e 'tell application "ColorSyncScripting" to set system profile to
profile "HP L1906 Calibrated_Sam"'
However, after saving the policy the line is truncated to
osascript -e 'tell application
I've tried changing the command to use double-quotes, escaping the
double-quotes in AppleScript command (all one line):
osascript -e "tell application "ColorSyncScripting" to set system profile
to profile "HP L1906 Calibrated_Sam""
But this truncates to
osascript -e
Apparently, double-quotes aren't allowed in this field, but AppleScript
requires the double-quotes.
I'm assuming this is a bug because the command does work in Terminal. Does
anyone have a workaround?
bill
--
William M. Smith, Technical Analyst
Digital Information Systems Support
Merrill Communications, LLC
(651) 632-1492