Re: Scriptable multi-clipboard utility?
Re: Scriptable multi-clipboard utility?
- Subject: Re: Scriptable multi-clipboard utility?
- From: Michael Grant <email@hidden>
- Date: Sat, 08 Mar 2014 00:17:29 -0600
Actually I think I figured it out without using a separate utility. This is without any error or sanity checking, but seems to work in very basic testing:
tell application "System Events"
set frontApp to (name of (processes where it is frontmost)) as text
end tell
set fullClipText to (the clipboard as text)
set clipPars to paragraphs of fullClipText
set the clipboard to ((choose from list clipPars) as text)
delay 1
tell application frontApp
activate
tell application "System Events" to keystroke "v" using {command down}
end tell
delay 1
set the clipboard to fullClipText
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden