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 "OmniFocus" | |
tell default document | |
set p to first flattened project whose name is "Weekly Review" | |
set theDate to do shell script "date +'%F'" | |
set p2 to duplicate p to after p | |
set name of p2 to name of p2 & " " & theDate | |
set status of p2 to active | |
if visible of front document window is true then | |
set perspective name of document window 1 to "Weekly" | |
else |
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
of = Library('Omnifocus') | |
sel = of.selected() | |
app = Application('OmniFocus') | |
app.includeStandardAdditions = true | |
system = Application.currentApplication() | |
system.includeStandardAdditions = true | |
sel.forEach(function(task) { | |
of.complete([task]) | |
name = task.name() |
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 "Mail" | |
set _sel to get selection | |
set _links to {} | |
repeat with _msg in _sel | |
set _messageURL to "message://%3c" & _msg's message id & "%3e" | |
set end of _links to _messageURL | |
end repeat | |
set AppleScript's text item delimiters to return | |
set the clipboard to (_links as string) | |
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
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
-- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password | |
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
-- 4. Enable Applescript Editor and System UI Server | |
-- 5. Trigger script from the menu | |
-- 6. Enjoy being connected | |
tell application "Cisco AnyConnect Secure Mobility Client" | |
activate | |
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
tell application "OmniFocus" | |
tell quick entry | |
open | |
make new inbox task | |
tell application "System Events" to keystroke tab | |
activate | |
end tell | |
end tell |