source: gutenbach-itunes-plugin/sipbmp3 - Volume Get.applescript @ bd7b4f8

debianmacno-cupsweb
Last change on this file since bd7b4f8 was bd7b4f8, checked in by Paul Quimby <pquimby@…>, 15 years ago

Added additional scripts for volume control, muting, viewing the queue, and removing music. Updated installation instructions and removed the invididual installation instructions in favor of the install doc.

  • Property mode set to 100644
File size: 625 bytes
Line 
1-- ------------------
2-- iTunes -> sipbmp3
3-- ------------------
4
5-- Changelog:
6--
7-- 10 Oct 2009 -> pquimby created initial version
8--
9
10--For installation instructions see the INSTALL file in the snippets/sipbmp3-iTunes folder
11
12-- Usage:
13--  This script will get the volume of sipbmp3 and put it on your iTunes volume scaled to the max value of 31 (which is the max volume for sipbmp3 at the time this script was written).
14
15
16tell application "iTunes"
17        set currentVolume to (do shell script "/usr/local/bin/remctl zsr volume get")
18        set currentVolume to currentVolume / 31 * 100
19        set the sound volume to currentVolume
20end tell
Note: See TracBrowser for help on using the repository browser.