Re: Applescript in the terminal (fwd)
Re: Applescript in the terminal (fwd)
- Subject: Re: Applescript in the terminal (fwd)
- From: Alex Zavatone <email@hidden>
- Date: Wed, 17 Apr 2013 21:34:44 -0400
You can also issue a do shell script which executes the script but doesn't sent it to the terminal.
On Apr 17, 2013, at 8:15 PM, - wrote:
>
> Hello,
>
> I'm new to the list and to applescript. I do a great deal of my computer use in the terminal of my mac. I discovered one can use a command to evoke applescript. Here is the example I use to control the system audio volume:
>
> osascript -e "set Volume 2"
>
> The number is the relative volume level, 0 is silence. I set a function with the above to easily change it in the terminal.
>
> Often when using a gui application in the bg I want to send a keystroke, or combination, to the open application from within the terminal along the lines of the above.
>
> Is there an applescript command, or set of them, to send keystrokes in this manner? Let us say for example to send the application the "k" keystroke.
>
> Thanks,
>
> Dan
>
> XB
> _______________________________________________
> 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
_______________________________________________
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