This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Papers" | |
activate | |
set theKeywordList to {"New"} | |
set pubList to every publication item | |
repeat with eachPub in pubList | |
set theKeywords to keyword names of eachPub | |
if theKeywords is not "" then | |
if theKeywords is not in theKeywordList then | |
copy theKeywords to end of theKeywordList |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" to set theFolderList to files of folder POSIX file "/path/to/your/folder/" as alias list | |
set theProjectName to "New Project" | |
tell application "Things3" | |
make new project with properties {name:theProjectName} | |
end tell | |
repeat with x in theFolderList | |
set thePath to POSIX path of x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Things3" | |
set theToDos to to dos of list "Today" | |
repeat with eachToDo in theToDos | |
if name of eachToDo contains "Readings_" then | |
set theChapter to name of eachToDo as string | |
set status of eachToDo to completed | |
set thePath to notes of eachToDo | |
end if | |
end repeat | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- main.scpt | |
-- Cocoa-AppleScript Applet | |
-- | |
-- Copyright 2011 {Your Company}. All rights reserved. | |
-- This is the main script for a Cocoa-AppleScript Applet. | |
-- You can put the usual script applet handlers here. | |
use AppleScript version "2.4" | |
use scripting additions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Things3" | |
set theTag to "⏰" | |
set theAnytimeToDos to to dos of list "Anytime" | |
set theUpcomingToDos to to dos of list "Upcoming" | |
set theToDos to theAnytimeToDos & theUpcomingToDos | |
repeat with aTodo in theToDos | |
set theDue to due date of aTodo | |
if theDue is not missing value then | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Things3" | |
set theTag to "@" | |
set theAnytimeToDos to to dos of list "Anytime" | |
set theUpcomingToDos to to dos of list "Upcoming" | |
set theToDos to theAnytimeToDos & theUpcomingToDos | |
repeat with aTodo in theToDos | |
set theName to name of aTodo | |
if theName contains "email" then | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Things3" | |
set theTag to "📞" | |
set theAnytimeToDos to to dos of list "Anytime" | |
set theUpcomingToDos to to dos of list "Upcoming" | |
set theToDos to theAnytimeToDos & theUpcomingToDos | |
repeat with aTodo in theToDos | |
set theName to name of aTodo | |
if theName contains "call" then | |
if theName does not contain "submission" then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cxviewer to my is_running("Citrix Viewer") | |
- | |
if cxviewer is true then | |
tell application "Citrix Viewer" | |
activate | |
end tell | |
tell application "System Events" | |
--your username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set todayDate to (current date) | |
set theWeekday to weekday of todayDate | |
if theWeekday = Sunday then | |
set thisweeksSunday to todayDate | |
else | |
set thisweeksSunday to my DateOfThisInstanceOfThisWeekdayBeforeOrAfterThisDate(todayDate, Sunday, -1) | |
end if |
OlderNewer