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
Copy text to the clipboard
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Copy text to the clipboard
Subject
:
Copy text to the clipboard
From: "John R." <
email@hidden
>
Date: Thu, 1 Dec 2005 13:37:00 -0500
I want to copy selected text into my script from ANY active application. I need to tell the current application to <get selection>, or I need to use GUI scripting via: <keystroke "c" using command down>. But I can't find the name of the active application or process...
tell application "System Events"
set x to (name of application processes whose frontmost is true)
display dialog item 1 of x
end tell
---> "ScriptEditor" when run under Script Editor;
---> "System Events" when run from the any application via the script menu.
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?
_______________________________________________
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
Follow-Ups
:
Re: Copy text to the clipboard
From:
kai <email@hidden>
Re: Copy text to the clipboard
From:
"Brett K." <email@hidden>
Prev by Date:
Re: Does anybody know a fast method to get out myIP?
Next by Date:
Re: Does anybody know a fast method to get out myIP?
Previous by thread:
Re: Does anybody know a fast method to get out myIP?
Next by thread:
Re: Copy text to the clipboard
Index(es):
Date
Thread