text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set currentPosition to currentPosition + 1
|
things-to-of.applescript
|
set progress additional description to "Processing Todo " & currentPosition & " of " & numberOfTodos
|
things-to-of.applescript
|
set theTitle to name of aToDo
|
things-to-of.applescript
|
set theNote to notes of aToDo
|
things-to-of.applescript
|
set theCreationDate to creation date of aToDo
|
things-to-of.applescript
|
set theDueDate to due date of aToDo
|
things-to-of.applescript
|
set theStartDate to activation date of aToDo
|
things-to-of.applescript
|
set toDoCompletion to completion date of aToDo
|
things-to-of.applescript
|
if (creation date of aToDo) is not missing value then
|
things-to-of.applescript
|
set theCreationDate to current date
|
things-to-of.applescript
|
if (activation date of aToDo) is not missing value then
|
things-to-of.applescript
|
if (project of aToDo) is not missing value then
|
things-to-of.applescript
|
set theProjectName to (name of project of aToDo)
|
things-to-of.applescript
|
set theProjectName to "NoProjInThings"
|
things-to-of.applescript
|
set allTagNames to {}
|
things-to-of.applescript
|
copy (name of tags of aToDo) to allTagNames
|
things-to-of.applescript
|
copy (name of tags of project of aToDo) to the end of allTagNames
|
things-to-of.applescript
|
if (area of project of aToDo) is not missing value then
|
things-to-of.applescript
|
copy (name of tags of area of project of aToDo) to the end of allTagNames
|
things-to-of.applescript
|
copy my FindContextName(allTagNames) to theContextName
|
things-to-of.applescript
|
if context theContextName exists then
|
things-to-of.applescript
|
set theContext to context theContextName
|
things-to-of.applescript
|
set theContext to make new context with properties {name:theContextName}
|
things-to-of.applescript
|
if project theProjectName exists then
|
things-to-of.applescript
|
set theProject to project theProjectName
|
things-to-of.applescript
|
set theProject to make new project with properties {name:theProjectName, singleton action holder:true}
|
things-to-of.applescript
|
set newTask to make new task with properties {name:theTitle, note:theNote, context:theContext, creation date:theCreationDate}
|
things-to-of.applescript
|
if (theStartDate is not missing value) then set the defer date of newTask to theStartDate
|
things-to-of.applescript
|
if (theDueDate is not missing value) then set the due date of newTask to theDueDate
|
things-to-of.applescript
|
if (toDoCompletion is not missing value) then set the completion date of newTask to toDoCompletion
|
things-to-of.applescript
|
if (toDoCompletion is not missing value) then set the completed to true
|
things-to-of.applescript
|
end tell -- document
|
things-to-of.applescript
|
end tell -- OF application
|
things-to-of.applescript
|
on FindContextName(tagNames)
|
things-to-of.applescript
|
repeat with aTagName in tagNames
|
things-to-of.applescript
|
return aTagName
|
things-to-of.applescript
|
end FindContextName
|
things-to-of.applescript
|
switch view to day view
|
open_link.applescript
|
view calendar at current date
|
open_link.applescript
|
set evernoteEmail to "[email protected]"
|
gistfile1 copy 6.scpt
|
set theMessageURL to "message://%3c" & theMessage's message id & "%3e"
|
gistfile1 copy 6.scpt
|
set the clipboard to (theMessageURL)
|
gistfile1 copy 6.scpt
|
set theRedirectedEmail to redirect theMessage with opening window
|
gistfile1 copy 6.scpt
|
tell theRedirectedEmail
|
gistfile1 copy 6.scpt
|
make new to recipient at beginning of to recipients with properties {address:evernoteEmail}
|
gistfile1 copy 6.scpt
|
keystroke "O"
|
gistfile1 copy 6.scpt
|
choose from list myMailboxes with title "Choose Mailbox…" with prompt "Please select one account" without multiple selections allowed
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
set chosenMailbox to result as string
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
set mailboxAndAccount to every text item of chosenMailbox
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
set s to selection
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
if s is not "" then
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
repeat with currentMessage in s
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
move currentMessage to (first mailbox whose name is chosenMailbox) of account chosenAccount
|
Move%20Mail%20Message%20Multiple%20Accounts.applescript
|
set repeatPrompt to true
|
make_new_dir.applescript
|
set setCaptureFolder to true
|
make_new_dir.applescript
|
set resetCaptureCounter to true
|
make_new_dir.applescript
|
set newDirs to getDirs(not repeatPrompt)
|
make_new_dir.applescript
|
set fullPaths to makeDirs(newDirs)
|
make_new_dir.applescript
|
addFavorites(fullPaths, setCaptureFolder)
|
make_new_dir.applescript
|
on getDirs(askOnce)
|
make_new_dir.applescript
|
set newDirs to []
|
make_new_dir.applescript
|
set previousAnswer to "nil"
|
make_new_dir.applescript
|
repeat while previousAnswer is not ""
|
make_new_dir.applescript
|
set theResponse to display dialog ¬
|
make_new_dir.applescript
|
"New Folder Name" default answer ¬
|
make_new_dir.applescript
|
"" buttons {"Cancel", "Next"} ¬
|
make_new_dir.applescript
|
"Next" cancel button "Cancel"
|
make_new_dir.applescript
|
set responseText to text returned of theResponse
|
make_new_dir.applescript
|
if responseText is not "" then
|
make_new_dir.applescript
|
set newDirs to newDirs & responseText
|
make_new_dir.applescript
|
if askOnce then
|
make_new_dir.applescript
|
set previousAnswer to ""
|
make_new_dir.applescript
|
set previousAnswer to responseText
|
make_new_dir.applescript
|
return newDirs
|
make_new_dir.applescript
|
end getDirs
|
make_new_dir.applescript
|
on makeDirs(dirNames)
|
make_new_dir.applescript
|
set currentCaptureDir to captures
|
make_new_dir.applescript
|
tell application "Finder" to set captureName to name of folder currentCaptureDir
|
make_new_dir.applescript
|
if captureName is not "Capture" then
|
make_new_dir.applescript
|
set d to currentCaptureDir as alias
|
make_new_dir.applescript
|
set currentCaptureDir to container of d as alias
|
make_new_dir.applescript
|
repeat with newName in dirNames
|
make_new_dir.applescript
|
set newDir to POSIX path of currentCaptureDir & newName
|
make_new_dir.applescript
|
set newDirs to newDirs & newDir
|
make_new_dir.applescript
|
log "Making new dir " & newDir
|
make_new_dir.applescript
|
make new folder at currentCaptureDir with properties {name:newName}
|
make_new_dir.applescript
|
log newDir
|
make_new_dir.applescript
|
end makeDirs
|
make_new_dir.applescript
|
on addFavorites(dirPaths, setCapture)
|
make_new_dir.applescript
|
repeat with dirPath in dirPaths
|
make_new_dir.applescript
|
set captureCollection to make collection with properties {kind:favorite, file:dirPath}
|
make_new_dir.applescript
|
if setCapture is true and (count of dirPaths) is greater than 0 then
|
make_new_dir.applescript
|
set captures to first item in dirPaths
|
make_new_dir.applescript
|
if my resetCaptureCounter and (count of dirPaths) is greater than 0 then
|
make_new_dir.applescript
|
set capture counter to 0
|
make_new_dir.applescript
|
end addFavorites
|
make_new_dir.applescript
|
set the clipboard to "sometext"
|
set the clipboard to.applescript
|
set theOtherTask1 to make new task with properties {name:"Other Task Name1"}
|
test copy 3.applescript
|
set theOtherTask2 to make new task with properties {name:"Other Task Name2"}
|
test copy 3.applescript
|
set savedDelimiter to AppleScript's text item delimiters
|
03-revealing-anchors.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.