On 15-Jan-2009, at 15:05, LuKreme wrote:
> On 14-Jan-2009, at 06:10, Jared Earle wrote:
>> In case you read XKCD, the answer is ...
>>
>> osascript -e 'set volume output volume 100'
>
> osascript -e 'set volume output volume 100' \
> -e 'say "Open the door"' \
> -e 'delay 2 '\
> -e 'say "No really, open the front door. Open it now!"'
Hey, i just noticed that these scripts output the sound via the built-
in speakers. So, what's the answer if I want it to go via Line-Out
(that is to say, the LOUD speakers)?
The best I found was something along these lines:
tell application "System Events"
if UI elements enabled then
try
tell application process "System Preferences"
tell tab group 1 of window "Sound"
click radio button "Output"
if (selected of row 2 of table 1 of scroll area 1) then --
Line out
fugly fugly fugly, and even when the Line Out is selected, say plays
via internal speakers.
--
Love is like oxygen / You get too much / you get too high
/ Not enough and you're gonna die
_______________________________________________
OSX-Nutters mailing list | [email protected]
http://lists.tit-wank.com/mailman/listinfo/osx-nutters
List hosted at http://cat5.org/