text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
on doGetOTPPrivate() | 1password.applescript |
if fieldType is "one-time password" then | 1password.applescript |
set remainingTime to last item of (get value of static text of static text of UI element 1 of nextRow) | 1password.applescript |
logger's info("Remaining Time: " & remainingTime) | 1password.applescript |
set isAlmostExpired to remainingTime is less than or equal to my waitOtpThreshold | 1password.applescript |
if isAlmostExpired then | 1password.applescript |
logger's info("Running out of time, waiting for reset in: " & remainingTime) | 1password.applescript |
delay remainingTime | 1password.applescript |
set otpRaw to value of static text 2 of UI element 1 of nextRow | 1password.applescript |
return textUtil's substring(otpRaw, 1, 3) & textUtil's substringFrom(otpRaw, 5) | 1password.applescript |
end doGetOTPPrivate | 1password.applescript |
on doGetUsernamePrivate() | 1password.applescript |
set detailsTable to table "Details" of scroll area 1 of group 2 of splitter group 1 of splitter group 1 of window "1Password" | 1password.applescript |
repeat with nextRow in rows of detailsTable | 1password.applescript |
if fieldType is "username" then | 1password.applescript |
return value of static text 2 of UI element 1 of nextRow | 1password.applescript |
end doGetUsernamePrivate | 1password.applescript |
on _clickTouchId() | 1password.applescript |
set theCoord to getCoord of cliclick at button "Unlock" of first window | 1password.applescript |
cliclick's lclickAtXY((item 1 of theCoord) - 50, item 2 of theCoord) | 1password.applescript |
end _clickTouchId | 1password.applescript |
set logger to std's import("logger")'s new("1password") | 1password.applescript |
set clip to std's import("clipboard")'s new() | 1password.applescript |
set cliclick to std's import("cliclick") | 1password.applescript |
tell application (appname as string) to quit | quit copy.applescript |
global std, usr, retry, regex | zoom-participants.applescript |
set thisCaseId to "#zoom-participants-spotCheck" | zoom-participants.applescript |
Manual: Is Participants View Visible | zoom-participants.applescript |
Manual: Show Participants View (Absent, Already Present) | zoom-participants.applescript |
Manual: Hide Participants View (Absent, Already Present) | zoom-participants.applescript |
Manual: Get Participants | zoom-participants.applescript |
sut's isParticipantSidebarVisible | zoom-participants.applescript |
logger's infof("isParticipantSidebarVisible: {}", sut's isParticipantSidebarVisible()) | zoom-participants.applescript |
sut's showParticipants() | zoom-participants.applescript |
sut's hideParticipants() | zoom-participants.applescript |
set participants to sut's getParticipants() | zoom-participants.applescript |
if participants is missing value or the (count of participants) is 0 then | zoom-participants.applescript |
logger's warn("No participants found") | zoom-participants.applescript |
repeat with nextParticipant in participants | zoom-participants.applescript |
logger's infof("Next Participant: {}", nextParticipant) | zoom-participants.applescript |
logger's infof("Host: {}", _detectedHost of sut) | zoom-participants.applescript |
property _detectedHost : missing value | zoom-participants.applescript |
property _detectedCoHost : missing value -- TODO | zoom-participants.applescript |
on getParticipants() | zoom-participants.applescript |
set participants to {} | zoom-participants.applescript |
if not running of application "zoom.us" then return participants | zoom-participants.applescript |
set origParticipantVisibility to isParticipantSidebarVisible() | zoom-participants.applescript |
repeat with nextRow in rows of outline 1 of scroll area 1 of window "Zoom Meeting" | zoom-participants.applescript |
set nextParticipant to value of static text 1 of UI element 1 of nextRow as text | zoom-participants.applescript |
set regexMatch to regex's firstMatchInString(".*(?=\\s\\()", nextParticipant) | zoom-participants.applescript |
if regexMatch is missing value then | zoom-participants.applescript |
set nextParticipantName to nextParticipant | zoom-participants.applescript |
set nextParticipantName to regexMatch | zoom-participants.applescript |
if nextParticipant contains "(Host, me)" then | zoom-participants.applescript |
set _detectedHost to "me" | zoom-participants.applescript |
else if nextParticipant contains "Host" then | zoom-participants.applescript |
set end of participants to nextParticipantName | zoom-participants.applescript |
if origParticipantVisibility is false then hideParticipants() | zoom-participants.applescript |
participants | zoom-participants.applescript |
end getParticipants | zoom-participants.applescript |
on isParticipantSidebarVisible() | zoom-participants.applescript |
return exists (menu item "Close Manage Participants" of menu 1 of menu bar item "View" of menu bar 1) | zoom-participants.applescript |
end isParticipantSidebarVisible | zoom-participants.applescript |
on showParticipants() | zoom-participants.applescript |
click menu item "Show Manage Participants" of menu 1 of menu bar item "View" of menu bar 1 | zoom-participants.applescript |
script WaitMenu | zoom-participants.applescript |
if exists (menu item "Close Manage Participants" of menu 1 of menu bar item "View" of menu bar 1) then return true | zoom-participants.applescript |
end showParticipants | zoom-participants.applescript |
on hideParticipants() | zoom-participants.applescript |
click menu item "Close Manage Participants" of menu 1 of menu bar item "View" of menu bar 1 | zoom-participants.applescript |
if not (exists (menu item "Close Manage Participants" of menu 1 of menu bar item "View" of menu bar 1)) then return true | zoom-participants.applescript |
end hideParticipants | zoom-participants.applescript |
set logger to std's import("logger")'s new("zoom-participants") | zoom-participants.applescript |
set theApp to (path to frontmost application as Unicode text) | layouts.applescript |
set screenBounds to getDisplayBounds() | layouts.applescript |
set theLayoutKey to item 1 of argv | layouts.applescript |
if theLayoutKey is "test" then | layouts.applescript |
testLayouts(theApp, screenBounds) | layouts.applescript |
set layout to findLayout(layouts, theLayoutKey) | layouts.applescript |
if layout is false then | layouts.applescript |
set sizes to explode(" ", theLayoutKey) | layouts.applescript |
set layout to makeLayout("Temp", "tmp", (item 1 of sizes), (item 2 of sizes), (item 3 of sizes), (item 4 of sizes)) | layouts.applescript |
set current time to doc1time + 30 | Synced Fwd 30.applescript |
set dest_file to destination_directory & "/" & base_name & "_1000.mp4" | ffmpeg-mov-mp4-1000.applescript |
do shell script "/usr/local/bin/ffmpeg -i " & quoted form of file_path & " -vf scale=1000:-2 " & quoted form of dest_file | ffmpeg-mov-mp4-1000.applescript |
Manual: Reveal Dictation | system-preferences.applescript |
logger's infof("Toggle Voice Control: {}", sut's toggleVoiceVoiceControl()) | system-preferences.applescript |
on revealAccessibilityDictation() | system-preferences.applescript |
reveal anchor "Dictation" of pane id "com.apple.preference.universalaccess" | system-preferences.applescript |
if exists (checkbox "Enable Voice Control" of group 1 of window "Accessibility") then return true | system-preferences.applescript |
end revealAccessibilityDictation | system-preferences.applescript |
on toggleVoiceVoiceControl() | system-preferences.applescript |
if running of application "System Preferences" is false then return missing value | system-preferences.applescript |
set currentState to get value of checkbox "Enable Voice Control" | system-preferences.applescript |
click checkbox "Enable Voice Control" | system-preferences.applescript |
end toggleVoiceVoiceControl | system-preferences.applescript |
if running of application "System Preferences" is false then return false | system-preferences.applescript |
set searchFieldPresent to exists (first text field of sheet 1 of window "Accessibility" whose value of attribute "AXIdentifier" is "Search Field") | system-preferences.applescript |
set doneButtonPresent to exists (button "Done" of sheet 1 of window "Accessibility") | system-preferences.applescript |
click (first button whose name starts with "Commands") | system-preferences.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.