New Daily note in Simplenote via AppleScript
This file contains 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
-- create a string from the current date | |
set todaysDate to (current date) as string | |
-- open simplenote and make it the active window | |
tell application "Simplenote" | |
activate | |
end tell | |
-- use system events to | |
-- "type" CMD+N | |
-- "type" in the current date | |
tell application "System Events" | |
keystroke "n" using {command down} | |
keystroke "Daily note: " | |
keystroke (todaysDate) | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for sharing!