Hi there,
if you haven't already got this,
Prefab UI Browser, then I would suggest you get it. It makes scripting via the GUI a lot easier !
Below is a script which will select "Built in Audio" on My Mac...with GUI scripting you sometimes have to modify for each Mac.
You could save this as an Application, add it to your Dock and then just one click to select Built in Audio.
Then make a duplicate script but change the 'row' number to the Firewire Row..save again, then you have a one click for each...
click here to
open this script in your editor
<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events"
tell process "System Preferences"
-- GUI Scripting statements:
click radio button "Input" of tab group 1 of window "Sound"
delay 1
--this is the first row on mine which is the built in audio
select row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound"
end tell
--I have put this delay in so that you can see it selct it !
delay 3
quit
end tell
</pre>
regards
Ric
PowerBook G4 1.67Ghz 17 100gb HD 1.5Gb RAM... Mac OS X (10.4.6) www.mac-help.com