Script needed for Changing audio output and input of 2 applications

Hey there.
im looking for a script that will enable me to switch the output in system prefs to soundflower (2ch) and Skype audio input to soundflower (2ch) could you please assite in this. as im looking to make a hold App for Skype for mac.
Could you please help

Thanks Again Luke