Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

gitatmax commented Nov 23, 2020

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