From b298b1c6109c137080c8739d5b08d80a8328ecba Mon Sep 17 00:00:00 2001 From: Paul Quimby Date: Sun, 5 Apr 2009 00:28:41 -0400 Subject: [PATCH] Added the set volume script --- sipbmp3-itunes/Set sipbmp3 volume.applescript | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sipbmp3-itunes/Set sipbmp3 volume.applescript diff --git a/sipbmp3-itunes/Set sipbmp3 volume.applescript b/sipbmp3-itunes/Set sipbmp3 volume.applescript new file mode 100644 index 0000000..f6423c9 --- /dev/null +++ b/sipbmp3-itunes/Set sipbmp3 volume.applescript @@ -0,0 +1,29 @@ +-- Changelog: +-- +-- 5 April 2009 -> pquimby created initial version +-- +-- Installation: +-- +-- 1) Launch the Printer Setup Utility and add +-- an IP Printer with the LPD protocol with +-- the following information: +-- Address: zygorthian-space-raiders.mit.edu +-- Queue: sipbmp3 +-- It is not necessary to specify the driver. +-- Be sure the name of the printer is sipbmp3 or +-- +-- 2) Create the directory ~/Library/iTunes/Scripts +-- and place the "Send to sipbmp3.scpt" file +-- within. +-- +-- Usage: +-- This script will set the volume of sipbmp3 (assuming you have remctl) to your iTunes volume scaled to the max value of 31 (which is the max volume for sipbmp3 at the time this script was written). + +-- Ex:// If your iTunes volume is set at 50% then you will set the sipbmp3 volume to .50*31 or roughly 15. + +tell application "iTunes" + set vol to (sound volume * 31 / 100) +end tell + +set command to "/usr/local/bin/remctl zsr volume set " & vol +do shell script command \ No newline at end of file -- 2.44.0