• 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: Copy text to the clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy text to the clipboard


  • Subject: Re: Copy text to the clipboard
  • From: "Brett K." <email@hidden>
  • Date: Thu, 01 Dec 2005 15:19:42 -0500

[2005-12-01 13:37-0500] John R. wrote:

How do I ask politely for the "process that was active just before I ran this script"?! Is there a better way to copy selected text to the clip board

This is how I do it:

tell application "System Events"

    set theProcess to every process whose frontmost is true

    tell process theProcess to keystroke "c" using command down

end tell

[Mac OS X 10.4.3]

--
Brett

Thunderbird: Reclaim Your Inbox
<http://www.GetThunderbird.com/>

Firefox: Rediscover the Web
<http://www.GetFirefox.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Copy text to the clipboard (From: "John R." <email@hidden>)

  • Prev by Date: XCode 2 Applescript app won't launch on 10.2.8
  • Next by Date: Shell script timing, regex
  • Previous by thread: Copy text to the clipboard
  • Next by thread: Re: Copy text to the clipboard
  • Index(es):
    • Date
    • Thread