Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Added add_gaussian_user script
Browse files Browse the repository at this point in the history
  • Loading branch information
flammable committed Feb 4, 2018
1 parent c1cd0b7 commit 2866ba1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions add_gaussian_user.applescript
@@ -0,0 +1,16 @@
display dialog "Please enter the account to give access to Gaussian." default answer ""
set username to text returned of result
try
do shell script "/usr/sbin/dseditgroup -o edit -a 'SJU-VMAD\\" & username & "' -t user gaussian" with administrator privileges
set question to display dialog "Successfully granted Gaussian access to " & username & "." buttons {"Quit"} default button 1
set answer to button returned of question
if answer is equal to "Quit" then
return
end if
on error
set question to display dialog "Failed to grant Gaussian access to " & username & "." buttons {"Quit"} default button 1
set answer to button returned of question
if answer is equal to "Quit" then
return
end if
end try

0 comments on commit 2866ba1

Please sign in to comment.