• 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: Applescript in the terminal (fwd)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript in the terminal (fwd)


  • Subject: Re: Applescript in the terminal (fwd)
  • From: - <email@hidden>
  • Date: Fri, 19 Apr 2013 10:55:10 -0400 (EDT)


The solution offered to send a keystroke to an open application from within the terminal:

 osascript -e "tell application \"System Events\" to keystroke \"k\""

It worked perfectly. I fired up from the command line a gui application which has a "k" keyboard command and it worked.

Now two more questions please and I will stop being a pesk. How does one do a key combination with the above form such as:

option+command+key

Also how does one do such keys as the arrow and other related keys and f1 - f12 keys etc.? Which brings me to the question of a source on the web where applescript keystroke representations might be listed, and applescript commands in general?

I lied, I just thought of one more question. Can one compile an applescript from within terminal from a simple text file?

Thanks for all hel.
_______________________________________________
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: Applescript in the terminal (fwd)
      • From: Lists <email@hidden>
    • Re: Applescript in the terminal (fwd)
      • From: Steve Thompson <email@hidden>
    • Re: Applescript in the terminal (fwd)
      • From: Doug McNutt <email@hidden>
    • Re: Applescript in the terminal (fwd)
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: correct script won't compile in XCode???
  • Next by Date: Re: Applescript in the terminal (fwd)
  • Previous by thread: Re: Applescript in the terminal (fwd)
  • Next by thread: Re: Applescript in the terminal (fwd)
  • Index(es):
    • Date
    • Thread