text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
if warned then say "Running user interrupting task" without waiting until completion | retry.applescript |
return run of scriptObj | retry.applescript |
error "Unable to get you to idle" | retry.applescript |
end execOnIdle | retry.applescript |
on exec on scriptObj by sleep : 1 for ntimes : 1000 | retry.applescript |
set handlerResult to run of scriptObj | retry.applescript |
if handlerResult is not missing value then return handlerResult | retry.applescript |
if errorMessage contains "is not allowed assistive access" or errorMessage is "abort" then | retry.applescript |
error errorMessage | retry.applescript |
delay sleep | retry.applescript |
end exec | retry.applescript |
property targetUis : {} | retry.applescript |
property targetUiNames : {} | retry.applescript |
on wait on theUi for nseconds | retry.applescript |
repeat nseconds times | retry.applescript |
if theUi exists then return true | retry.applescript |
end wait | retry.applescript |
set logger to std's import("logger")'s new("retry") | retry.applescript |
set idlerLib to std's import("idler") | retry.applescript |
set (shows item info of icon view options of front Finder window) to (not shows item info of icon view options of front Finder window) | Show item info.applescript |
tell front document of application "Capture One 12" | batch_rename_collection.applescript |
set sorting order of current collection to by date | batch_rename_collection.applescript |
set sorting reversed of current collection to false | batch_rename_collection.applescript |
set theVariants to every variant of current collection | batch_rename_collection.applescript |
log "Renaming " & number of theVariants & " variants" | batch_rename_collection.applescript |
set counter of batch rename settings to 1 | batch_rename_collection.applescript |
batch rename variants theVariants | batch_rename_collection.applescript |
on run (del_rows) | delete-cookies.scpt |
tell window "Privacy" to tell sheet 1 | delete-cookies.scpt |
repeat with r in del_rows | delete-cookies.scpt |
select row (r as number) of table 1 of scroll area 1 | delete-cookies.scpt |
click button "Remove" | delete-cookies.scpt |
click button "Done" | delete-cookies.scpt |
property theURL : "" | switch_browsers.applescript |
property safariState : "" | switch_browsers.applescript |
if appIsRunning("Safari") then | switch_browsers.applescript |
set safariState to "Running" | switch_browsers.applescript |
reopen | switch_browsers.applescript |
if safariState is equal to "Running" then | switch_browsers.applescript |
tell window 0 | switch_browsers.applescript |
set URL of (current tab) to theURL | switch_browsers.applescript |
tell process "SystemUIServer" | Connact-to-BT-Device.scpt |
tell (menu bar item 1 of menu bar 1 whose description is "bluetooth") | Connact-to-BT-Device.scpt |
tell (menu item "Samsung-SoundBar" of menu 1) | Connact-to-BT-Device.scpt |
if exists menu item "Connect" of menu 1 then | Connact-to-BT-Device.scpt |
tell (menu item 1 of menu 1) | Connact-to-BT-Device.scpt |
key code 53 | Connact-to-BT-Device.scpt |
return "Device is Connacted" | Connact-to-BT-Device.scpt |
on convertListToString(theList, theDelimiter) | GetZoomParticipants copy.scpt |
on get_participants() | GetZoomParticipants copy.scpt |
set participantList to {} | GetZoomParticipants copy.scpt |
set myList to name of windows of process "zoom.us" -- get a list of windows | GetZoomParticipants copy.scpt |
repeat with i from 1 to count of myList | GetZoomParticipants copy.scpt |
if item i of myList contains "Partici" then | GetZoomParticipants copy.scpt |
set rowList to rows of outline 1 of scroll area 1 of window i of process "zoom.us" | GetZoomParticipants copy.scpt |
repeat with rowItem in rowList | GetZoomParticipants copy.scpt |
set end of participantList to value of UI element 1 of UI element 1 of rowItem | GetZoomParticipants copy.scpt |
return participantList | GetZoomParticipants copy.scpt |
else if (exists static text 1 of UI element 1 of splitter group 1 of window i of process "zoom.us") and (value of static text 1 of UI element 1 of splitter group 1 of window i of process "zoom.us" contains "Partici") then | GetZoomParticipants copy.scpt |
set rowList to rows of outline 1 of scroll area 1 of splitter group 1 of window i of process "zoom.us" | GetZoomParticipants copy.scpt |
click menu item 1 of menu "View" of menu bar 1 of process "zoom.us" | GetZoomParticipants copy.scpt |
if exists splitter group 1 of window i of process "zoom.us" then | GetZoomParticipants copy.scpt |
end get_participants | GetZoomParticipants copy.scpt |
convertListToString(get_participants(), "\n") | GetZoomParticipants copy.scpt |
property report_Title : "URL List from Safari" | URLSafari.scpt |
set NoteTitle to "# " & the date_stamp | URLSafari.scpt |
set window_count to 1 | URLSafari.scpt |
set safariWindow to windows | URLSafari.scpt |
repeat with w in safariWindow | URLSafari.scpt |
if (tabs of w) is not {} then | URLSafari.scpt |
copy ("## Window " & window_count & ":" & return) to the end of url_list | URLSafari.scpt |
set TabTitle to ("1. [" & name of t & "]") | URLSafari.scpt |
set TabURL to ("(" & URL of t & ")") | URLSafari.scpt |
set TabInfo to (TabTitle & TabURL & return) | URLSafari.scpt |
set window_count to window_count + 1 | URLSafari.scpt |
set url_list to (NoteTitle & return & return & return & url_list) as text | URLSafari.scpt |
set save_File to choose file name with prompt "Name this file:" default name report_Title default location (path to downloads folder) | URLSafari.scpt |
set save_File to open for access (save_File & ".md" as string) with write permission | URLSafari.scpt |
write url_list to save_File | URLSafari.scpt |
close access save_File | URLSafari.scpt |
set ruleName to name of theRule | print_Message_to_Downloads_Folder.applescript |
set windowName to name of window 1 | print_Message_to_Downloads_Folder.applescript |
set savePath to attachmentsFolder & ":" & timeStamp & " - " & ruleName & " " & originalName | print_Message_to_Downloads_Folder.applescript |
set uiScript to "keystroke \"p\" using command down" | print_Message_to_Downloads_Folder.applescript |
my doWithTimeout(uiScript, timeoutSeconds) | print_Message_to_Downloads_Folder.applescript |
set uiScript to "click menu button \"PDF\" of sheet 1 of windowName of application process \"Mail\"" | print_Message_to_Downloads_Folder.applescript |
set uiScript to "click menu item \"Save as PDF\" of menu 1 of menu button \"PDF\" of sheet 1 of window 1 of application process \"Mail\"" | print_Message_to_Downloads_Folder.applescript |
on doWithTimeout(uiScript, timeoutSeconds) | print_Message_to_Downloads_Folder.applescript |
end doWithTimeout | print_Message_to_Downloads_Folder.applescript |
set empty_address to {city:"", country:"", state:"", street address:"", zip:""} | Script 24-13.applescript |
set misfiled_contacts to every contact whose home address is not empty_address and business address is empty_address and default postal address is work | Script 24-13.applescript |
repeat with this_contact in misfiled_contacts | Script 24-13.applescript |
set default postal address of this_contact to home | Script 24-13.applescript |
property tag_list : {"applescript", "automation"} | drop_items_to_yojimbo_folder_action.applescript |
repeat with this_item in added_items | drop_items_to_yojimbo_folder_action.applescript |
log "this_item: " & this_item -- Does anyone know how to debug Folder Actions? | drop_items_to_yojimbo_folder_action.applescript |
set added_item to import this_item | drop_items_to_yojimbo_folder_action.applescript |
tell added_item | drop_items_to_yojimbo_folder_action.applescript |
add tags tag_list to added_item | drop_items_to_yojimbo_folder_action.applescript |
tell application "Yojimbo" to activate | drop_items_to_yojimbo_folder_action.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.