Re: Insert text and paste command
Re: Insert text and paste command
- Subject: Re: Insert text and paste command
- From: "Dr. Barbara Mueller" <email@hidden>
- Date: Thu, 14 Apr 2005 12:46:39 +0200
set myText to "Supercalifragilisticexpialidocious"
tell application "System Events"
set frontmost of process "TextEdit" to true
keystroke myText
end tell
Ok, thanks kai, this works in TextEdit but I need that it works in
every application.
So the following logical question is: is there a way to determine
the name of the fronmost application?
I'll search it by myself, but if anyone knows... :-)
Try this:
tell application "Finder" to set theApp to name of (every process
whose frontmost is true) as string
Barbara
--
***************************************************************
Dr. sc. nat. ETH Barbara Mueller
Institute for Geotechnical Engineering * ETH Hoenggerberg
8093 Zuerich (Switzerland)
Tel. ++41 (0)44 633 25 58 * Fax ++ 41 (0)44 633 10 79
e-mail: email@hidden
***************************************************************
_______________________________________________
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