[robg adds: This worked for me as described on my Mac Pro (no editing of the delays was required).]
|
|
|
The following AppleScript asks you for some text, copies it to the clipboard, then creates a new Sticky widget and pastes the text you entered. Here's the code:
The two delay lines may need adjustment for different systems; experiment to find what works for you. Once you have the script working, use something like Fastscripts, QuickSilver, Proxi, QuicKeys, etc. to assign it a keyboard shortcut for fast activation. This should work in either Tiger or Leopard.
[robg adds: This worked for me as described on my Mac Pro (no editing of the delays was required).]
•
[11,890 views]
Hint Options
Create a new Sticky widget from entered text
If I need to make a sticky on the fly I usually type some text somewhere and hit cmd + shift + y
Create a new Sticky widget from entered text
⇧⌘Y is used to create a sticky note in Stickies.app. This hint works with Dashboard's Stickies widget, which has noting to do with Stickies.app (unfortunately).
Create a new Sticky widget from entered text
I , too, use the CMD-SHIFT-y shortcut, and the Stickies app, because I find it suits my needs better. I'm grateful for the Stickies app and for that keyboard shortcut. Very useful; thanks Apple!
Create a new Sticky widget from entered text
Works over here. Very nice thanks.
Create a new Sticky widget from entered text
Alternatively, if you want to make a sticky from previously copied text, you could simply remove (or comment) the first part:
This way, you copy some text, invoke the script and your good.
Thanks for sharing!
Create a new Sticky widget from entered text
...or to be "sticky-safe", you could change it to something like:
Create a new Sticky widget from entered text
Note that since 10.5 all AppleScript string handling is in Unicode and 'string' and 'Unicode text' are both synonyms for 'text'.
Create a new Sticky widget from entered text
Replacing
with
will execute faster, and allow you to reduce the one second delay to something short like 0.2 seconds, and (at least on my machine) eliminate the two later delays.
Also, if you want to make sticky widgets without affecting the contents of the clipboard, use this version instead:
For Quicksilver users here is a version that works directly with text entered into Quicksilver's first pane (thus eliminating the need for a dialog box):
Finally, for people who think in the opposite order (open a Sticky, then type the text), but are tired of how much work it takes to create a new sticky note in Dashboard, I suggest trying New Sticky. (Yeah, I made it, but its freeware, so I feel no shame in plugging for it!)
Create a new Sticky widget from entered text
If you use QuicKeys to trigger the script, add "activate" as a new line at the beginning of the script to avoid a possible scope clash.
If you don't mind an extra step, you can wrap the set clipboard line in this "if" statement to provide the choice of typing or using the clipboard. Don't put too much text on the clipboard, of course. if button returned of (display dialog "Type new sticky or use current clipboard contents?" buttons {"Type", "Use clipboard", "Cancel"} default button 1) is "Type" then
Create a new Sticky widget from the Dock
I just tried something: Navigate to /Library/Widgets. Drag the Stickies widget to the right side of the Dock. Click it for a new Dashboard Sticky! Looks like you can press tab twice to get the focus to it to start typing or paste. You probably want to move the note away from the default place at the center to not be under the next new sticky.
well, since we're having fun with Stickies...
following up on u2mr2os2's post, if you're willing to do a little editing you can make this work. do the following:
it will look like this, when you're done:
Make sure the changes you make in the files are saved, and (may or may not be necessary, but can't hurt) kill the dock and let it restart. now every time you double-click on the StickiesPlus icon it will make a new sticky in dashboard with the contents of the clipboard. you could even make an applescript like so:
You can run that script from the script menu (or quicksilver, or etc) to automatically copy the selection in the foreground app and load it into a dashboard sticky. I think it will only work for text - possible limitation of pbpaste - but I haven't really tested it much.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 1.16 seconds |
|