0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ちょっとしたTerminalコマンド【Mac OS X】

Last updated at Posted at 2020-04-19

Appleのアプリを閉じて(cmd+q)開けたら以前使っていたものが開く問題

defaults write com.apple.[App Name] NSQuitAlwaysKeepsWindows -bool false
([App Name]はアプリの名前、例:Preview)と書くと開かなくなる。逆に、元に戻したい場合は
defaults write com.apple.[App Name] NSQuitAlwaysKeepsWindows -bool true
と書けばよい。

PLAYボタンを押してもiTunesを開かないようにする

launchctl disable gui/"$(id -u)"/com.apple.rcd
launchctl kill SIGTERM gui/"$(id -u)"/com.apple.rcd

元に戻す:

launchctl enable gui/"$(id -u)"/com.apple.rcd
launchctl kickstart gui/"$(id -u)"/com.apple.rcd

PDFやmp3などのサムネールの矢印ボタンを消す

defaults write com.apple.finder QLInlinePreviewMinimumSupportedSize -int 514
元に戻す:
defaults write com.apple.finder QLInlinePreviewMinimumSupportedSize -int 0

おまけ:システム起動音がなくなった?復活方法

sudo nvram StartupMute=%00
と書けば起動後に「ブーン」となる。音は前と少し変わってる....。

0
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?