set unshortenedURL to (get the clipboard)
set shortenedURL to (do shell script "curl --url \"https://tinyurl.com/api-create.php?url=" & unshortenedURL & "\"")
set the clipboard to shortenedURL
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
tell application "System Events"
set openApps to displayed name of (every process whose background only is false) as list
set the clipboard to short date string of (current date) as text
if input volume of (get volume settings) is 0 then
set volume input volume 100
else
set the clipboard to date string of (current date) as text