• 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: Used to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Puzzled by a whose filter
  • Next by Date: Re: Puzzled by a whose filter
  • Previous by thread: Re: Used to work
  • Next by thread: Puzzled by a whose filter
  • Index(es):
    • Date
    • Thread