Open BigFix QnA in the Terminal - Mac
Log In or Register to download the BES file, and more.

0 Votes

Description

This is an offer to open BigFix QnA in Terminal.app for macOS.

Property Details

ID22767
StatusAlpha - Code that was just developed
TitleOpen BigFix QnA in the Terminal - Mac
CategoryBigFix
Download Size0
SourceInternal
Source IDjgstew
Source Release Date5/3/2016 12:00:00 AM
KeywordsAppleScript
Is TaskTrue
Added by on 11/28/2016 11:25:33 AM
Last Modified by on 11/28/2016 11:29:17 AM
Counters 3530 Views / 72 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 227 fixlets and 100 analyses   * Results in a true/false
Show indented relevance
mac of operating system
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists unique value of names of (current users; logged on users)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists files "/Library/BESAgent/BESAgent.app/Contents/MacOS/QnA"

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:
Share this page on Yammer

Comments

Log In or Register to leave comments!