(please keep in mind I am with Indigo about 25 days, and am not even a scripting novice, I would say )
This works great....but How do I revert volume after an incoming message where I raise all speakers to volume 70, then switch back to music. It gets LOUD after the announcement. I thought save speaker state would have saved the volume, but that does not seem to be the case.
- Code: Select all
tell application "Airfoil"
set VolMac to volume of speaker "Computer"
set VolPool to volume of speaker "Airplay-Pool"
set VolAppleTV to volume of speaker "Apple TV"
set VolGarage to volume of speaker "DCH-M225"
set VolMaster1 to volume of speaker "Denon AVR-X1000"
set VolKitchHall to volume of speaker "Kitchen / Upstairs Hall Speakers"
set VolMaster2 to volume of speaker "Master Speakers"
end tell
# then you multiply that by 100, convert to an integer, and insert it into the Indigo variable
set value of variable "VolumeMac" to (VolMac * 100) as integer
set value of variable "VolumePool" to (VolPool * 100) as integer
set value of variable "VolumeAppleTV" to (VolAppleTV * 100) as integer
set value of variable "VolumeGarage" to (VolGarage * 100) as integer
set value of variable "VolumeMaster1" to (VolMaster1 * 100) as integer
set value of variable "VolumeKitchHall" to (VolKitchHall * 100) as integer
set value of variable "VolumeMaster2" to (VolMaster2 * 100) as integer
So......I have searched and searched, as to how I can return the speakers back to each individual variable, but have not seen anything. Any examples would be great!.
Thanks for any help!