text
stringlengths
0
15.7k
source
stringlengths
6
112
tell application "System Events" to key code 53
custom_alacritty_script.applescript
tell application "System Events" to key code 11 using control down
custom_alacritty_script.applescript
tell application "System Events" to key code 8
custom_alacritty_script.applescript
tell application "System Events" to keystroke q
custom_alacritty_script.applescript
click menu item "Clean"
clean_xcode.applescript
revealFrontMostFile()
Reveal File copy.applescript
on revealFrontMostFile()
Reveal File copy.applescript
end revealFrontMostFile
Reveal File copy.applescript
tell application "Safari" to set _url to URL of first document
Send to Opera Next.applescript
do shell script "open -b com.operasoftware.OperaNext " & quoted form of _url
Send to Opera Next.applescript
property work : {ssid:"Initech Internal", statusMessage:"in the office"}
ichatloc.applescript
property home : {ssid:"linksys", statusMessage:"working from home"}
ichatloc.applescript
property coffeeshop : {ssid:"My Local Coffeeshop", statusMessage:"at the coffee shop"}
ichatloc.applescript
property localeTable : {work, home, coffeeshop}
ichatloc.applescript
property defaultStatus : "online from #SSID"
ichatloc.applescript
on getSSID()
ichatloc.applescript
set ssid to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I|grep \" SSID:\" | cut -c 18-"
ichatloc.applescript
return ssid
ichatloc.applescript
end getSSID
ichatloc.applescript
on replace(sourceText, oldText, newText)
ichatloc.applescript
set {atid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, oldText}
ichatloc.applescript
on login finished
ichatloc.applescript
set ssid to my getSSID()
ichatloc.applescript
if ssid is "" then
ichatloc.applescript
set newStatus to replace(defaultStatus, "#SSID", ssid)
ichatloc.applescript
repeat with locale in localeTable
ichatloc.applescript
if ssid of locale is ssid then
ichatloc.applescript
set newStatus to statusMessage of locale
ichatloc.applescript
if newStatus is not "" then
ichatloc.applescript
set status message to newStatus
ichatloc.applescript
fmGUI_ManageLayouts_Close({})
fmGUI_ManageLayouts_Close.applescript
on fmGUI_ManageLayouts_Close(prefs)
fmGUI_ManageLayouts_Close.applescript
set windowNamePart to "Manage Layouts"
fmGUI_ManageLayouts_Close.applescript
if fmGUI_NameOfFrontmostWindow() starts with windowNamePart then
fmGUI_ManageLayouts_Close.applescript
set contextWindow to first window whose name begins with windowNamePart
fmGUI_ManageLayouts_Close.applescript
set closeButton to first button of contextWindow whose description is "close button"
fmGUI_ManageLayouts_Close.applescript
fmGUI_ObjectClick_Button({buttonRef:closeButton})
fmGUI_ManageLayouts_Close.applescript
return windowWaitUntil({windowName:windowNamePart, windowNameTest:"does not contain"})
fmGUI_ManageLayouts_Close.applescript
error "unable to fmGUI_ManageLayouts_Close - " & errMsg number errNum
fmGUI_ManageLayouts_Close.applescript
end fmGUI_ManageLayouts_Close
fmGUI_ManageLayouts_Close.applescript
set theUnixPath to POSIX path of theAlias
Archive Files.applescript
set a to style specs of document 1 as list
change style sheet after style.applescript
set stylelist to []
change style sheet after style.applescript
set first_style to choose from list stylelist with prompt "Find stylesheet"
change style sheet after style.applescript
set next_style to choose from list stylelist with prompt "Change Next stylesheet to"
change style sheet after style.applescript
set first_style to first_style as string
change style sheet after style.applescript
set next_style to next_style as string
change style sheet after style.applescript
repeat with i from 1 to (count of paragraphs of selection) - 1
change style sheet after style.applescript
set a to name of style sheet of (paragraph i of selection)
change style sheet after style.applescript
if a = first_style then
change style sheet after style.applescript
set style sheet of (paragraph (i + 1)) of selection to next_style
change style sheet after style.applescript
do shell script "touch bab.txt;chmod 755 bab.txt;pbpaste > bab.txt"
Send2Yoink-Selection.applescript
global mode
toggle_dark_mode.scpt
set mode to getDarkMode()
toggle_dark_mode.scpt
setDarkMode(not mode)
toggle_dark_mode.scpt
on getDarkMode()
toggle_dark_mode.scpt
tell application "System Events" to tell appearance preferences to get dark mode
toggle_dark_mode.scpt
end getDarkMode
toggle_dark_mode.scpt
on setDarkMode(newMode as boolean)
toggle_dark_mode.scpt
tell application "System Events" to tell appearance preferences to set dark mode to newMode
toggle_dark_mode.scpt
end setDarkMode
toggle_dark_mode.scpt
set today to (current date) + (23.9 * hours)
Reminder%20to%20Calendar%20Event.applescript
set the Reminders_Lists to {"Do", "Learn", "Listen", "Read", "Watch"}
Reminder%20to%20Calendar%20Event.applescript
set Reminders_accounts to every account
Reminder%20to%20Calendar%20Event.applescript
repeat with i from 1 to length of Reminders_accounts
Reminder%20to%20Calendar%20Event.applescript
tell account i
Reminder%20to%20Calendar%20Event.applescript
set r_lists to Reminders_Lists
Reminder%20to%20Calendar%20Event.applescript
set scheduleReminders to {}
Reminder%20to%20Calendar%20Event.applescript
set r_list to r_lists
Reminder%20to%20Calendar%20Event.applescript
set review_Question to display dialog "Do you want to Review Reminders due today, this week or All" buttons {"Due Today", "Due This Week", "All"} default button 1
Reminder%20to%20Calendar%20Event.applescript
set review to button returned of review_Question
Reminder%20to%20Calendar%20Event.applescript
repeat with r from 1 to length of r_list
Reminder%20to%20Calendar%20Event.applescript
tell list r
Reminder%20to%20Calendar%20Event.applescript
if review = "Due Today" then
Reminder%20to%20Calendar%20Event.applescript
set review_Reminder to (get reminders whose due date is less than or equal to today and completed is false)
Reminder%20to%20Calendar%20Event.applescript
else if review = "Due This Week" then
Reminder%20to%20Calendar%20Event.applescript
set review_Reminder to (get reminders whose due date is less than thisWeek and completed is false)
Reminder%20to%20Calendar%20Event.applescript
set review_Reminder to (get reminders whose completed is false)
Reminder%20to%20Calendar%20Event.applescript
if length of review_Reminder is greater than 0 then
Reminder%20to%20Calendar%20Event.applescript
repeat with r from 1 to length of review_Reminder
Reminder%20to%20Calendar%20Event.applescript
set this_Reminder to item r of review_Reminder
Reminder%20to%20Calendar%20Event.applescript
set schedule to ((get name) & " - " & (get name of this_Reminder)) as text
Reminder%20to%20Calendar%20Event.applescript
copy schedule to end of scheduleReminders
Reminder%20to%20Calendar%20Event.applescript
if scheduleReminders is not {} then
Reminder%20to%20Calendar%20Event.applescript
set RemindersList to choose from list scheduleReminders with prompt "Select the Reminder to Schedule"
Reminder%20to%20Calendar%20Event.applescript
if RemindersList is false then return
Reminder%20to%20Calendar%20Event.applescript
display dialog "There are no Reminders to Schedule" buttons {"OK"}
Reminder%20to%20Calendar%20Event.applescript
(choose from list {"2 Hours", "Tonight", "Tomorrow", "2 Days", "3 Days", "4 Days", "Saturday", "Sunday", "Next Monday", "1 Week"} default items defaultReminder OK button name "Select" with prompt "Set Event time" with title "Create Event from Reminder")
Reminder%20to%20Calendar%20Event.applescript
(choose from list Calender_Lists default items "Work" OK button name "Select" with prompt "Pick Calendar" with title "Create Calendar Event")
Reminder%20to%20Calendar%20Event.applescript
make new event with properties {summary:RemindersList, start date:theStartDate, end date:theEndDate}
Reminder%20to%20Calendar%20Event.applescript
choose folder
set dir to the result as text.applescript
set dir to the result as text
set dir to the result as text.applescript
set var to "Hello!"
dialog copy.applescript
set question to display dialog var buttons {"1","2","3"}
dialog copy.applescript
display dialog answer
dialog copy.applescript
make new folder at window 1 with properties {name: "a_new_folder"}
folder.applescript
listSubtract({"a", "b", "c", "d", "d", "d", "e", "f"}, {"a", "d", "f"})
listSubtract.applescript
on listSubtract(originalList, subtractionList)
listSubtract.applescript
repeat with oneItem in originalList
listSubtract.applescript
if subtractionList does not contain oneItem then set end of newList to oneItem
listSubtract.applescript