Skip to content

Instantly share code, notes, and snippets.

@cdevroe
Created November 19, 2020 16:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdevroe/7b299a69c02a6ca5e37c9100fddea316 to your computer and use it in GitHub Desktop.
Save cdevroe/7b299a69c02a6ca5e37c9100fddea316 to your computer and use it in GitHub Desktop.
New Daily note in Simplenote via AppleScript
-- 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
@gitatmax
Copy link

Thank you for sharing!

@cdevroe
Copy link
Author

cdevroe commented Nov 23, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment