GithubHelp home page GithubHelp logo

spomutify's People

Contributors

spirarel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

spirarel

spomutify's Issues

Leaves volume at zero

Great script! But sometimes it seems to overflow the volume when fading it up again so it leaves the music muted. I did an ugly fix just by adding "set sound volume to 100" after the repeat statement that fades the volume up.

-- Increase Volume gracefully
repeat with i from currentVolume to (originalVolume+1) by 1
	set sound volume to i
	delay 0.02
end repeat
**set sound volume to 100**

Posibility to run with launchctl

Hello, and thanks for excellent script.
I have a quick question however - I've crafted following plist to start script in background on boot:

$ cat ~/Library/LaunchAgents/spotifymute.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.alex.spotmute</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/spomutify.sh</string>
    </array>
    <key>StartInterval</key>
    <integer>1800</integer>
</dict>
</plist>
$

But sadly it does nothing - I see process running, it just not doing the actual muting - do you know if osascript need some special permissions?
I do realize this might be out of scope of this project - so please feel free to close the issue.
Thank again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.