LoginSignup
0
0

More than 5 years have passed since last update.

某音楽サービスのcmの間PCをミュートにするアプリを作る(macOSのみ)

Posted at

作り方

  • Script Editor.appを起動して下記コードをコピペする。20のところはいつも使っているボリュームにする(0 - 100)。45のところはミュートしたい秒数にする。
set volume input volume 0
delay 45
set volume input volume 20
quit
  • File FormatのところをApplicationとして保存する。名前はなんでもok。
  • command spaceでSpotlightから起動かDockに追加しておくのがオススメです。

参考

https://stackoverflow.com/questions/4220582/increase-volume-on-mac-using-applescript
https://alvinalexander.com/blog/post/mac-os-x/applescript-delay-command
http://mtlab.ecn.fpu.ac.jp/WSM_2002/020131143847.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0