Re: Insert text and paste command
Re: Insert text and paste command
- Subject: Re: Insert text and paste command
- From: Andrea -XFox- Govoni <email@hidden>
- Date: Thu, 14 Apr 2005 12:37:24 +0200
kai wrote:
In the Script Editor window it works flawlessy, but If I try to
execute the script from the Script Menu when I am in a TextEdit
document, for example, it doesn't work.
It works only inside Script Editor.
It's necessary to follow Andrew's original advice and bring the target
application to the front. This works here:
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... :-)
--
Andrea "XFox" Govoni
ICQ UIN: 43488185
AIM/iChat: email@hidden
Yahoo! ID: xfox82
_______________________________________________
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