text
stringlengths
0
15.7k
source
stringlengths
6
112
set deviceName to "Belkin G22"
Belkin G22 BigSur.scpt
set bluetoothMenu to ""
Belkin G22 BigSur.scpt
set menuBarItems to menu bar items of menu bar 1
Belkin G22 BigSur.scpt
repeat with mbi in menuBarItems
Belkin G22 BigSur.scpt
if name of mbi contains "Bluetooth" then
Belkin G22 BigSur.scpt
set bluetoothMenu to mbi
Belkin G22 BigSur.scpt
if bluetoothMenu is not equal to "" then
Belkin G22 BigSur.scpt
click bluetoothMenu
Belkin G22 BigSur.scpt
set deviceToggle to checkbox 1 of scroll area 1 of group 1 of window "Control Center" whose title contains deviceName
Belkin G22 BigSur.scpt
set bluetoothMenu to (first menu bar item whose name contains "Bluetooth") of menu bar 1
Belkin G22 BigSur.scpt
set errorMessage to "Bluetooth menu not found in menu bar. Open System Preferences > Dock & Menu Bar. Set Display to \"Show in Menu Bar > Always.\""
Belkin G22 BigSur.scpt
display dialog errorMessage with icon caution
Belkin G22 BigSur.scpt
on setVolume(muted)
Belkin G22 BigSur.scpt
if muted is "mute" then
Belkin G22 BigSur.scpt
end setVolume
Belkin G22 BigSur.scpt
display dialog "Stop iTunes after input minutes:" default answer "30"
iTunesSleepTimer.scpt
set res to result
iTunesSleepTimer.scpt
set sec to (text returned of res) * 60
iTunesSleepTimer.scpt
set curDate to current date
iTunesSleepTimer.scpt
set time of curDate to (time of curDate) + sec
iTunesSleepTimer.scpt
display dialog "iTunes will stop at " & time string of curDate buttons {"Stop Now"} giving up after sec
iTunesSleepTimer.scpt
set theDefault to the POSIX path of ((folder of window 1) as alias)
clipboard copy.applescript
set theDefault to path to desktop
clipboard copy.applescript
set resultFile to (choose file name with prompt "Save As File" default name "paste.txt" default location theDefault) as text
clipboard copy.applescript
if resultFile does not end with ".txt" then set resultFile to resultFile & ".txt"
clipboard copy.applescript
set resultFilePosix to quoted form of the POSIX path of resultFile
clipboard copy.applescript
do shell script "pbpaste > " & resultFilePosix
clipboard copy.applescript
property includeGroups : ["Contact", "Date&Time"]
gistfile1-3 copy 5.applescript
tell application "TextExpander"
gistfile1-3 copy 5.applescript
set theList to "launch://clipboard?text=[list:Snippets"
gistfile1-3 copy 5.applescript
repeat with aGroup in groups
gistfile1-3 copy 5.applescript
set theGroupName to name of aGroup
gistfile1-3 copy 5.applescript
if theGroupName is in includeGroups then
gistfile1-3 copy 5.applescript
set theList to theList & "|" & theGroupName & "=[list=" & theGroupName
gistfile1-3 copy 5.applescript
repeat with aSnippet in snippets of aGroup
gistfile1-3 copy 5.applescript
set theSnippetName to label of aSnippet
gistfile1-3 copy 5.applescript
if theSnippetName is "" then set theSnippetName to name of aSnippet
gistfile1-3 copy 5.applescript
set theSnippetAbbrev to abbreviation of aSnippet
gistfile1-3 copy 5.applescript
set theList to theList & "|" & theSnippetName & "=[textexpander:" & theSnippetAbbrev & "]"
gistfile1-3 copy 5.applescript
set theList to theList & "]"
gistfile1-3 copy 5.applescript
set myList to {"1.0", "1.1", "1.2"}
convertListToString.applescript
set delimiter to ", "
convertListToString.applescript
return convertListToString(myList, delimiter)
convertListToString.applescript
on convertListToString(myList, delimiter)
convertListToString.applescript
set returnString to myList as text
convertListToString.applescript
tell application "Sketch"
Reveal Document copy 6.applescript
set thePath to path of document 1
Reveal Document copy 6.applescript
reveal POSIX file thePath as text
Reveal Document copy 6.applescript
on autoclipboard(theMessage)
AutoClipboard.applescript
set the clipboard to theMessage
AutoClipboard.applescript
set the clipboard to do shell script "echo '" & theMessage & "' | sed 's/[^0-9]//g'"
AutoClipboard.applescript
end autoclipboard
AutoClipboard.applescript
return autoclipboard(theMessage)
AutoClipboard.applescript
set win to first window whose value of attribute "AXMain" is equal to true
firefox-dev-sidebar-toggle.applescript
if (title of win is equal to "Picture-in-Picture") then return "pip stop"
firefox-dev-sidebar-toggle.applescript
tell menu 1 of menu item "Sidebar" of menu 1 of menu bar item "View" of menu bar 1
firefox-dev-sidebar-toggle.applescript
tell last menu item
firefox-dev-sidebar-toggle.applescript
set sidebarOpen to not(value of attribute "AXMenuItemMarkChar" is equal to missing value)
firefox-dev-sidebar-toggle.applescript
tell application "screenhook" to updateFFSidebarShowing sidebarOpen
firefox-dev-sidebar-toggle.applescript
set num3 to 3
SignsJobNumbers.applescript
set en4 to 1
SignsJobNumbers.applescript
set es4 to 3
SignsJobNumbers.applescript
set mo to do shell script "date +%m"
SignsJobNumbers.applescript
set yr to (do shell script "date '+%y'")
SignsJobNumbers.applescript
set {month:m, year:y} to (current date)
SignsJobNumbers.applescript
set m2 to do shell script "date -v+1m +%m"
SignsJobNumbers.applescript
set y2 to do shell script "date -v+1y +%y"
SignsJobNumbers.applescript
set enJobNum to yr & num3 & en4 & mo
SignsJobNumbers.applescript
set esJobNum to yr & num3 & es4 & mo
SignsJobNumbers.applescript
set enJobNum2 to yr & num3 & en4 & m2
SignsJobNumbers.applescript
set esJobNum2 to yr & num3 & es4 & m2
SignsJobNumbers.applescript
set enJobNum3 to y2 & num3 & en4 & "01"
SignsJobNumbers.applescript
set esJobNum3 to y2 & num3 & es4 & "01"
SignsJobNumbers.applescript
set enDialogText to "Signs: " & enJobNum as text
SignsJobNumbers.applescript
set esDialogText to "El Centinela: " & esJobNum as text
SignsJobNumbers.applescript
set enDialogText2 to "Signs: " & enJobNum2 as text
SignsJobNumbers.applescript
set esDialogText2 to "El Centinela: " & esJobNum2 as text
SignsJobNumbers.applescript
set enDialogText3 to "Signs: " & enJobNum3 as text
SignsJobNumbers.applescript
set esDialogText3 to "El Centinela: " & esJobNum3 as text
SignsJobNumbers.applescript
if m = 12 then
SignsJobNumbers.applescript
display alert "Job Numbers for " & (m as integer) & "/" & y & "
SignsJobNumbers.applescript
" & enDialogText & "
SignsJobNumbers.applescript
" & esDialogText & "
SignsJobNumbers.applescript
" & "Job Numbers for " & "1/20" & y2 & "
SignsJobNumbers.applescript
" & enDialogText3 & "
SignsJobNumbers.applescript
" & esDialogText3 & "
SignsJobNumbers.applescript
" & "Process Number: 11420" buttons {"Cancel", "Ok"}
SignsJobNumbers.applescript
" & "Job Numbers for " & m2 & "/" & y & "
SignsJobNumbers.applescript
" & enDialogText2 & "
SignsJobNumbers.applescript
" & esDialogText2 & "
SignsJobNumbers.applescript
repeat with t in every todo of every calendar
iterate.applescript
properties of t
iterate.applescript
 property number_of_runs : 0
Script 11-9.applescript
set number_of_runs to number_of_runs + 1
Script 11-9.applescript
display dialog "You have now run this script " & number_of_runs & " times."
Script 11-9.applescript
set theIDs to get id of publication items of group item "Unlinked Attachments"
bookends-index_unlinked_group_dtpo.scpt
repeat with theID in theIDs
bookends-index_unlinked_group_dtpo.scpt
set {theKey, thePath, theAuthor, theEditor, theTitle} to {citekey, path of attachment items, authors, editors, title} of myItem
bookends-index_unlinked_group_dtpo.scpt
set theDatabase to open database "/Users/zhope/DTPO/Research.dtBase2"
bookends-index_unlinked_group_dtpo.scpt
global std, notif, textUtil, MapClass, emoji, listUtil, speech, switch, uni, sessionPlist, spotLib
Menu Case.applescript