Re: Applescript in the terminal (fwd)
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