close
The Wayback Machine - https://web.archive.org/web/20201124033230/https://github.com/kyleneideck/BackgroundMusic/issues/278
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Applescript control for sliders #278

Open
ihorner opened this issue Apr 7, 2020 · 2 comments
Open

Feature Request: Applescript control for sliders #278

ihorner opened this issue Apr 7, 2020 · 2 comments

Comments

@ihorner
Copy link

@ihorner ihorner commented Apr 7, 2020

I'd like to be able to set sound source volumes via AppleScript or similar — I can't seem to find any information regarding this, and the dictionary seems to only apply to setting output.

I'm using BetterTouchTool to send volume levels from a midi device with faders, and I'd like to associate the faders with different sources in BackgroundMusic.

@kyleneideck
Copy link
Owner

@kyleneideck kyleneideck commented Apr 8, 2020

Good idea. As far as I can tell, the AppleScript API only supports reading and changing the output device so far.

@broady
Copy link

@broady broady commented May 9, 2020

@kyleneideck how can you do that? that'd be pretty useful on its own.

sorry, I'm a bit of an AppleScript noob. is there some way to explore the API of an app?

edit: found via "Open Dictionary" in AppleScript Editor...

image

tell application "Background Music"
	set selected output device to (output device "External Headphones")
end tell

but yes, +1 to this, and being able to set volume of the output would be great too. macOS built-in set volume output volume 40 is really slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.