Open BigFix QnA in the Terminal - Mac
| 0 Votes |
Description
Property Details
| 22767 | |
| Alpha - Code that was just developed | |
| Open BigFix QnA in the Terminal - Mac | |
| BigFix | |
| 0 | |
| Internal | |
| jgstew | |
| 5/3/2016 12:00:00 AM | |
| AppleScript | |
| True | |
| jgstew on 11/28/2016 11:25:33 AM | |
| jgstew on 11/28/2016 11:29:17 AM | |
| 4113 Views / 72 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
parameter "CurrentUserName" = "{unique value of names of (current users; logged on users)}"
// parameter "pathname" = "{ pathname of files "/Library/BESAgent/BESAgent.app/Contents/MacOS/QnA" }"
// This AppleScript option worked:
run su {parameter "CurrentUserName"} -c "osascript -e 'tell application \"Terminal\"' -e 'if not (exists window 1) then reopen' -e 'activate' -e 'do script \"/Library/BESAgent/BESAgent.app/Contents/MacOS/QnA -showtypes\" in window 1' -e 'end tell'"
// run su {parameter "CurrentUserName"} -c "/Library/BESAgent/BESAgent.app/Contents/MacOS/QnA -showtypes" // TESTED: Didn't work
// https://github.com/jgstew/tools/blob/master/AppleScript/openQnA.scpt
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |

