text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
windowWaitUntil_FrontNotIS({windowName:"Manage Database for", waitCycleDelaySeconds:1, waitCycleMax:30 * minutes})
|
windowWaitUntil_FrontNotIS.applescript
|
set defaultPrefs to {windowName:null, windowNameTest:"is not", whichWindow:"front", waitCycleDelaySeconds:0.1, waitCycleMax:100}
|
windowWaitUntil_FrontNotIS.applescript
|
set theTitle to the subject of theMessage
|
basecamp_filter.applescript
|
set AppleScript's text item delimiters to {" ] "}
|
basecamp_filter.applescript
|
set theSearchTerm to the first text item of theTitle
|
basecamp_filter.applescript
|
keystroke "subject:" & theSearchTerm
|
basecamp_filter.applescript
|
set workbookName to (name of active workbook)
|
Print active sheet to PDF.applescript
|
set workbookPath to (full name of active workbook)
|
Print active sheet to PDF.applescript
|
save as active sheet filename "temp.pdf" file format PDF file format with overwrite
|
Print active sheet to PDF.applescript
|
set workbookPath to text 1 thru -((length of workbookName) + 1) of workbookPath
|
Print active sheet to PDF.applescript
|
set workbookName to text 1 thru -6 of workbookName
|
Print active sheet to PDF.applescript
|
delete file (workbookPath & workbookName & ".pdf")
|
Print active sheet to PDF.applescript
|
set name of file (workbookPath & "temp Sheet1.pdf") to (workbookName & ".pdf")
|
Print active sheet to PDF.applescript
|
set reply to ¬
|
SearchAllSafariWindows.scpt
|
display dialog "Enter the string to search for:" default answer "" buttons {"Cancel", "Search"} default button "Search" with title "Safari All Window Text Search" giving up after 30
|
SearchAllSafariWindows.scpt
|
log reply
|
SearchAllSafariWindows.scpt
|
if gave up of reply then
|
SearchAllSafariWindows.scpt
|
set searchString to text returned of reply
|
SearchAllSafariWindows.scpt
|
log "Searching for: " & searchString
|
SearchAllSafariWindows.scpt
|
set foundTabsList to {}
|
SearchAllSafariWindows.scpt
|
set foundTabsListRef to a reference to foundTabsList
|
SearchAllSafariWindows.scpt
|
set windsRef to a reference to windows
|
SearchAllSafariWindows.scpt
|
set countOfWindows to count of windsRef
|
SearchAllSafariWindows.scpt
|
set countOfTabs to 0
|
SearchAllSafariWindows.scpt
|
repeat with n from 1 to countOfWindows
|
SearchAllSafariWindows.scpt
|
set tabsRef to tabs in item n of windsRef
|
SearchAllSafariWindows.scpt
|
set countOfTabs to countOfTabs + (count of tabsRef)
|
SearchAllSafariWindows.scpt
|
repeat with t from 1 to count of items in tabsRef
|
SearchAllSafariWindows.scpt
|
set windTextRef to the text of (item t of tabsRef)
|
SearchAllSafariWindows.scpt
|
ignoring case and diacriticals
|
SearchAllSafariWindows.scpt
|
if the text of windTextRef contains searchString then
|
SearchAllSafariWindows.scpt
|
set tabname to (the name of item t of tabsRef as string)
|
SearchAllSafariWindows.scpt
|
copy {|windowIdx|:n, |tabIdx|:t, |tabName|:tabname} to the end of foundTabsListRef
|
SearchAllSafariWindows.scpt
|
tell me to log "Searched " & countOfTabs & " in " & countOfWindows & " windows"
|
SearchAllSafariWindows.scpt
|
tell me to log "Found: " & (count of foundTabsListRef) & " matches"
|
SearchAllSafariWindows.scpt
|
if (count of foundTabsListRef) is 0 then
|
SearchAllSafariWindows.scpt
|
return -- didn't find any matches
|
SearchAllSafariWindows.scpt
|
set selectList to {}
|
SearchAllSafariWindows.scpt
|
set selectListRef to a reference to selectList
|
SearchAllSafariWindows.scpt
|
repeat with n from 1 to (count of foundTabsListRef)
|
SearchAllSafariWindows.scpt
|
set itemRef to (a reference to item n of foundTabsListRef)
|
SearchAllSafariWindows.scpt
|
set s to ((tabname of itemRef) & " ((id: " & (n as string) & "))")
|
SearchAllSafariWindows.scpt
|
copy s to end of selectListRef
|
SearchAllSafariWindows.scpt
|
set selectedItem to choose from list selectListRef with prompt "Select window tab to bring to front, or cancel" OK button name "Activate" cancel button name "Cancel"
|
SearchAllSafariWindows.scpt
|
if not selectedItem is false then
|
SearchAllSafariWindows.scpt
|
set idx to my indexFromListString(selectedItem as string)
|
SearchAllSafariWindows.scpt
|
set itm to item idx of foundTabsListRef
|
SearchAllSafariWindows.scpt
|
set widx to windowIdx of itm
|
SearchAllSafariWindows.scpt
|
set tidx to tabIdx of itm
|
SearchAllSafariWindows.scpt
|
set targetWindow to window widx
|
SearchAllSafariWindows.scpt
|
tell targetWindow
|
SearchAllSafariWindows.scpt
|
set current tab to (tab tidx)
|
SearchAllSafariWindows.scpt
|
on indexFromListString(s)
|
SearchAllSafariWindows.scpt
|
set tids to text item delimiters
|
SearchAllSafariWindows.scpt
|
set text item delimiters to {" ((id: ", "))"}
|
SearchAllSafariWindows.scpt
|
set a to item 1 of text items of s
|
SearchAllSafariWindows.scpt
|
set idx to item 2 of text items of s
|
SearchAllSafariWindows.scpt
|
end indexFromListString
|
SearchAllSafariWindows.scpt
|
global user_name
|
Script 11-5.applescript
|
set nameString to "Locate | "
|
Create locate cue in Main Cue List.applescript
|
on run {noEjectList}
|
EjectDisks.applescript
|
set opticalDrives to (do shell script ("bash " & scriptdirectory & "opticalDisk.sh"))
|
EjectDisks.applescript
|
set opticalDriveList to every text item of opticalDrives
|
EjectDisks.applescript
|
set noEjectList to noEjectList & opticalDriveList
|
EjectDisks.applescript
|
copy name of startup disk to the end of noEjectList
|
EjectDisks.applescript
|
set currentDisks to the name of every disk whose ejectable is true
|
EjectDisks.applescript
|
set currentDisks to {}
|
EjectDisks.applescript
|
repeat with diskName in currentDisks
|
EjectDisks.applescript
|
if (diskName is not in noEjectList) then
|
EjectDisks.applescript
|
try -- Don't give an error if a disk is busy
|
EjectDisks.applescript
|
eject diskName
|
EjectDisks.applescript
|
display dialog "Could not eject " & diskName & " with EjectDisks.scpt"
|
EjectDisks.applescript
|
set currentDisks to the name of every disk whose local volume is false
|
EjectDisks.applescript
|
set x2 to x1 + (displayWidth - dockSize) / 3
|
Left Third.applescript
|
set carpetaDestino to (choose folder with prompt "Selecciona donde se crearán las carpetas ")
|
carpetasDesdeLista.scpt
|
set archivoLista to (choose file with prompt "Selecciona el archivo que contiene la lista")
|
carpetasDesdeLista.scpt
|
set nombreCarpetas to paragraphs of (read archivoLista)
|
carpetasDesdeLista.scpt
|
repeat with cadaNombre in nombreCarpetas
|
carpetasDesdeLista.scpt
|
tell application "Finder" to make new folder at carpetaDestino with properties {name:cadaNombre}
|
carpetasDesdeLista.scpt
|
display dialog "Tus carpetas fueron creadas con éxito" buttons {"OK"}
|
carpetasDesdeLista.scpt
|
set emailRegex to "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b"
|
extract-recipient.applescript
|
set extractScript to extractScript & " | grep -E '\\b^To:'" -- limit to only the 'To:' header
|
extract-recipient.applescript
|
display dialog "Which appication do you want to spam in" buttons {"More", "TextEdit"} default button 2 with title "Spam Bot"
|
Spambot.applescript
|
set the button_pressed to the button returned of the result
|
Spambot.applescript
|
if the button_pressed is "More" then
|
Spambot.applescript
|
display dialog "Please choose A custom application and click ok" with title "Spam Bot"
|
Spambot.applescript
|
else if the button_pressed is "TextEdit" then
|
Spambot.applescript
|
display dialog "Enter message" default answer "example text" with title "Spam Bot"
|
Spambot.applescript
|
display dialog "Interval " default answer ".1" with title "Spam Bot"
|
Spambot.applescript
|
set numoftimes to text returned of (display dialog "How many times?" default answer "100" with title "Spam Bot")
|
Spambot.applescript
|
display dialog "Click to launch in 5 Seconds" with title "Spam Bot"
|
Spambot.applescript
|
set STEPSFINISHED to 4 # "config" (the only difference between trio & quad)
|
iTerm-quad-profile.applescript
|
tell (current session) of T to split vertically with same profile # right pane
|
iTerm-quad-profile.applescript
|
tell (session 2) of T to split horizontally with same profile # bottom right pane
|
iTerm-quad-profile.applescript
|
else if (runCounter equals 3) then
|
iTerm-quad-profile.applescript
|
tell (current session) of T to split horizontally with same profile # bottom left pane
|
iTerm-quad-profile.applescript
|
property exlusionList : items 1 thru -2 of {¬
"Action_List.txt", ¬
"Aliases to Directories", ¬
"Catch-All", ¬
"Desktop Notes.rtf", ¬
"Duplicates", ¬
"FILE!", ¬
"Meta-Research.txt", ¬
"Sweep Desktop", ¬
"Working Items (Current)", ¬
"Working Scripts", ¬
""}
|
Desktop_Sweeper.applescript
|
property fileExtFilters : text 2 thru -2 of "
|
Desktop_Sweeper.applescript
|
dmg Disk_Images
|
Desktop_Sweeper.applescript
|
flv mov mp4 Movie_Files
|
Desktop_Sweeper.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.