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

Toggle Private Session #101

Closed
marclundgren opened this issue Jun 11, 2018 · 6 comments
Closed

Toggle Private Session #101

marclundgren opened this issue Jun 11, 2018 · 6 comments

Comments

@marclundgren
Copy link

hi @hnarayanan,

Could the tool potentially support toggling the Private Session?

screen shot 2018-06-11 at 11 52 35 am

@hnarayanan
Copy link
Owner

It’s possible but I don’t know for sure. If you can find an AppleScript event that corresponds to this, e.g. “tell application to ‘turn on private mode’”, then it’s easy to add to the script.

@marclundgren
Copy link
Author

I just opened an issue for spotify to support this via web API

spotify/web-api#913

@marclundgren
Copy link
Author

marclundgren commented Jun 11, 2018

osascript -e 'tell application "Spotify" to session as string'

@hnarayanan how can I find a list of variables that osascript can access on an application? any guides or references would be helpful.

resources I've tried:
https://ss64.com/osx/osascript.html
http://osxdaily.com/2016/08/19/run-applescript-command-line-macos-osascript/
https://developer.apple.com/library/archive/documentation/Darwin/Reference/ManPages/man1/osascript.1.html

@dmofot
Copy link
Collaborator

dmofot commented Jun 11, 2018

@marclundgren You should be able to see which variables can be passed in the sdef file. Depends where Spotify is installed, but mine is located in /Applications/Spotify.app/Contents/Resources/Spotify.sdef

@marclundgren
Copy link
Author

marclundgren commented Jun 11, 2018

looks like there's no access to the private session in Spotify.sdef :(

@hnarayanan
Copy link
Owner

Thank you for doing the research though, and thanks @dmofot. Unfortunately this issue needs to be closed. Please reopen this is the situation changes with how we can control Spotify.

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

No branches or pull requests

3 participants