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

This comment has been minimized.

Copy link

@gitatmax gitatmax commented Nov 23, 2020

Thank you for sharing!

@cdevroe

This comment has been minimized.

Copy link
Owner Author

@cdevroe cdevroe commented Nov 23, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.