There is a "Make New Sticky" applescript in the Pages section of this forum.

Cmd+Shift+Y is the default system-wide shortcut for making a new sticky out of selected text. Nothing can match its reliability. So, the only case in which you would want to use the applescript is when you don't have any selected text i.e. you want some place to type in.

The applescript in the Pages section is time-consuming (since it spends time storing and restoring your clipboard) and even unreliable for users who have large amounts of text on their clipboard or selection because of applescript's behavior of jumping to a next line(which includes exit code) of code before waiting for the execution of the previous line.

I guess, this script is a better alternative:
(Set it a shortcut like Cmd+Shift+<Option or Ctrl)+Y. So that Cmd+Shift+Y can use selection to make a new sticky note and
Cmd+Shift+<Option or Ctrl)+Y can make a empty new sticky note.)

tell application "Stickies" to activate
tell application "System Events"
   tell process "Stickies"
       tell window 1
           delay 0.5
           keystroke "n" using command down
           end tell
   end tell
end tell


But, if you still want to use Quicksilver, then use this:


using terms from application "Quicksilver"
   on process text t
       tell application "Stickies" to activate
       tell application "System Events"
           tell process "Stickies"
                tell window 1
                   delay 0.5
                   keystroke "n" using command down
                   tell scroll area 1
                        set value of text area 1 to t
                       delay 0.5
                       end tell
               end tell
           end tell
       end tell
       tell application "Stickies" to quit
   end process text
end using terms from




Reply via email to