source: gutenbach-itunes-plugin/gutenbach - Volume Set.applescript @ e520009

debianmacno-cupsweb
Last change on this file since e520009 was e520009, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

-Updated the INSTALL file to deal with there being multiple scripts.
-Changed the name from sipbmp3 to gutenbach.

  • Property mode set to 100644
File size: 561 bytes
Line 
1-- Changelog:
2--
3-- 5 April 2009 -> pquimby created initial version
4--
5
6-- Usage:
7--  This script will set the volume of gutenbach (assuming you have remctl) to your iTunes volume scaled to the max value of 31 (which is the max volume for gutenbach at the time this script was written).
8
9-- Ex:// If your iTunes volume is set at 50% then you will set the gutenbach volume to .50*31 or roughly 15.
10
11tell application "iTunes"
12        set vol to (sound volume * 31 / 100)
13end tell
14
15set command to "/usr/local/bin/remctl hostname volume set " & vol
16do shell script command
Note: See TracBrowser for help on using the repository browser.