Re: Used to work
Re: Used to work
- Subject: Re: Used to work
- From: Nigel Garvey <email@hidden>
- Date: Sat, 26 Mar 2011 17:31:30 +0000
KOENIG Yvan wrote on Sat, 26 Mar 2011 16:13:15 +0100:
>set theProcess to FrontmostApp()
>
>tell application theProcess
> activate
> tell application "System Events"
> tell application process theProcess -- EDITED
> keystroke "v" using command down
> delay 1 --give it time to update
> end tell
> end tell
>end tell
>
>on FrontmostApp()
> tell application "System Events" to return displayed name of (path to
>«constant afdregfp»)
>end FrontmostApp
>
>
>I guess that you dropped a singled word in the code.
In fact you don't need mention the process at all. As long as it's
frontmost, it'll receive keystrokes — even when GUI Scripting's turned
off. There's no real need to make the frontmost application frontmost either.
NG
_______________________________________________
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