text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
if itemName is not equal to sinNamespace then
|
cljs-generator.applescript
|
copy itemName to end of listName
|
cljs-generator.applescript
|
if itemName does not start with "~" then
|
cljs-generator.applescript
|
end addToList
|
cljs-generator.applescript
|
on replaceChars(this_text, search_string, replacement_string)
|
cljs-generator.applescript
|
end replaceChars
|
cljs-generator.applescript
|
display notification "It's a funky reggae party!!!" with title "Rogue Program Says" subtitle "What's that noise nearby?" sound name "blow"
|
016_interacting_with_the_user-notifications.applescript
|
repeat 2 times
|
click_7_command_down_twice.scpt
|
keystroke "7" using {command down, control down}
|
click_7_command_down_twice.scpt
|
tell application "System Events" to tell process "iTerm2"
|
resize_windows_01 copy.applescript
|
tell window 1
|
resize_windows_01 copy.applescript
|
set position to {0, 0}
|
resize_windows_01 copy.applescript
|
set size to {960, 900}
|
resize_windows_01 copy.applescript
|
tell application "System Events" to tell process "Brave Browser"
|
resize_windows_01 copy.applescript
|
set position to {160, 60}
|
resize_windows_01 copy.applescript
|
set size to {1200, 800}
|
resize_windows_01 copy.applescript
|
tell application "System Events" to tell process "KeePassXC"
|
resize_windows_01 copy.applescript
|
set position to {400, 200}
|
resize_windows_01 copy.applescript
|
set size to {960, 600}
|
resize_windows_01 copy.applescript
|
tell application "System Events" to tell process "Sublime Text"
|
resize_windows_01 copy.applescript
|
set position to {100, 80}
|
resize_windows_01 copy.applescript
|
tell application "System Events" to tell process "Terminal"
|
resize_windows_01 copy.applescript
|
set position to {100, 100}
|
resize_windows_01 copy.applescript
|
on theClosure()
|
closure_of_applescript.scpt
|
script outer
|
closure_of_applescript.scpt
|
property x : 0
|
closure_of_applescript.scpt
|
script inner
|
closure_of_applescript.scpt
|
set x to x + 1
|
closure_of_applescript.scpt
|
return inner of outer
|
closure_of_applescript.scpt
|
end theClosure
|
closure_of_applescript.scpt
|
set s to theClosure()
|
closure_of_applescript.scpt
|
run s
|
closure_of_applescript.scpt
|
repeat 5 times
|
Repeat5Times_AppleScript_V1.applescript
|
display dialog "ONE STAR!!!"
|
Repeat5Times_AppleScript_V1.applescript
|
property oldSearchString : "fish"
|
find_from_top.applescript
|
set res to display dialog "search current document for?" default answer oldSearchString
|
find_from_top.applescript
|
if button returned of res is "OK" then
|
find_from_top.applescript
|
set searchOpt to get current search options
|
find_from_top.applescript
|
set searchOpt's starting at top to true
|
find_from_top.applescript
|
set oldSearchString to text returned of res
|
find_from_top.applescript
|
set findRes to find (text returned of res) options searchOpt with selecting match
|
find_from_top.applescript
|
if findRes's found is false then
|
find_from_top.applescript
|
display dialog "not found"
|
find_from_top.applescript
|
set logpath to POSIX file "/Users/kevinfunderburg/Library/Logs/Keyboard Maestro/Engine.log"
|
Edit-Last-Executed-Macro.applescript
|
tell application "Keyboard Maestro"
|
Edit-Last-Executed-Macro.applescript
|
set p to ""
|
Edit-Last-Executed-Macro.applescript
|
set i to 0
|
Edit-Last-Executed-Macro.applescript
|
set theLog to kl's readFromFileAs(logpath, text)
|
Edit-Last-Executed-Macro.applescript
|
repeat until p contains "Execute macro"
|
Edit-Last-Executed-Macro.applescript
|
set p to paragraph -i of theLog
|
Edit-Last-Executed-Macro.applescript
|
set mname to text 3 thru length of (item 2 of kl's split(p, "‚"))
|
Edit-Last-Executed-Macro.applescript
|
set m to first macro whose enabled is true and name is mname
|
Edit-Last-Executed-Macro.applescript
|
set uid to m's id
|
Edit-Last-Executed-Macro.applescript
|
editMacro uid
|
Edit-Last-Executed-Macro.applescript
|
set ExactNameOfYourApp to "The App Name"
|
notification.applescript
|
tell application "BetterTouchTool" to set LCL_DNDStatus to get_string_variable "DNDStatus"
|
notification.applescript
|
set activeApp to my getActiveApp()
|
notification.applescript
|
if LCL_DNDStatus is "OFF" and activeApp is not equal to ExactNameOfYourApp then
|
notification.applescript
|
tell application ExactNameOfYourApp
|
notification.applescript
|
set badgeNumber to get_dock_badge_for ExactNameOfYourApp update_interval 3
|
notification.applescript
|
set handoffDevice to get_dock_badge_for ExactNameOfYourApp & "-handoff" update_interval 3
|
notification.applescript
|
if badgeNumber is not missing value and handoffDevice is missing value then
|
notification.applescript
|
if application "WhatsApp" is running then
|
notification.applescript
|
return "{\"text\":\"" & badgeNumber & "\",\"font_size\": 15}"
|
notification.applescript
|
else if handoffDevice is not missing value then
|
notification.applescript
|
if handoffDevice contains "iPhone" then
|
notification.applescript
|
return "{\"text\":\"📱\",\"font_size\": 15}"
|
notification.applescript
|
else if handoffDevice contains "iPad" then
|
notification.applescript
|
return "{\"text\":\"⬛️\",\"font_size\": 15}"
|
notification.applescript
|
else if handoffDevice contains "watch" then
|
notification.applescript
|
return "{\"text\":\"⌚️\",\"font_size\": 15}"
|
notification.applescript
|
else if handoffDevice contains "Mac" then
|
notification.applescript
|
return "{\"text\":\"🖥\",\"font_size\": 15}"
|
notification.applescript
|
on getActiveApp()
|
notification.applescript
|
tell application "System Events" to set activeApp to first process where it is frontmost
|
notification.applescript
|
return name of activeApp
|
notification.applescript
|
end getActiveApp
|
notification.applescript
|
tell application "TextEdit"
|
Script 10-5.applescript
|
set word_list to every word of document 1
|
Script 10-5.applescript
|
set word_frequency_list to {}
|
Script 10-5.applescript
|
repeat with the_word_ref in word_list
|
Script 10-5.applescript
|
set the_current_word to contents of the_word_ref
|
Script 10-5.applescript
|
set word_info to missing value
|
Script 10-5.applescript
|
repeat with record_ref in word_frequency_list
|
Script 10-5.applescript
|
if the_word of record_ref = the_current_word then
|
Script 10-5.applescript
|
set word_info to contents of record_ref
|
Script 10-5.applescript
|
if word_info = missing value then
|
Script 10-5.applescript
|
set word_info to {the_word:the_current_word, the_count:1}
|
Script 10-5.applescript
|
set end of word_frequency_list to word_info
|
Script 10-5.applescript
|
set the_count of word_info to (the_count of word_info) + 1
|
Script 10-5.applescript
|
set the_report_list to {}
|
Script 10-5.applescript
|
repeat with word_info in word_frequency_list
|
Script 10-5.applescript
|
set end of the_report_list to quote & the_word of word_info & quote & " appears " & the_count of word_info & " times."
|
Script 10-5.applescript
|
set the_report to the_report_list as text
|
Script 10-5.applescript
|
make new document with properties {name:"Word Frequencies", text:the_report}
|
Script 10-5.applescript
|
on getCurrentFrame(x, y, vframes)
|
getCurrentFrame.applescript
|
set recordlib to scriptPath & "recordlib.scpt"
|
getCurrentFrame.applescript
|
set rb to load script file recordlib
|
getCurrentFrame.applescript
|
set getframe to scriptPath & "getFrame.scpt"
|
getCurrentFrame.applescript
|
set gf to load script file getframe
|
getCurrentFrame.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.