• 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
Is there a way to send a keystroke to a background app without an AppleScript dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a way to send a keystroke to a background app without an AppleScript dictionary?


  • Subject: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
  • From: Jim Krenz via AppleScript-Users <email@hidden>
  • Date: Sun, 26 Apr 2020 16:46:53 -0700

Hello all,

Is there a way to send a keystroke to a background app without an AppleScript
dictionary?

From what I can tell, the Podcasts app does not have a AppleScript dictionary.

What I want to do, is to send a keystroke (⌘ ⇧ →) to the Podcasts app, without
activating it.

Here is what I have thus far (but it does not work):

tell application "System Events"
        tell process "Podcasts"
                key code 124 using {shift down, command down}
        end tell
end tell

Thanks for any ideas or suggestion on how to do the above.

Sincerely,

Jim
 _______________________________________________
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

  • Follow-Ups:
    • Re: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
  • Prev by Date: Re: AppleScript to launch application with command line parameters
  • Next by Date: Re: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
  • Previous by thread: Re: AppleScript to launch application with command line parameters
  • Next by thread: Re: Is there a way to send a keystroke to a background app without an AppleScript dictionary?
  • Index(es):
    • Date
    • Thread