Applescript Clipboard Confusion
I am trying to write a simple applescript that allows you to see the clipboard as a dialog and set it to " " (clear it).
So far I have:
set theText to (the clipboard)
display dialog theText buttons {"Clear Clipboard", "Ok"} default button 2
if button returned of the result = "button 1" then tell application "Finder" to set (the clipboard) to " "
but the script doesn't set the clipboard to " " at all - it just leaves it alone,
Help wanted for confused amateur!
MacBook Pro, Mac OS X (10.6.2)