Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Mute Script

    Flic Mac Client
    2
    4
    3405
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sak.naxete
      sak.naxete last edited by sak.naxete

      Well, I Love this. Using my flic to control my Mac is just AWMPGHDFHGIFDGHIDF... SO MUCH WIN!

      So feel free to re-use this. I have searched a little bit over the internet to create an script that mutes my Mac when I press my Flic. Here is the code:

      #!/usr/bin/osascript
      set _muted to (get (output muted of (get volume settings)))
      if _muted is false then
      set volume with output muted
      else
      set volume without output muted
      end if

      Just paste it into a "script.AppleScript" file, and give it execute permissions > $ chmod +x script.AppleScript
      And it will be ready for you to use with the app!

      Source: http://leafraker.com/2007/11/13/mute-system-volume-with-apple-script-and-quicksilver/

      Cheers and keep doing great things!

      1 Reply Last reply Reply Quote 0
      • sak.naxete
        sak.naxete @anton last edited by

        @anton That's great to know, I hadn't noticed it. I will try to commit more scripts as soon as I have some time to play with it 😃

        Thanks for this amazing update, I really love it!! I want to experiment a bit with some IoT capabilities, I will let you know!

        1 Reply Last reply Reply Quote 0
        • sak.naxete
          sak.naxete last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • anton
            anton FlicTeam last edited by

            That is a great use case! Weird that I did not think of it myself 😉
            Feel free to submit a pull request on github with it. Or I can add it myself, either way.

            I should add however that this will not work if your selected audio output does not have support mute capabilities, such as some digital optical audio stuff.. But not a big deal!

            sak.naxete 1 Reply Last reply Reply Quote 0
            • First post
              Last post