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

Click here to return to the 'Create a new Sticky widget from entered text' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a new Sticky widget from entered text
Authored by: llee on May 29, '09 12:52:15PM
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
set the clipboard to text returned of (display dialog "Enter some text for your new Sticky widget..." default answer "Note: ")
end if

[ Reply to This | # ]