GoodUSB Scripts MacOs

This commit is contained in:
Narsty
2023-05-12 00:40:53 -05:00
committed by GitHub
parent 5392584e98
commit 7ed8d300ad
2 changed files with 76 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
REM Opens Terminal, Safari, Xcode, Calendar, Messages, Pycharm CE
REM You can update the (" ") with whatever applications you'd like!
REM Delays may need adjusting depending on how long app takes to load.
REM Title: All Applications at once
REM Author: Narsty
REM Target: MacOS
REM Version: 1.0
REM Category: Utility
DELAY 2000
GUI SPACE
DELAY 500
STRING terminal
ENTER
DELAY 1000
STRING open -a "Safari"
ENTER
DELAY 1000
STRING open -a "Xcode"
ENTER
DELAY 5000
STRING open -a "Calendar"
ENTER
DELAY 1000
STRING open -a "Messages"
ENTER
DELAY 2000
STRING open -a "Pycharm CE"
ENTER
DELAY 2000
+44
View File
@@ -0,0 +1,44 @@
REM Title: AudioInfo.ducky
REM Author: NARSTY
REM Description:Provides a utility to display/Say useful information on the target system
REM the current date, time, and battery percentage
REM
REM Target: MacOS
REM Version: 1.0
REM Category: Utility
DELAY 2000
GUI SPACE
DELAY 500
STRING terminal
ENTER
DELAY 500
STRING echo "USB Script Utility"
ENTER
DELAY 500
STRING echo "-------------------"
ENTER
DELAY 500
STRING echo "Current Date:"
ENTER
DELAY 500
STRING date "+%Y-%m-%d" | say
ENTER
DELAY 500
STRING echo "Current Time:"
ENTER
DELAY 500
STRING date "+%H:%M:%S" | say
ENTER
DELAY 500
STRING echo "Battery Percentage:"
ENTER
DELAY 500
STRING ioreg -l | awk '$3~/Capacity/{c[$3]=$5}END{OFMT="%.2f%%";max=c["\"MaxCapacity\""];print(max>0?100*c["\"CurrentCapacity\""]/max:"?")}' | say
ENTER
DELAY 500
STRING echo "-------------------"
ENTER
DELAY 2000