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


Click here to return to the 'Paste clipboard contents to secure Safari pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Paste clipboard contents to secure Safari pages
Authored by: richard2 on Jan 26, '08 05:58:37AM

I think I've improved it: :)

delay 3

try
	tell application "System Events" to keystroke (the clipboard)
on error errorDescription number errorIdentifier
	set theMessage to (errorNumber & ": " & errorDescription) as string
	
	display alert "The attempt to paste the contents of the clipboard failed." message theMessage as warning
end try

The delay statement delays execution of a script for a specified number of seconds.

I deleted the statement which clears the contents of the clipboard because it's likely that the user will encounter situations in which he or she needs to paste the passtext more than once.



[ Reply to This | # ]
Paste clipboard contents to secure Safari pages
Authored by: richard2 on Jan 26, '08 06:12:28AM

Oh, I forgot to mention that I changed the purpose of your script.

I intend it to be used to overcome a flaw in Leopard (which Apple claim isn't a flaw) which prevents you from pasting into most secret text fields.



[ Reply to This | # ]