text
stringlengths
0
15.7k
source
stringlengths
6
112
move eachMessage to mailbox datedMailbox of account myMailAccount
DatedSpaceMail.scpt
my logit("MAILDATEFILTER: message moved to " & datedMailbox & " of " & myMailAccount, "applescript")
DatedSpaceMail.scpt
"\" >> $HOME/" & log_file & ".log"
DatedSpaceMail.scpt
set theProjectTitle to input as string
link-devonthink-bear-things.applescript
set theParentID to "66603FF9-03FE-4AE8-86AE-9621AA22FCA7"
link-devonthink-bear-things.applescript
set theGroup to get record with uuid theParentID
link-devonthink-bear-things.applescript
set theProjectGroup to create record with {name:theProjectTitle, type:group} in theGroup
link-devonthink-bear-things.applescript
set theProjectGroupID to the uuid of theProjectGroup
link-devonthink-bear-things.applescript
set theProjectGroupURL to "x-devonthink-item://" & theProjectGroupID
link-devonthink-bear-things.applescript
set theQuotedProjectName to do shell script "/bin/echo " & quoted form of theProjectTitle & ¬
link-devonthink-bear-things.applescript
" | perl -MURI::Escape -lne 'print uri_escape($_)'"
link-devonthink-bear-things.applescript
set theBearIdentifier to do shell script "/Applications/xcall.app/Contents/MacOS/xcall -url 'bear://x-callback-url/create?title=" & theQuotedProjectName & "' -activateApp NO | /usr/local/bin/jq -r '.identifier'"
link-devonthink-bear-things.applescript
set theBearURL to "bear://x-callback-url/open-note?id=" & theBearIdentifier
link-devonthink-bear-things.applescript
set theBearRecord to create record with {name:"Notater", type:bookmark, URL:theBearURL} in theProjectGroup
link-devonthink-bear-things.applescript
set theThingsNote to theProjectGroupURL & "
link-devonthink-bear-things.applescript
" & theBearURL
link-devonthink-bear-things.applescript
set theThingsProject to make new project with properties {name:theProjectTitle, notes:theThingsNote}
link-devonthink-bear-things.applescript
set theThingsProjectURL to "things://x-callback-url/show?id=" & the id of theThingsProject
link-devonthink-bear-things.applescript
set theThingsRecord to create record with {name:"Todo", type:bookmark, URL:theThingsProjectURL} in theProjectGroup
link-devonthink-bear-things.applescript
set theBearNote to "## Lenker
link-devonthink-bear-things.applescript
- " & theProjectGroupURL & "
link-devonthink-bear-things.applescript
- " & theThingsProjectURL & "
link-devonthink-bear-things.applescript
set theEscapedBearNote to do shell script "/bin/echo " & quoted form of theBearNote & ¬
link-devonthink-bear-things.applescript
" | perl -MURI::Escape -wlne 'print uri_escape($_)'"
link-devonthink-bear-things.applescript
set theNewEscapedBearNote to text items of theEscapedBearNote
link-devonthink-bear-things.applescript
set AppleScript's text item delimiters to {"%0A"}
link-devonthink-bear-things.applescript
set theNewEscapedBearNote to theNewEscapedBearNote as text
link-devonthink-bear-things.applescript
set a to do shell script "/Applications/xcall.app/Contents/MacOS/xcall -url 'bear://x-callback-url/add-text?id=" & theBearIdentifier & "&mode=append&text=" & theNewEscapedBearNote & "' -activateApp NO"
link-devonthink-bear-things.applescript
set todoistToken to "b72150682f676f4f5dec879ea0c148baddc32f83"
CopyRemindersToTodoist.applescript
set apiCall to "curl https://api.todoist.com/sync/v8/quick/add"
CopyRemindersToTodoist.applescript
set listOfCommands to {}
CopyRemindersToTodoist.applescript
set theLists to the name of every list
CopyRemindersToTodoist.applescript
set ListOfReminders to (choose from list theLists) as text
CopyRemindersToTodoist.applescript
set _tmp to (get name of currentReminder)
CopyRemindersToTodoist.applescript
set taskTitle to " -d text=" & "'" & _tmp
CopyRemindersToTodoist.applescript
set temp to (get priority of currentReminder)
CopyRemindersToTodoist.applescript
set thePriority to 4
CopyRemindersToTodoist.applescript
if (temp = 0) then
CopyRemindersToTodoist.applescript
else if (temp = 9) then
CopyRemindersToTodoist.applescript
set thePriority to 3
CopyRemindersToTodoist.applescript
else if (temp = 5) then
CopyRemindersToTodoist.applescript
set thePriority to 2
CopyRemindersToTodoist.applescript
else if (temp = 1) then
CopyRemindersToTodoist.applescript
set thePriority to 1
CopyRemindersToTodoist.applescript
set taskTitle to (taskTitle & " p" & thePriority)
CopyRemindersToTodoist.applescript
set _tmp to (get due date of currentReminder as text)
CopyRemindersToTodoist.applescript
if (_tmp = "Missing Value") then set _tmp to ""
CopyRemindersToTodoist.applescript
set _tmp to my findAndReplaceInText(_tmp, ",", "")
CopyRemindersToTodoist.applescript
set _tmp to my findAndReplaceInText(_tmp, ":00 AM", " AM")
CopyRemindersToTodoist.applescript
set _tmp to my findAndReplaceInText(_tmp, ":00 PM", " PM")
CopyRemindersToTodoist.applescript
if _tmp is not equal to "" then set taskTitle to (taskTitle & " on " & _tmp)
CopyRemindersToTodoist.applescript
set taskTitle to (taskTitle & "'")
CopyRemindersToTodoist.applescript
set taskReminder to ""
CopyRemindersToTodoist.applescript
set _tmp to (get remind me date of currentReminder as text)
CopyRemindersToTodoist.applescript
if _tmp is not equal to "" then set taskReminder to " -d reminder=" & "'" & _tmp & "'"
CopyRemindersToTodoist.applescript
set unencodedText to (get body of currentReminder)
CopyRemindersToTodoist.applescript
set _tmp to my encode_text(unencodedText, true, true)
CopyRemindersToTodoist.applescript
set taskBody to " -d note=" & "'" & _tmp & "'"
CopyRemindersToTodoist.applescript
set postToAPI to apiCall & " -d token='" & todoistToken & "'" & taskTitle & taskReminder & taskBody
CopyRemindersToTodoist.applescript
copy postToAPI to the end of listOfCommands
CopyRemindersToTodoist.applescript
repeat with theCommand in listOfCommands
CopyRemindersToTodoist.applescript
set _result to do shell script theCommand
CopyRemindersToTodoist.applescript
set the standard_characters to "abcdefghijklmnopqrstuvwxyzõäöü0123456789"
CopyRemindersToTodoist.applescript
set theURL to do shell script "pbpaste | ~/.bin/link_source_control_markdown --url-only --quote " & "--line-number " & theLineStart & " " & the quoted form of thePath
Open Source Control Link to File.applescript
set theURL to do shell script "~/.bin/link_source_control_markdown --url-only " & the quoted form of thePath
Open Source Control Link to File.applescript
do shell script "open " & the quoted form of the theURL
Open Source Control Link to File.applescript
if tiime contains "11:31" then
Current time.applescript
display alert "hey"
Current time.applescript
set query to (q as text)
Search in iTunes Music Library.applescript
reveal playlist "Music"
Search in iTunes Music Library.applescript
tell window "iTunes"
Search in iTunes Music Library.applescript
set value of text field 1 to query
Search in iTunes Music Library.applescript
set currentTab to current tab of front window
TUDelft_Safari_proxy_URL.scpt
set currentURL to currentTab's URL
TUDelft_Safari_proxy_URL.scpt
set urlParts to (every text item in currentURL) as list
TUDelft_Safari_proxy_URL.scpt
set originalDomain to item 3 of urlParts
TUDelft_Safari_proxy_URL.scpt
set domainParts to (every text item in originalDomain) as list
TUDelft_Safari_proxy_URL.scpt
set amendedDomain to domainParts as text
TUDelft_Safari_proxy_URL.scpt
set amendedDomain to amendedDomain & ".tudelft.idm.oclc.org"
TUDelft_Safari_proxy_URL.scpt
set item 3 of urlParts to amendedDomain
TUDelft_Safari_proxy_URL.scpt
set amendedURL to urlParts as text
TUDelft_Safari_proxy_URL.scpt
tell currentTab
TUDelft_Safari_proxy_URL.scpt
set URL to amendedURL
TUDelft_Safari_proxy_URL.scpt
set pomodoroCount to argv
OmniFocus Pomodoro.applescript
set root to _sel
OmniFocus Pomodoro.applescript
copy name of root to taskName
OmniFocus Pomodoro.applescript
set name of root to "Pomodoros for " & taskName
OmniFocus Pomodoro.applescript
set sequential of root to true
OmniFocus Pomodoro.applescript
repeat with i from 1 to pomodoroCount
OmniFocus Pomodoro.applescript
tell root to make new task with properties {name:taskName & " (pomodoro " & i & ")"}
OmniFocus Pomodoro.applescript
do script ("vim") in window 1
vim.scpt
do JavaScript "document.getElementsByClassName('vspib')[0].click();" in document 1
Do javascript.applescript
set var1 to every file of (startup disk)
004_05_containers_elements.applescript
set iphone_number to "NUMBER" --EDIT HERE
IPviaText.txt
tell mailbox "Clients"
Script 21-6.applescript
tell mailbox "Brown & Black Inc."
Script 21-6.applescript
count messages
Script 21-6.applescript
set _abstract to do shell script ¬
Add Zotero abstract.applescript
& " zoinks -U abstractNote"
Add Zotero abstract.applescript
if _abstract ≠ "" then
Add Zotero abstract.applescript