Skip to content

Instantly share code, notes, and snippets.

@juliachn
Created March 3, 2024 12:20
Show Gist options
  • Save juliachn/cd8ac57c3f9670415cc68a649a7cf753 to your computer and use it in GitHub Desktop.
Save juliachn/cd8ac57c3f9670415cc68a649a7cf753 to your computer and use it in GitHub Desktop.
Create stickies from terminal by calling `sticky <text you want to be written in the sticky>`. And stick it in the top right corner.
on run argv
tell application "Stickies" to activate
tell application "System Events"
tell process "Stickies"
tell window 1
delay 0.5
keystroke "n" termiusing command down
keystroke (item 1 of argv)
set position to {1100, 3}
end tellx
delay 0.5
tell menu bar 1
tell menu bar item "Colour"
tell menu "Colour"
click menu item "Green"
end tell
end tell
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment