• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scriptable multi-clipboard utility?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scriptable multi-clipboard utility?


  • Subject: Re: Scriptable multi-clipboard utility?
  • From: "koenig.yvan" <email@hidden>
  • Date: Sat, 08 Mar 2014 12:27:37 +0100

Edited version :

tell application "System Events"
file of first process whose frontmost is true
set frontApp to text 1 thru -5 of (get name of result)
end tell

set fullClipText to (the clipboard as text)

try
set maybe to ((choose from list paragraphs of fullClipText) as text)


if maybe is not "false" then
set the clipboard to maybe
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
end if
end try


It doesn't use the name of the process which may be different of the application's name.
It doesn't  change/reset the clipboard's contents if the user decide to Cancel.

Yvan KOENIG (VALLAURIS, France) samedi 8 mars 2014 12:27:30





 _______________________________________________
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

  • Follow-Ups:
    • Re: Scriptable multi-clipboard utility?
      • From: "koenig.yvan" <email@hidden>
References: 
 >Scriptable multi-clipboard utility? (From: Michael Grant <email@hidden>)
 >Re: Scriptable multi-clipboard utility? (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: Scriptable multi-clipboard utility?
  • Next by Date: Re: Scriptable multi-clipboard utility?
  • Previous by thread: Re: Scriptable multi-clipboard utility?
  • Next by thread: Re: Scriptable multi-clipboard utility?
  • Index(es):
    • Date
    • Thread