A
A
Askhat Bikmetov2013-12-07 22:51:18
macOS
Askhat Bikmetov, 2013-12-07 22:51:18

Media Key Events in AppleScript?

I want to optimize the volume control in Mavericks a little, therefore the question raised in the topic arose. The information on how to request the current volume level using AppleScript will also help.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Mir, 2014-02-12
@facetheheat

(*
volume 7 == 100%
*)
Terminal.app
osascript -e "set volume 7"
osascript -e "get (output volume of (get volume settings))"
AppleScript Edittor.app
get (output volume of (get volume settings ) ))
set volume 7
Set the volume from 1 to 7, get the value as a percentage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question