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


Click here to return to the 'to save the Cmd V step' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
to save the Cmd V step
Authored by: Safar on Feb 12, '04 02:27:43AM

tell application "Finder" to set frontApp to (name of 1st process whose frontmost = true)
tell application frontApp
	activate
	set clip to «class ktxt» of ((the clipboard as text) as record)
	tell application "System Events" to keystroke clip
end tell
and when the script is called, it will directly paste the content of the clipboard as text. I think the script should be saved as a compiled scripted, not an application, but i'm not sure

[ # ]
to save the Cmd V step
Authored by: Safar on Feb 12, '04 03:48:48AM
actually my former script behaves most strangely on my French mac. This one is better

pbpaste | pbcopy
 osascript -e 'tell application "System Events" to keystroke "v" using {command down}'


[ # ]