Applescript to python help please

Posted on
Sun Oct 06, 2019 5:35 pm
bosstdh offline
Posts: 12
Joined: Jan 10, 2016

Applescript to python help please

here is the script guys please help:
**************************************************************************************
tell application "Airfoil"
set rawVolume to volume of speaker "Master Bedroom"
end tell

tell application "IndigoServer"
set value of variable "VolMasterBedroom" to (rawVolume * 100) as integer
end tell

Posted on
Sun Oct 06, 2019 6:11 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Applescript to python help please

bosstdh wrote:
here is the script guys please help:
**************************************************************************************
tell application "Airfoil"
set rawVolume to volume of speaker "Master Bedroom"
end tell

tell application "IndigoServer"
set value of variable "VolMasterBedroom" to (rawVolume * 100) as integer
end tell


Use the Airfoil plugin. You shouldn't need a script at all. http://www.indigodomo.com/pluginstore/19/

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 06, 2019 6:27 pm
bosstdh offline
Posts: 12
Joined: Jan 10, 2016

Re: Applescript to python help please

hello, what I am trying to do is have the volume on the control page change as the volume is increased or decreased this all worked fine prior to 7.4 version
Attachments
screenshot.png
screenshot.png (213.84 KiB) Viewed 1342 times

Posted on
Sun Oct 06, 2019 6:29 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Applescript to python help please

bosstdh wrote:
hello, what I am trying to do is have the volume on the control page change as the volume is increased or decreased this all worked fine prior to 7.4 version


I understand that, but you used AppleScript to do it. Which won't work anymore. So I think using the Airfoil plugin will make this really easy. If you have an Airfoil device defined for the "Master Bedroom" then you can put the volume directly in the control page. Using the plugin is actually easier.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 06, 2019 7:22 pm
bosstdh offline
Posts: 12
Joined: Jan 10, 2016

Re: Applescript to python help please

I know I can use the minus and plus buttons and have them increase/decrease the sound by a value... the reason for the code is to write to a variable that is then visually reflected on the control page by a number of images. hopefully that makes sense

Posted on
Sun Oct 06, 2019 7:25 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Applescript to python help please

bosstdh wrote:
I know I can use the minus and plus buttons and have them increase/decrease the sound by a value... the reason for the code is to write to a variable that is then visually reflected on the control page by a number of images. hopefully that makes sense


I understand. The plugin should give you the current value of the volume of the device. You can trigger on that state, and use the value to set a variable or select the image. It's really the easiest way to get the volume from the Airfoil device.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 06, 2019 7:38 pm
bosstdh offline
Posts: 12
Joined: Jan 10, 2016

Re: Applescript to python help please

ok let me take a look, thank you

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests