This file contains hidden or 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 hidden or 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
# Keystrokes | |
import win32api | |
import win32com.client | |
shell = win32com.client.Dispatch("WScript.Shell") | |
# Alt+Space+X or F11 makes it full screen | |
win32api.Sleep(2500) | |
# One or the other below should work depending on what browser is being used | |
#shell.SendKeys("% X") | |
shell.SendKeys("{F11}") |
This file contains hidden or 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 Username field | |
click(1058,278) | |
sleep(1) | |
shell.SendKeys("username") | |
sleep(1) | |
shell.SendKeys("{TAB}") | |
sleep(1) | |
shell.SendKeys("testcode") | |
sleep(1) | |
shell.SendKeys("{ENTER}") |
This file contains hidden or 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 | |
sample_test = "https://testnav.com/mnqc/ | |
webbrowser.open(system_check,new=new) |
This file contains hidden or 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(1000,500) |
This file contains hidden or 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 test site | |
osascript -e 'tell application "Google Chrome" | |
activate | |
open location "https://testnav.com/mn/testnav-7.5.22.36/" | |
end tell' |
This file contains hidden or 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 the TestTaker app | |
osascript -e 'tell application "NWEA Lockdown Browser" | |
activate | |
end tell' |
This file contains hidden or 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
#!/bin/bash | |
# Bonjour name ending in .local | |
scutil --set LocalHostName "My-iMac" | |
# Friendly name shown in System Preferences > Sharing | |
scutil --set ComputerName "My-iMac" | |
# The name recognized by the hostname command | |
scutil --set HostName "My-iMac" | |
# Save the computer's serial number in a variable so it can be used in the next command. | |
serialNum=$(ioreg -l | awk '/IOPlatformSerialNumber/ { split($0, line, "\""); printf("%s\n", line[4]); }') | |
# Set the NetBIOS name as the serial number |
This file contains hidden or 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
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
tell application "Mail" | |
repeat with eachMessage in theMessages | |
set theName to extract name from sender of eachMessage | |
if exists reply to of eachMessage then | |
set theAddress to reply to of eachMessage | |
else | |
set theAddress to extract address from sender of eachMessage | |
end if |