From 5750512bf89936829d9fdb86cdd471dc2a833d71 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 29 Nov 2009 17:52:56 -0500 Subject: [PATCH] Remove sipbmp3-itunes.bak, now that /mit/snippets supports submodules. Signed-off-by: Geoffrey Thomas --- README | 11 ++-- sipbmp3-itunes.bak/INSTALL | 52 ------------------- .../sipbmp3 - Get Queue.applescript | 21 -------- .../sipbmp3 - Queue Music.applescript | 50 ------------------ .../sipbmp3 - Remove All.applescript | 15 ------ .../sipbmp3 - Toggle Mute.applescript | 20 ------- .../sipbmp3 - Volume Get.applescript | 20 ------- .../sipbmp3 - Volume Set.applescript | 16 ------ 8 files changed, 8 insertions(+), 197 deletions(-) delete mode 100644 sipbmp3-itunes.bak/INSTALL delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Get Queue.applescript delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Queue Music.applescript delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Remove All.applescript delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Toggle Mute.applescript delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Volume Get.applescript delete mode 100644 sipbmp3-itunes.bak/sipbmp3 - Volume Set.applescript diff --git a/README b/README index 0de1460..64c8f29 100644 --- a/README +++ b/README @@ -9,9 +9,14 @@ cd snippets git commit item git push -If you're not on gsipb and want to commit, ask e.g. geofft for access. You -can't write to the top level checkout here, but if you push (to the master -branch) from your own checkout, it will automatically update this checkout. +If you're not on gsipb and want to commit, ask geofft (or someone on +sipb-acl) to add you to snippets-committers. You can't write to +/mit/snippets directly, but if you push (to the master branch) from your +own checkout, it will automatically update this checkout. There's a (currently very simple) web interface at http://snippets.scripts.mit.edu/ + +snippets has support for submodules, if things outgrow this repository. +You can use 'git submodule update --init' to populate them if you want, +or look at .gitmodules to find where they live now. diff --git a/sipbmp3-itunes.bak/INSTALL b/sipbmp3-itunes.bak/INSTALL deleted file mode 100644 index 06259e3..0000000 --- a/sipbmp3-itunes.bak/INSTALL +++ /dev/null @@ -1,52 +0,0 @@ ------------------ -iTunes -> sipbmp3 ------------------ -This is a simple little script which sends -music from an iTunes library to the sipbmp3 -lpr server. - -* Changelog -23 Aug 2009 -> broder spun loop into shell script instead of - applescript so that iTunes doesn't hang -9 Jan 2009 -> price added 'quoted form' -7 Jan 2009 -> kmill created initial version - -* System Requirements -This script will only work under Mac OS X as -it uses AppleScript. - -* Installation -There are two parts: - -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. - -2) Create the directory ~/Library/iTunes/Scripts - and place the "Send to sipbmp3.scpt" file - within. - -* Usage -When in iTunes, select the songs which you -would like to hear in the office, and click -"Send to sipbmp3" in the script menu from -the menu bar. The script menu looks like a -little scroll icon. There will be no -feedback beyond the pleasant sounds you now -hear around you. - -* Todo -As it is, there is no feedback, even in the -event of failure. This is decidedly not -optimal. - -* And so... -Do whatever you want with it. I'd like to -have a copy if you extend it. - -Kyle Miller -kmill@mit.edu - diff --git a/sipbmp3-itunes.bak/sipbmp3 - Get Queue.applescript b/sipbmp3-itunes.bak/sipbmp3 - Get Queue.applescript deleted file mode 100644 index 4e40ad9..0000000 --- a/sipbmp3-itunes.bak/sipbmp3 - Get Queue.applescript +++ /dev/null @@ -1,21 +0,0 @@ --- ----------------- --- iTunes -> sipbmp3 --- ----------------- --- This is a simple little script which gets the current queue on sipbmp3-- --- Changelog: --- --- 10 Oct 2009 -> pquimby created this script --- --- Installation: --- For installation instructions see the INSTALL file in the snippets/sipbmp3-iTunes folder-- - --- --- Usage: --- --- Run this script from iTunes - -set message to (do shell script "lpq -Psipbmp3") -tell application "iTunes" - display dialog "sipbmp3 currently is playing: " & " -" & message buttons "OK" default button "OK" -end tell diff --git a/sipbmp3-itunes.bak/sipbmp3 - Queue Music.applescript b/sipbmp3-itunes.bak/sipbmp3 - Queue Music.applescript deleted file mode 100644 index 2a0a707..0000000 --- a/sipbmp3-itunes.bak/sipbmp3 - Queue Music.applescript +++ /dev/null @@ -1,50 +0,0 @@ --- ----------------- --- iTunes -> sipbmp3 --- ----------------- --- This is a simple little script which sends --- music from an iTunes library to the sipbmp3 --- lpr server. --- --- Changelog: --- --- 23 Aug 2009 -> broder spun loop into shell script instead of --- applescript so that iTunes doesn't hang --- 9 Jan 2009 -> price added 'quoted form' --- 7 Jan 2009 -> kmill 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. --- --- 2) Create the directory ~/Library/iTunes/Scripts --- and place the "Send to sipbmp3.scpt" file --- within. --- --- Usage: --- --- When in iTunes, select the songs which you --- would like to hear in the office, and click --- "Send to sipbmp3" in the script menu from --- the menu bar. The script menu looks like a --- little scroll icon. There will be no --- feedback beyond the pleasant sounds you now --- hear around you. - -set ts to "" - -tell application "iTunes" - repeat with t in selection - if class of t is (file track) then - set loc to POSIX path of (get location of t) - set ts to ts & " " & (quoted form of loc) - end if - end repeat -end tell - -set command to "(for t in " & ts & "; do lpr -o raw -Psipbmp3 \"$t\"; done) >/dev/null 2>&1 sipbmp3 --- ------------------ - --- Changelog: --- --- 10 Oct 2009 -> pquimby created initial version --- - --- For installation instructions see the INSTALL file in the snippets/sipbmp3-iTunes folder-- - --- Usage: --- This script will remove all of your songs queued to sipbmp3 - -do shell script "lprm -Psipbmp3 -" \ No newline at end of file diff --git a/sipbmp3-itunes.bak/sipbmp3 - Toggle Mute.applescript b/sipbmp3-itunes.bak/sipbmp3 - Toggle Mute.applescript deleted file mode 100644 index 15838c6..0000000 --- a/sipbmp3-itunes.bak/sipbmp3 - Toggle Mute.applescript +++ /dev/null @@ -1,20 +0,0 @@ --- ----------------- --- iTunes -> sipbmp3 --- ----------------- - --- Changelog: --- 10 Nov 2009 -> pquimby created initial version - --- Installation: --- For installation instructions see the INSTALL file in the snippets/sipbmp3-iTunes folder-- - --- Usage: --- --- Running this script will toggle the mute on sipbmp3 on or off. - -tell application "iTunes" - set vol to sound volume -end tell - -set command to "/usr/local/bin/remctl zsr volume set " & vol -do shell script command \ No newline at end of file diff --git a/sipbmp3-itunes.bak/sipbmp3 - Volume Get.applescript b/sipbmp3-itunes.bak/sipbmp3 - Volume Get.applescript deleted file mode 100644 index 2ccbfff..0000000 --- a/sipbmp3-itunes.bak/sipbmp3 - Volume Get.applescript +++ /dev/null @@ -1,20 +0,0 @@ --- ------------------ --- iTunes -> sipbmp3 --- ------------------ - --- Changelog: --- --- 10 Oct 2009 -> pquimby created initial version --- - ---For installation instructions see the INSTALL file in the snippets/sipbmp3-iTunes folder - --- Usage: --- 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). - - -tell application "iTunes" - set currentVolume to (do shell script "/usr/local/bin/remctl zsr volume get") - set currentVolume to currentVolume / 31 * 100 - set the sound volume to currentVolume -end tell \ No newline at end of file diff --git a/sipbmp3-itunes.bak/sipbmp3 - Volume Set.applescript b/sipbmp3-itunes.bak/sipbmp3 - Volume Set.applescript deleted file mode 100644 index 2ba66c6..0000000 --- a/sipbmp3-itunes.bak/sipbmp3 - Volume Set.applescript +++ /dev/null @@ -1,16 +0,0 @@ --- Changelog: --- --- 5 April 2009 -> pquimby created initial version --- - --- 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