Hi, i work at a school and at the moment we don't have a mac server, so i'm using server tools on each local machine to set group policies for active directory logins. I want geektool to be enabled on each user when they login, i've got this to work so far by running this applescript I found online:
tell application "System Preferences"
activate
delay 1
tell application "System Events" to set visible of process "System Preferences" to false
set current pane to pane "GeekTool"
tell application "System Events"
tell process "System Preferences"
click checkbox "Enable" of window "GeekTool 3"
end tell
end tell
delay 1
quit
end tell
Now the only problem with this script is that when they log off and log back in again it deactivates the checkbox resulting in disabling geektool, so every other login disables geektool. I'm guessing I need to put an if statement in somewhere i'm just not that great at applescript, any help would be really appreciated.
Thanks
tell application "System Preferences"
activate
delay 1
tell application "System Events" to set visible of process "System Preferences" to false
set current pane to pane "GeekTool"
tell application "System Events"
tell process "System Preferences"
click checkbox "Enable" of window "GeekTool 3"
end tell
end tell
delay 1
quit
end tell
Now the only problem with this script is that when they log off and log back in again it deactivates the checkbox resulting in disabling geektool, so every other login disables geektool. I'm guessing I need to put an if statement in somewhere i'm just not that great at applescript, any help would be really appreciated.
Thanks