text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set myPath to text o thru end of n | New%20iTerm%20Window.scpt |
set mylittlewindow to create window with default profile | New%20iTerm%20Window.scpt |
write current session of mylittlewindow text "cd " & myPath | New%20iTerm%20Window.scpt |
on finder_path() | New%20iTerm%20Window.scpt |
tell application "Finder" to set the source_folder to (folder of the front window) as alias | New%20iTerm%20Window.scpt |
set thePath to (POSIX path of the source_folder as string) | New%20iTerm%20Window.scpt |
set thePath to "" | New%20iTerm%20Window.scpt |
end finder_path | New%20iTerm%20Window.scpt |
on quote_for_bash(theString) | New%20iTerm%20Window.scpt |
set the parsedList to every text item of theString | New%20iTerm%20Window.scpt |
set AppleScript's text item delimiters to "'\\''" | New%20iTerm%20Window.scpt |
set theString to the parsedList as string | New%20iTerm%20Window.scpt |
return "'" & theString & "'" | New%20iTerm%20Window.scpt |
end quote_for_bash | New%20iTerm%20Window.scpt |
set var1 to every folder of (startup disk) | 004_06_elements_example-folders.applescript |
set theInbox to every inbox task | ParseInbox.applescript |
if theInbox is not equal to {} then | ParseInbox.applescript |
repeat with n from 1 to length of theInbox | ParseInbox.applescript |
set currentTask to item n of theInbox | ParseInbox.applescript |
set taskName to name of currentTask | ParseInbox.applescript |
if taskName starts with "--" then | ParseInbox.applescript |
set taskName to ((characters 3 thru -1 of taskName) as string) | ParseInbox.applescript |
set taskNote to note of currentTask | ParseInbox.applescript |
set taskText to taskName & " | ParseInbox.applescript |
" & taskNote | ParseInbox.applescript |
set newTask to parse tasks into with transport text taskText with as single task | ParseInbox.applescript |
delete currentTask | ParseInbox.applescript |
set antall to count of characters of selection | base shiftt 1 to magenta.applescript |
repeat with i from 1 to antall | base shiftt 1 to magenta.applescript |
if base shift of character i of selection is not "0 pt" then | base shiftt 1 to magenta.applescript |
set color of character i of selection to "Magenta" | base shiftt 1 to magenta.applescript |
set thisCaseId to "window-spotCheck" | window.applescript |
Manual: Has Window (Check absence, presence, and on another desktop) | window.applescript |
logger's infof("Has Window: {}", sut's hasWindow("Safari")) | window.applescript |
end spot | window.applescript |
script WindowInstance | window.applescript |
on hasWindow(appName) | window.applescript |
hasAllWindows({appName}) | window.applescript |
on hasAllWindows(appNames) | window.applescript |
set calcAppNames to appNames | window.applescript |
if class of appNames is text then set calcAppNames to {appNames} | window.applescript |
repeat with nextAppName in calcAppNames | window.applescript |
if running of application nextAppName is false then return false | window.applescript |
tell application "System Events" to tell process nextAppName | window.applescript |
end hasAllWindows | window.applescript |
set logger to std's import("logger")'s new("window") | window.applescript |
set myKeyword to "Weibo" | 1Password_Entry.applescript |
tell process "1Password 7" | 1Password_Entry.applescript |
open location "onepassword://extension/search/" & myKeyword | 1Password_Entry.applescript |
repeat with idx from 1 to 200 | 1Password_Entry.applescript |
if (subrole of text field 1 of window "1Password mini") is "AXSearchField" then | 1Password_Entry.applescript |
if idx is 200 then | 1Password_Entry.applescript |
display notification "Repeat ends with nothing happened." with title "Exit Repeat" | 1Password_Entry.applescript |
property dayHeader : "OFF" | script.applescript |
my make_DayOne(noteName, note_Date, note_Text, noteLink) | script.applescript |
set noteLat to (latitude of item 1 of theNotes) | script.applescript |
set noteLong to (longitude of item 1 of theNotes) | script.applescript |
on make_DayOne(noteName, note_Date, note_Text, noteLink) | script.applescript |
if dayHeader is "ON" then | script.applescript |
set note_Text to (noteName & return & return & note_Text) | script.applescript |
set new_DayOne to "echo " & (quoted form of note_Text) & " | '/usr/local/bin/dayone' -d=\"" & note_Date & "\" new" | script.applescript |
set new_DayOne to "echo " & (quoted form of note_Text) & " | /usr/local/bin/dayone -d=\"" & note_Date & "\" new" | script.applescript |
set theLabelStrings to {"Replace This:", "With That:"} | Refactor-Macro.applescript |
set {replaceField, replaceLabel, theTop, fieldLeft} to create side labeled field "" placeholder text "replace string" left inset 0 bottom (0) total width accViewWidth - 50 label text (item 2 of theLabelStrings) field left controlLeft | Refactor-Macro.applescript |
set {searchField, searchLabel, theTop, fieldLeft} to create side labeled field "" placeholder text "find string" left inset 0 bottom (theTop + 8) total width accViewWidth - 50 label text (item 1 of theLabelStrings) field left controlLeft | Refactor-Macro.applescript |
set {messageLabel, theTop} to create label "This will refactor the search string for every action in this macro." bottom theTop + 12 max width accViewWidth control size small size | Refactor-Macro.applescript |
set {boldLabel, theTop} to create label "Refactor Current Macro" bottom theTop + 8 max width accViewWidth control size regular size with bold type | Refactor-Macro.applescript |
set allControls to {replaceField, replaceLabel, searchField, searchLabel, boldLabel, messageLabel} | Refactor-Macro.applescript |
set {buttonName, controlsResults} to display enhanced window "Refactor Keyboard Maestro" acc view width accViewWidth acc view height theTop acc view controls allControls buttons theButtons initial position {100, 30} giving up after 50 with align cancel button | Refactor-Macro.applescript |
set {replace, unused, srch, unused, unused, unused} to controlsResults | Refactor-Macro.applescript |
if srch = "" or srch = missing value then return | Refactor-Macro.applescript |
repeat with a in actions of m | Refactor-Macro.applescript |
set a's xml to kl's SearchandReplace(a's xml, srch, replace) | Refactor-Macro.applescript |
set delim to "," | Paste%20CSV.scpt |
set the clipboard to my remplace(the clipboard as text, delim, tab) | Paste%20CSV.scpt |
on remplace(_t, _delim, _tab) | Paste%20CSV.scpt |
local l | Paste%20CSV.scpt |
set l to text items of _t | Paste%20CSV.scpt |
set AppleScript's text item delimiters to _tab | Paste%20CSV.scpt |
set _t to l as text | Paste%20CSV.scpt |
return _t | Paste%20CSV.scpt |
end remplace | Paste%20CSV.scpt |
set _msgSubject to _msg's subject | OmniFocus%20Selected%20Mail%20Messages.applescript |
set _msgBody to _msg's content | OmniFocus%20Selected%20Mail%20Messages.applescript |
set _msgSender to _msg's sender | OmniFocus%20Selected%20Mail%20Messages.applescript |
set _msgURL to "message://<" & _msg's message id & ">" | OmniFocus%20Selected%20Mail%20Messages.applescript |
set _task to make new inbox task with properties {name:_msgSubject, note:_msgBody} | OmniFocus%20Selected%20Mail%20Messages.applescript |
tell note of _task | OmniFocus%20Selected%20Mail%20Messages.applescript |
insert "From: " & _msgSender & " Original Message" & (ASCII character 10) & (ASCII character 10) at before paragraphs | OmniFocus%20Selected%20Mail%20Messages.applescript |
set value of attribute "link" of style of characters -1 thru -17 of first paragraph to _msgURL | OmniFocus%20Selected%20Mail%20Messages.applescript |
tell quick entry to open | OmniFocus%20Selected%20Mail%20Messages.applescript |
set myTag to "Read" | ReadBookTasks.applescript |
set dateFormat to "mmddyyyy" -- choose "mmddyyyy" or "ddmmyyyy" based on your region | ReadBookTasks.applescript |
set bookTitle to text returned of (display dialog "What's the title of the book?" default answer "") | ReadBookTasks.applescript |
set numPages to text returned of (display dialog "How many pages are in the book?" default answer 0) as integer | ReadBookTasks.applescript |
set startDate to text returned of (display dialog "When should this start?" default answer "yyyymmdd") | ReadBookTasks.applescript |
set endDate to text returned of (display dialog "When should this end?" default answer "yyyymmdd") | ReadBookTasks.applescript |
set deferYear to text 1 thru 4 of startDate | ReadBookTasks.applescript |
set deferMonth to text 5 thru 6 of startDate | ReadBookTasks.applescript |
set deferDay to text 7 thru 8 of startDate | ReadBookTasks.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.