text
stringlengths
0
15.7k
source
stringlengths
6
112
continue fatal(logMessage)
dec-logger-speech-and-tracking.applescript
if logMessage does not contain "User canceled" then
dec-logger-speech-and-tracking.applescript
if (count of characters of logMessage) is less than 141 then speech's speak(logMessage)
dec-logger-speech-and-tracking.applescript
set size of front window of application process "Google Chrome" to {945, 990}
app-setup-1.scpt
set position of front window of application process "Google Chrome" to {10, 32}
app-setup-1.scpt
set size of front window of application process "Sublime Text" to {945, 990}
app-setup-1.scpt
set position of front window of application process "Sublime Text" to {965, 32}
app-setup-1.scpt
set size of front window of application process "Terminal" to {945, 990}
app-setup-1.scpt
set position of front window of application process "Terminal" to {1930, 32}
app-setup-1.scpt
set size of front window of application process "Slack" to {945, 990}
app-setup-1.scpt
set position of front window of application process "Slack" to {2885, 32}
app-setup-1.scpt
tell (menu item "PUT_YOUR_AIRPODE_NAME_HERE" of menu 1) -- Touhid’s AirPods not Touhid's AirPods
airpods-toggle.applescript
else if exists menu item "Disconnect" of menu 1 then
airpods-toggle.applescript
return "Disconnecting..."
airpods-toggle.applescript
return "Connect/disconncet menu was not found"
airpods-toggle.applescript
click button 1 of (first window whose name is "2empowerFM Toolbox")
fmGUI_2empowerFM_Toolbox_Close.applescript
if input volume of (get volume settings) = 0 then
cough-button.applescript
set level to 100
cough-button.applescript
set level to 0
cough-button.applescript
set volume input volume level
cough-button.applescript
set temp to selection as alias
CopyRelativeFilePath.applescript
set posixPathName to POSIX path of temp
CopyRelativeFilePath.applescript
set result to get replaceText(myHome, "~/", posixPathName)
CopyRelativeFilePath.applescript
set the clipboard to result
CopyRelativeFilePath.applescript
 on open the_item_list
