Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Sticky Widget from Selected Text Apps
There's a recent Macworld article for quickly making Stickies. I thought that some folks might want to make Sticky Widgets instead.

This is derived from my hint posted a few years ago.

Depending on your system version (and possibly other factors), you may need to launch Dashboard at least once if you haven't since system startup before trying the Service.

Here are the simple steps:
  • Open Automator and create an empty Mac OS X Service document. In the document window set the first popup to text and the second pop-up to any application.
  • Drag a Run AppleScript action into the right side of the Automator document window. Then paste the following line into the Run AppleScript step just beneath the (* Your script goes here *) line:
        set inputText to (input as text)  
        do shell script "open /Library/Widgets/Stickies.wdgt"
        delay 0.2
        tell application "System Events"
          keystroke tab
          keystroke tab
          keystroke inputText
        end tell
  • Save the Service document as 'Sticky Widget from selected text,' then open the Keyboard prefpane.
  • In the Keyboard Shortcuts segment tab, click Services, and put Command+Ctrl+Shift+S into the shortcut area for the Sticky Widget from selected text entry in the list. Close the prefpane (the keyboard trigger is just a suggestion - you can use others, just be sure to test, because whether a shortcut works or not can be affected by lots of things).

[crarko adds: I tested this (without the shortcut), and it works as described.]
  • Currently 1.75 / 5
  You rated: 2 / 5 (4 votes cast)

Sticky Widget from Selected Text | 3 comments | Create New Account
Click here to return to the 'Sticky Widget from Selected Text' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sticky Widget from Selected Text
Authored by: llee on Jan 25, '12 07:54:10AM

I think the delay factor in the script may need to be adjusted for some folks. I increased mine to 1.5.

[ Reply to This | # ]
Sticky Widget from Selected Text
Authored by: ardy8888 on Jan 26, '12 10:07:46AM

I'm not big into the dashboard. I edited this script so that it launches the Stickies application in stead of the Sticky Widget. Works well except that the text copied loses any carriage returns which squishes all the test into one long line. Need to figure out how to do an actual Command + C, open the Stickies app and then do a Command + N to open a new Sticky note and then a Command + V to paste the contents

[ Reply to This | # ]
Sticky Widget from Selected Text
Authored by: llee on Jan 31, '12 08:25:06AM

If you just want a shortcut for adding a sticky note, use the suggestion from the Macworld article I mentioned in the hint intro (Quickly Create New Sticky Notes). Just select text and press cmd-shift-Y, unless you've disabled the default Mac OS X Service item using the Keyboard prefpane.

[ Reply to This | # ]