Changeset e520009


Ignore:
Timestamp:
Nov 29, 2009, 7:15:02 PM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
a411a9f
Parents:
bd7b4f8
git-author:
Jessica B. Hamrick <jhamrick@…> (11/29/09 19:15:02)
git-committer:
Jessica B. Hamrick <jhamrick@…> (11/29/09 19:15:02)
Message:

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

Location:
gutenbach-itunes-plugin
Files:
1 added
1 deleted
1 edited
5 moved

Legend:

Unmodified
Added
Removed
  • gutenbach-itunes-plugin/INSTALL

    ra9e08a4 re520009  
    11-----------------
    2 iTunes -> sipbmp3
     2iTunes -> gutenbach
    33-----------------
    44This is a simple little script which sends
    5 music from an iTunes library to the sipbmp3
     5music from an iTunes library to the gutenbach
    66lpr server.
    77
    88* Changelog
     929 Nov 2009 -> changed the name from sipbmp3 to gutenbach
    91023 Aug 2009 -> broder spun loop into shell script instead of
    1011    applescript so that iTunes doesn't hang
     
    2223   an IP Printer with the LPD protocol with
    2324   the following information:
    24     Address: zygorthian-space-raiders.mit.edu
    25     Queue: sipbmp3
     25    Address: hostname
     26    Queue: gutenbach
    2627   It is not necessary to specify the driver.
    2728
     29   *** Note that you MUST give the printer name as the same name as
     30       the queue, NOT the address (which it seems to default to). ***
     31
    28322) Create the directory ~/Library/iTunes/Scripts
    29    and place the "Send to sipbmp3.scpt" file
    30    within.
     33   and place the scripts you want within.
     34
     353) Edit those scripts such, replacing "hostname" with the hostname of
     36your printer and "gutenbach" with the printername.
    3137
    3238* Usage
    3339When in iTunes, select the songs which you
    3440would like to hear in the office, and click
    35 "Send to sipbmp3" in the script menu from
     41the script you want from the script menu from
    3642the menu bar.  The script menu looks like a
    3743little scroll icon.  There will be no
  • gutenbach-itunes-plugin/gutenbach - Get Queue.applescript

    rbd7b4f8 re520009  
    11-- -----------------
    2 -- iTunes -> sipbmp3
     2-- iTunes -> gutenbach
    33-- -----------------
    4 -- This is a simple little script which gets the current queue on sipbmp3--
     4-- This is a simple little script which gets the current queue on gutenbach--
    55-- Changelog:
    66--
     
    1515-- Run this script from iTunes
    1616
    17 set message to (do shell script "lpq -Psipbmp3")
     17set message to (do shell script "lpq -Pgutenbach")
    1818tell application "iTunes"
    19         display dialog "sipbmp3 currently is playing: " & "
     19        display dialog "gutenbach currently is playing: " & "
    2020" & message buttons "OK" default button "OK"
    2121end tell
  • gutenbach-itunes-plugin/gutenbach - Queue Music.applescript

    rbd7b4f8 re520009  
    11-- -----------------
    2 -- iTunes -> sipbmp3
     2-- iTunes -> gutenbach
    33-- -----------------
    44-- This is a simple little script which sends
    5 -- music from an iTunes library to the sipbmp3
     5-- music from an iTunes library to the gutenbach
    66-- lpr server.
    77--
     
    1919--    the following information:
    2020--     Address: zygorthian-space-raiders.mit.edu
    21 --     Queue: sipbmp3
     21--     Queue: gutenbach
    2222--    It is not necessary to specify the driver.
    2323--
    2424-- 2) Create the directory ~/Library/iTunes/Scripts
    25 --    and place the "Send to sipbmp3.scpt" file
     25--    and place the "Send to gutenbach.scpt" file
    2626--    within.
    2727--
     
    3030-- When in iTunes, select the songs which you
    3131-- would like to hear in the office, and click
    32 -- "Send to sipbmp3" in the script menu from
     32-- "Send to gutenbach" in the script menu from
    3333-- the menu bar.  The script menu looks like a
    3434-- little scroll icon.  There will be no
     
    4747end tell
    4848
    49 set command to "(for t in " & ts & "; do lpr -o raw -Psipbmp3 \"$t\"; done) >/dev/null 2>&1 </dev/null &"
     49set command to "(for t in " & ts & "; do lpr -o raw -Pgutenbach \"$t\"; done) >/dev/null 2>&1 </dev/null &"
    5050do shell script command
  • gutenbach-itunes-plugin/gutenbach - Remove All.applescript

    rbd7b4f8 re520009  
    11-- ------------------
    2 -- iTunes -> sipbmp3
     2-- iTunes -> gutenbach
    33-- ------------------
    44
     
    1111
    1212-- Usage:
    13 --  This script will remove all of your songs queued to sipbmp3
     13--  This script will remove all of your songs queued to gutenbach
    1414
    15 do shell script "lprm -Psipbmp3 -"
     15do shell script "lprm -Pgutenbach -"
  • gutenbach-itunes-plugin/gutenbach - Toggle Mute.applescript

    rbd7b4f8 re520009  
    11-- -----------------
    2 -- iTunes -> sipbmp3
     2-- iTunes -> gutenbach
    33-- -----------------
    44
     
    1111-- Usage:
    1212--
    13 -- Running this script will toggle the mute on sipbmp3 on or off.
     13-- Running this script will toggle the mute on gutenbach on or off.
    1414
    1515tell application "iTunes"
     
    1717end tell
    1818
    19 set command to "/usr/local/bin/remctl zsr volume set " & vol
     19set command to "/usr/local/bin/remctl hostname volume set " & vol
    2020do shell script command
  • gutenbach-itunes-plugin/gutenbach - Volume Get.applescript

    rbd7b4f8 re520009  
    11-- ------------------
    2 -- iTunes -> sipbmp3
     2-- iTunes -> gutenbach
    33-- ------------------
    44
     
    1111
    1212-- 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).
     13--  This script will get the volume of gutenbach and put it on your iTunes volume scaled to the max value of 31 (which is the max volume for gutenbach at the time this script was written).
    1414
    1515
    1616tell application "iTunes"
    17         set currentVolume to (do shell script "/usr/local/bin/remctl zsr volume get")
     17        set currentVolume to (do shell script "/usr/local/bin/remctl hostname volume get")
    1818        set currentVolume to currentVolume / 31 * 100
    1919        set the sound volume to currentVolume
Note: See TracChangeset for help on using the changeset viewer.