This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Click full-screen button so all computers have the Safari window in the same position | |
osascript -e 'tell application "System Events" | |
set frontmost of process "Safari" to true | |
tell process "Safari" | |
click button 4 of window 1 | |
end tell | |
end tell' | |
# Sleep for a bit seconds to make sure full screen is fully-activated | |
sleep 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open sample test site | |
killall Safari > /dev/null | |
osascript -e 'tell application "Safari" | |
activate | |
set the URL of the front document to "http://testnav.com/mnqc" | |
end tell' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set your variable values here | |
bud='/usr/libexec/Plistbuddy' | |
plist='/Users/student/Library/Preferences/com.oracle.javadeployment.plist' | |
# Disable Java cache by adding or setting the plist entry | |
killall cfprefsd | |
${bud} -c "Add /com/oracle/javadeployment/:deployment.cache.enabled bool false" ${plist} | |
#${bud} -c "Set /com/oracle/javadeployment/:deployment.cache.enabled false" ${plist} | |
killall cfprefsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-----------IMPORTS---------- | |
import sys,pwd,os | |
import subprocess | |
from platform import mac_ver | |
#----------VARIABLES--------- | |
v, _, _ = mac_ver() | |
v = float('.'.join(v.split('.')[:2])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open a URL once a user is logged in | |
import webbrowser | |
new = 2 # open in a new tab, if possible | |
system_check = "https://proctorcaching.pearsonaccess.com/ems/systemCheck/systemCheck.jsp?acc=mn" | |
webbrowser.open(system_check,new=new) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Click full-screen button so all computers have the Safari window in the same position | |
osascript -e 'tell application "System Events" | |
set frontmost of process "Safari" to true | |
tell process "Safari" | |
click button 4 of window 1 | |
end tell | |
end tell' |