Incremental volume adjustments with AppleScript?
Hello All
I would like an AppleScript that would increase volume as if i was hitting Shift+options+F12. Does anyone know how to do this?
Cheers
OS X Mountain Lion (10.8.4), AppleScript
Hello All
I would like an AppleScript that would increase volume as if i was hitting Shift+options+F12. Does anyone know how to do this?
Cheers
OS X Mountain Lion (10.8.4), AppleScript
Use the set volume command in the standard additions osax:
set volumeoutput volumexx
note that the set volume command uses increments from 0-100, whereas the key-combo has sixteen increments, so each key-combo increment is a little over 6 increments in the command.
Thanks but not exactly what i was after, I would like the graphical feedback that is showen when using the Shift+options+F12 command.
Look for a keyboard re-mapper or change shift + option + f12 to a different key combination.
Robert
But how would i remap a media key? When you hit the key to map it it just changes the volume and the command is not caught by the remapping app.
You'll need to explain in more detail what it is you are trying to do.
twtwtw gave the Applescript way to do this and your title does ask how to do this with Applescript, so…
What graphical feedback are you looking for? If you want to have your script adjust volume in a graphical manner you could add a slider to the scripts UI vi Applescript/Objective-C
regards
Sorry I thought I had made it clear enough, what I want is an applescript that i can evoke which will simulate the "Shift+options+F12" command exactly. So I'm after the standard audial and visual feedback (the popping sound and the grey indicator square which appears when adjusting the volume). I was hoping to be able to tell applescript to hit the key combo I'm after however I found it difficult to map the f12 key as a media key as opposed to f12.
Are you saying that you want Shift+options+F12 and some other to to both adjust the volumn?
Here is how got two view desktop keys.
Turn off the desktop key.
2) pick some keyboard re-mapping app.
----------------
Keyboard Maestro is a powerful macro program for Mac OS X (including Tiger and Leopard) which has received glowing reviews. Keyboard Maestro will take your Macintosh experience to a new level in “Ease of Use”. With Keyboard Maestro you can design a custom action sequence with your own shortcuts and use them at any time, you can navigate through running applications and open windows with Program Switcher, and you can work with an unlimited number of clipboards - all by pressing simple keystrokes.
http://www.keyboardmaestro.com/main/
-----------------
"Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, command iTunes, and more... You can also export and import your Hot Keys library, or save it in HTML format to print it. Spark is free, so use it without moderation"
http://www.versiontracker.com/dyn/moreinfo/macosx/22675
----------------------
"iKey is an automation utility, a program that creates shortcuts to accomplish repetitive tasks. In essence, an iKey shortcut is a little program in its own right, but you don't need to know the first thing about programming to create an iKey shortcut. All you have to do is put together three necessary parts of a shortcut: One or more commands that give the shortcut its functionality, a context in which it runs, and a launcher that defines how the shortcut is activated."
http://www.scriptsoftware.com/ikey/
----------------------
3) configure you keyboard remapping app to map some key to Shift+options+F12
4) turn view desktop f11 back on.
Robert
Incremental volume adjustments with AppleScript?