GithubHelp home page GithubHelp logo

epilande / alfred-be-quiet Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 1.0 1.07 MB

๐Ÿคซ Workflow to automatically pause audio/video playing

License: MIT License

JavaScript 100.00%
alfred alfred-workflow brave chrome music pause-audio spotify workflow

alfred-be-quiet's Introduction

epilande ๐Ÿ“Ÿ

epilande cli

Usage

# Start interactive CLI
$ npx epilande

# Open site(s) directly
$ npx epilande --open=github,codepen

alfred-be-quiet's People

Contributors

epilande avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

hdd2k

alfred-be-quiet's Issues

BE will fail when an app does not exists

Firstly, thanks for the workflow <3 !

I found an error when I don't have one of the apps installed.

execution error: Error: Error: Application can't be found. (-2700)

I tracked it down to this block:

  if (Application("Google Chrome").running()) {
    apps.push("Google Chrome");
  }
  if (Application("Brave Browser").running()) {
    apps.push("Brave Browser");
  }
  if (Application("Spotify").running()) {
    apps.push("Spotify");
  }
  if (Application("Music").running()) {
    apps.push("Music");
  }

I do not have spotify installed, making the script to silently fail.

Screen Shot 2022-11-14 at 17 43 58

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.