-
-
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.
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
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