Script 27-4.applescript
set shell_script to "chmod"
Script 27-4.applescript
set this_mode to 0
Script 27-4.applescript
repeat with the_entity_ref in {{"owner", 100}, {"group members", 10}, {"others", 1}}
Script 27-4.applescript
set {entity_name, entity_val} to the_entity_ref
Script 27-4.applescript
repeat with the_action_ref in {{"read", 4}, {"write to", 2}, {"execute", 1}}
Script 27-4.applescript
set {action_name, action_val} to the_action_ref
Script 27-4.applescript
display dialog "Allow " & entity_name & " to " & action_name & "?" buttons {"No", "Yes"} default button "Yes"
Script 27-4.applescript
set this_mode to this_mode + (entity_val * action_val)
Script 27-4.applescript
display dialog "When processing folders, change all enclosed items as well?" buttons {"No", "Yes"} default button "Yes"
Script 27-4.applescript
set shell_script to shell_script & space & "-R"
Script 27-4.applescript
set shell_script to shell_script & space & this_mode
Script 27-4.applescript
repeat with item_ref in the_item_list
Script 27-4.applescript
set shell_script to shell_script & space & quoted form of POSIX path of item_ref
Script 27-4.applescript
display dialog "Make these changes as an administrator?" buttons {"No", "Yes"}
Script 27-4.applescript
set run_as_admin to button returned of result is "Yes"
Script 27-4.applescript
do shell script shell_script administrator privileges run_as_admin
Script 27-4.applescript
display dialog "The following error(s) occurred:" & return & err_msg buttons {"OK"}
Script 27-4.applescript
set text of selection to "\\texttt{" & theselection & "}"
tex-texttt.applescript
getTextUntilLast("one-two&three&four", "&")
getTextUntilLast.applescript
on getTextUntilLast(sourceTEXT, stopHere)
getTextUntilLast.applescript
set the itemsBeforeLast to text items 1 thru -2 of sourceTEXT
getTextUntilLast.applescript
set finalResult to itemsBeforeLast as string
getTextUntilLast.applescript
end getTextUntilLast
getTextUntilLast.applescript
removeAllWhitespace({str:" hello how are you ?"})
removeAllWhitespace.applescript
on removeAllWhitespace(prefs)
removeAllWhitespace.applescript
set defaultPrefs to {str:null}
removeAllWhitespace.applescript
set str to str of prefs
removeAllWhitespace.applescript
if str is null then return str
removeAllWhitespace.applescript
set whiteSpaceAsciiNumbers to {13, 10, 32, 9} -- characters that count as whitespace.
removeAllWhitespace.applescript
repeat with oneNum in whiteSpaceAsciiNumbers
removeAllWhitespace.applescript
set oneNum to contents of oneNum
removeAllWhitespace.applescript
set str to replaceSimple({sourceTEXT:str, oldChars:ASCII character oneNum, newChars:""})
removeAllWhitespace.applescript
error "unable to removeAllWhitespace - " & errMsg number errNum
removeAllWhitespace.applescript
end removeAllWhitespace
removeAllWhitespace.applescript
set cue target of eachCue to cue (newPrefix & startNum & newSuffix)
Target Cues in Sequence.applescript
set potato_list to {"small potato", "big potato", "banged potato", "round potato"}
loop.applescript
set potato to item i of potato_list
loop.applescript
repeat with potato in potato_list
loop.applescript
set vpnName to "vpn.mydomain.com" -- copy from AnyConnect main window
cisco-autoconnect-uncompiled.applescript
set keyChainName to "My password" -- Keychain Item Name
cisco-autoconnect-uncompiled.applescript
if application targetApp is running then
cisco-autoconnect-uncompiled.applescript
tell application targetApp to quit
cisco-autoconnect-uncompiled.applescript
repeat while (application process targetApp exists)
cisco-autoconnect-uncompiled.applescript
repeat until application targetApp is running
cisco-autoconnect-uncompiled.applescript
set windowName to "Cisco AnyConnect | " & vpnName
cisco-autoconnect-uncompiled.applescript
repeat until (window windowName of process targetApp exists)
cisco-autoconnect-uncompiled.applescript
if (counter > 30) then error number -128
cisco-autoconnect-uncompiled.applescript
set PSWD to do shell script "/usr/bin/security find-generic-password -wl " & quoted form of keyChainName
cisco-autoconnect-uncompiled.applescript
set value of text field 2 of window windowName of application process targetApp of application "System Events" to PSWD as text
cisco-autoconnect-uncompiled.applescript
click button "OK" of window windowName of application process targetApp of application "System Events"
cisco-autoconnect-uncompiled.applescript
set fileNames to {}
Get List of Selection.applescript
set userPreRoll to 0.0
Load Parent Group to start of selected Child.applescript
set thePre to pre wait of theCue
Load Parent Group to start of selected Child.applescript
set theParent to parent of theCue
Load Parent Group to start of selected Child.applescript
load theParent time (thePre - userPreRoll)
Load Parent Group to start of selected Child.applescript
set playback position of parent list of theParent to cue id (uniqueID of theParent)
Load Parent Group to start of selected Child.applescript
using terms from application "Address Book"
Script 21-17.applescript
on action property
Script 21-17.applescript
return "phone"
Script 21-17.applescript
end action property
Script 21-17.applescript
on action title for thePerson with theEntry
Script 21-17.applescript
return "Add to Phone List"
Script 21-17.applescript
end action title
Script 21-17.applescript
on should enable action with the_element for the_person
Script 21-17.applescript
end should enable action
Script 21-17.applescript
on perform action with the_element for the_person
Script 21-17.applescript
set person_name to name of the_person
Script 21-17.applescript
set phone_number to value of the_element
Script 21-17.applescript
if not (exists document "Phone List") then
Script 21-17.applescript
make new document with properties {name:"Phone List"}
Script 21-17.applescript
make new paragraph at (end of paragraphs of document "Phone List") with data (person_name & tab & phone_number & linefeed)
Script 21-17.applescript
end perform action
Script 21-17.applescript
set the clipboard to (do shell script "curl " & the quoted form of the theURL)
Copy Source.applescript
global std, regex
dec-calendar-event-zoom.applescript
set thisCaseId to "dec-calendar-event-zoom-spotCheck"
dec-calendar-event-zoom.applescript