text
stringlengths
0
15.7k
source
stringlengths
6
112
on endMeeting()
zoom-actions.applescript
set meetingWindowAbsent to not (exists (window "Zoom Meeting"))
zoom-actions.applescript
if meetingWindowAbsent then
zoom-actions.applescript
set zoomProcess to process's new("zoom.us")
zoom-actions.applescript
zoomProcess's terminate()
zoom-actions.applescript
click (first button of window "Zoom Meeting" whose role description is "close button")
zoom-actions.applescript
click (first button of window "" whose description is "Leave Meeting")
zoom-actions.applescript
click (first button of window "" whose description is "End Meeting for All")
zoom-actions.applescript
end endMeeting
zoom-actions.applescript
on _clickAudioSubMenu(buttonDescription)
zoom-actions.applescript
if running of application "zoom.us" is false then return
zoom-actions.applescript
if not (window "Zoom Meeting" exists) then return
zoom-actions.applescript
click (first button of window "Zoom Meeting" whose description is "Audio sub menu")
zoom-actions.applescript
click (first button of window "" whose description is buttonDescription)
zoom-actions.applescript
end _clickAudioSubMenu
zoom-actions.applescript
on _clickMenuAction(menuItemName)
zoom-actions.applescript
click menu item menuItemName of menu 1 of menu bar item "Meeting" of menu bar 1
zoom-actions.applescript
end _clickMenuAction
zoom-actions.applescript
on _clickMainButton(buttonStartName)
zoom-actions.applescript
tell application "System Events" to tell process "zoom.us" to tell my _getMeetingWindow()
zoom-actions.applescript
click (first button whose description starts with buttonStartName)
zoom-actions.applescript
end _clickMainButton
zoom-actions.applescript
set logger to std's import("logger")'s new("zoom-actions")
zoom-actions.applescript
set SHARING_WIN_NAME to "zoom share toolbar window"
zoom-actions.applescript
set SELECT_SHARE_WIN_NAME to "Select a window or an application that you want to share"
zoom-actions.applescript
set SHARING_STATUSBAR_WIN_NAME to "zoom share statusbar window"
zoom-actions.applescript
set numberOfItemsSelected to (count of sel)
Experimental.applescript
set songName to (get name of item 1 of sel)
Experimental.applescript
set workName to display dialog "Edit for Work name and then click OK." default answer songName --prompt for work name
Experimental.applescript
set movementLength to display dialog "Edit to everything except the movement name. Do not include the roman numeral if one is present. If an arabic numeral is present, include it." default answer songName --prompt for movement length
Experimental.applescript
repeat with i from 1 to numberOfItemsSelected --set the movement numbers
Experimental.applescript
set movement count of thisTrack to numberOfItemsSelected
Experimental.applescript
set movement of thisTrack to my delRomNum(text ((length of text returned of movementLength) + 1) thru (length of songName) of songName as string) -- copy movement text from song name and delete roman numerals
Experimental.applescript
set app_name to item 1 of argv as text
is-mini.applescript
repeat with rem_window in every window
is-mini.applescript
set is_mini to (get miniaturized of rem_window)
is-mini.applescript
on error msg number -1700
is-mini.applescript
return is_mini
is-mini.applescript
on raiseChromeTab(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
set {the_window, the_tab, the_window_index, the_tab_index} to findTab(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
if the_window is not false then
Raise in Chrome Library.scpt
set (active tab index of the_window) to the_tab_index
Raise in Chrome Library.scpt
my hsRaise(the_window)
Raise in Chrome Library.scpt
end raiseChromeTab
Raise in Chrome Library.scpt
on raiseChromeWindow(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
set {the_window, the_window_index} to findWindow(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
end raiseChromeWindow
Raise in Chrome Library.scpt
on restoreChromeWindow(target_url_start, target_title_end, target_tab_name, target_position, target_size, target_url_exclude)
Raise in Chrome Library.scpt
tell application "System Events" to tell application process "Chrome"
Raise in Chrome Library.scpt
set position of (window the_window_index) to target_position
Raise in Chrome Library.scpt
set size of (window the_window_index) to target_size
Raise in Chrome Library.scpt
end restoreChromeWindow
Raise in Chrome Library.scpt
on findTab(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
repeat with window_index from 1 to (count of windows)
Raise in Chrome Library.scpt
set tab_index to 0
Raise in Chrome Library.scpt
repeat with the_tab in (tabs of (window window_index))
Raise in Chrome Library.scpt
set tab_index to tab_index + 1
Raise in Chrome Library.scpt
set stringLibrary to load script POSIX file "/Users/matt/code/chrome-window-management-scripts/String Library.scpt"
Raise in Chrome Library.scpt
if (stringLibrary's reMatch(URL of the_tab, target_url_start)) and (title of the_tab ends with target_title_end) and (URL of the_tab does not contain target_url_exclude) then
Raise in Chrome Library.scpt
return {window window_index, the_tab, window_index, tab_index}
Raise in Chrome Library.scpt
display dialog "Sorry, I couldn't find your " & target_tab_name & " tab (I'm looking for a tab with url: " & target_url_start & ", excluding " & target_url_exclude & " and title: …" & target_title_end & ")" buttons {"OK"} default button "OK" with title "Raise " & target_tab_name & " in Chrome" giving up after 3
Raise in Chrome Library.scpt
return {false, false, false, false}
Raise in Chrome Library.scpt
on findWindow(target_url_start, target_title_end, target_tab_name, target_url_exclude)
Raise in Chrome Library.scpt
return {the_window, the_window_index}
Raise in Chrome Library.scpt
end findWindow
Raise in Chrome Library.scpt
on hsRaise(the_window)
Raise in Chrome Library.scpt
tell application "Hammerspoon" to execute lua code ("hs.application.get([[Google Chrome]]):getWindow( [[" & name of the_window as Unicode text) & "]]):focus()"
Raise in Chrome Library.scpt
end hsRaise
Raise in Chrome Library.scpt
set CurrentClipboard to the clipboard as string
vpn_connection.scpt
set the clipboard to "8SzO+=wTygXmxb0d5cf63oDt9" as text
vpn_connection.scpt
set VPNService to service "WDJ"
vpn_connection.scpt
set isConnected to connected of current configuration of VPNService
vpn_connection.scpt
else -- otherwise, connect to the VPN
vpn_connection.scpt
set nowConnected to connected of current configuration of VPNService
vpn_connection.scpt
if nowConnected then
vpn_connection.scpt
set the clipboard to CurrentClipboard
vpn_connection.scpt
set uLA to do shell script "ls -a ~/Library/LaunchAgents | grep -Evw '.|.DS_Store'"
LaunchCheck.scpt
set gLA to do shell script "ls -a /Library/LaunchAgents | grep -Evw '.|.DS_Store'"
LaunchCheck.scpt
set gLD to do shell script "ls -a /Library/LaunchDaemons | grep -Evw '.|.DS_Store'"
LaunchCheck.scpt
set gHT to do shell script "ls -a /Library/PrivilegedHelperTools | grep -Evw '.|.DS_Store'"
LaunchCheck.scpt
display dialog tab & "~/Library/LaunchAgents" & return & "Third-party agents that apply only to the logged-in user:" & return & return & uLA & return & return & tab & "/Library/LaunchAgents" & return & "Third-party agents that apply to all users on a per-user basis:" & return & return & gLA & return & return & tab & "/Library/LaunchDaemons" & return & "Third-party system daemons:" & return & return & gLD & return & return & tab & "/Library/PrivilegedHelperTools" & return & "Privileged Helpers:" & return & return & gHT & return & return buttons {"Close"} default button 1
LaunchCheck.scpt
set current_url to URL of current tab
make_web_archive_in_yojimbo.applescript
set current_name to name of current tab
make_web_archive_in_yojimbo.applescript
set _archive to make new web archive item with contents current_url with properties {name:current_name}
make_web_archive_in_yojimbo.applescript
set a to display dialog "Move imageboxes down by" default answer "10mm"
Box - move image box down.applescript
set ytop to top of bounds
Box - move image box down.applescript
set yytop to ytop as string
Box - move image box down.applescript
set ytop to yytop & "+" & b
Box - move image box down.applescript
set top of bounds to ytop
Box - move image box down.applescript
property selectedMenu : "" -- each menu action will set this to a number, this will determine which IP is shown
MenuStuff.applescript
global notifytime
MenuStuff.applescript
global content
MenuStuff.applescript
property theDisplay : ""
MenuStuff.applescript
StatusItem's setTitle:"IP"
MenuStuff.applescript
set internalMenuItem to current application's NSMenuItem's alloc()'s initWithTitle:"Local IP" action:"showInternal:" keyEquivalent:""
MenuStuff.applescript
set externalMenuItem to current application's NSMenuItem's alloc()'s initWithTitle:"Public IP" action:"showIExternal:" keyEquivalent:""
MenuStuff.applescript
set noteMenuItem to current application's NSMenuItem's alloc()'s initWithTitle:"Note" action:"createnote:" keyEquivalent:""
MenuStuff.applescript
set maxMenuItem to current application's NSMenuItem's alloc()'s initWithTitle:"Stress Test" action:"stressIt:" keyEquivalent:""
MenuStuff.applescript
set gooseItem to current application's NSMenuItem's alloc()'s initWithTitle:"Goose" action:"goose:" keyEquivalent:""
MenuStuff.applescript
set hjonkItem to current application's NSMenuItem's alloc()'s initWithTitle:"Hjönk" action:"hjonk:" keyEquivalent:""
MenuStuff.applescript