defaults(1) is a Mac OS console application used to manage user preferences stored in property list files.

learn more… | top users | synonyms

10
votes
2answers
226 views

Zsh using 100% of CPU during iWork install

I've been trying to install Keynote and Numbers, but they hang like so: This is associated with a shell script consuming 100% of a CPU: That process is defaults delete com.apple.helpd ...
1
vote
1answer
2k views

How to change shape defaults in keynote?

I'm using Keynote 6.2. Is there a way to change the default properties of shape objects? Specifically, I'd like to get rid of the drop shadow and the advanced color fill. It's a pain to have to change ...
2
votes
1answer
71 views

Update Preferences Panel after using default write

I am using default write to set/unset Block all incoming connections option of OSX firewall. sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2 sudo defaults write ...
0
votes
0answers
29 views

Set Default App For Everything That Doesn't Have A Default

Is it possible to set a default open application if none is found on the system. For example if I have a .mp3 file, still let that open with iTunes but if i've got a random unknown .abcdefg file make ...
1
vote
0answers
121 views

Disable three finger drag on Xcode

I want to use the three finger vertical swipe to switch between header and implementation files on Xcode, but this stops working when I have three finger drag enabled in system preferences. I've ...
2
votes
1answer
42 views

Changin IRC default client on Mavericks

I installed Colloquy and then LimeChat IRC clients. I realized Colloquy opens automatically when clicking on a link like irc://irc.freenode.net/kolab How can I changed these links to open in LimeChat? ...
5
votes
2answers
9k views

How to set default input source in Mac OS X Lion

I use two keyboard layouts (input sources) in my everyday work - the standard US and Russian-PC. In System Preferences/Language & Text/Input Sources I have activated the "Allow different input ...
2
votes
2answers
487 views

How can I set the default width, height, and position of my Mac terminal app?

How can I set the default width and height of my Mac terminal window so that it always opens the way I'd like it to. Currently, every time I launch the terminal app, I need to resize it.
2
votes
2answers
1k views

Setting defaults for Magic Mouse

When I log on the Guest user, the Magic Mouse settings are not as I want them to be. E.g., I would always like the right click enabled and the tracking speed set to fast, but these settings default to ...
0
votes
1answer
1k views

How can I change some of the system default preferences used for the guest and new user accounts?

I have an shared OSX machine (now running Yosemite) that is used by a large group of people, most of which are not normally Mac users. A couple of the most regulars such as myself that need persistent ...
1
vote
0answers
53 views

determining Preferred Language in OS X via cli

I was hoping to do something like: defaults read -g AppleLanguages | awk -F, '/[^(]/{print $1;exit}' but if only one language is listed in "Preferred Languages", then defaults read -g ...
0
votes
1answer
36 views

Running defaults command as root vs regular user

I've used the defaults command to tweak my settings to some sane defaults, but I have been unsure if I should run them as root or as my regular user. Seems to work either way. It is possible to do ...
3
votes
1answer
400 views

New users can't see Apple applications from Utilities folder in Launchpad

I felt like giving my mess of Launchpad icons a fresh start. So I did defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock On checking Launchpad, it had appeared to have ...
1
vote
1answer
920 views

Writing to NSUserDictionaryReplacementItems with defaults

The following command reads the NSUserDictionaryReplacementItems. The keys are called Text Shortcuts in OS X. defaults read NSGlobalDomain NSUserDictionaryReplacementItems I want to create new ...
2
votes
1answer
2k views

Toggle Natural scrolling from command line with reload

I'm looking to make a script that quickly toggles the Natural scrolling settings, so I need a way to do it from the command line. I think I found the correct defaults command, but I'm not sure how to ...
1
vote
0answers
32 views

Increase increment size of keyboard backlight

I usually have my keyboard backlight either: all the way up, at the lowest setting or off. It is (slightly) annoying to have to hold down F5/F6 keys, when I never use the middle values. Is there a ...
10
votes
2answers
6k views

Disable screensaver password requirement from command line

I am trying to enable and disable the screensaver password requirement from the command line. defaults read com.apple.screensaver shows a variable askForPassword set to either 0 or 1, depending on ...
0
votes
1answer
106 views

Can I set Show Library Folder via defaults from command line?

Is there anyway to activate the Show Library Folder option from the command line? I know that I can archive it with the command chflags nohidden ~/Library', but for several reasons I would prefer a ...
1
vote
1answer
321 views

Recover font antialias on Yosemite

I've changed some options related to font rendering by defaults write command in past (I can't recall was it lcdfilter, or something else). Now when I turn off antialiasing in system preferences font ...
1
vote
1answer
852 views

Set preview.app to default to “content only” view

Is there any way to make (Mountain Lion) Preview's default view 'content only'?
0
votes
0answers
1k views

How to reset all Yosemite's settings and preferences to default?

I used this script to modify settings on my mac. See full script here defaults write com.apple.systemuiserver menuExtras -array \ "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \ ...
4
votes
2answers
931 views

How to always show window controls in Yosemite full screen apps?

The default behavior in Yosemite for apps with combined window title/toolbar in full screen mode is, that the window controls (signal lights) slide in from the left when the mouse the mouse pointer ...
0
votes
1answer
686 views

Mac printing error: paper size unresolvable conflict

I am trying to set duplex as the default for my printer. Many people have told me to just create a preset and use that but there are some apps that this doesn't work for, so I am looking for a ...
1
vote
1answer
566 views

Position Dock stretched full width without increasing size proportionally

Using defaults write com.apple.dock pinning start;killall Dock I was able to move the position of the dock to the upper left corner below the Apple menu. What I'd really like to do is force the ...
2
votes
1answer
777 views

How to apply written defaults to a Magic Mouse (com.apple.driver.AppleBluetoothMultitouch.mouse)?

Running OSX 10.7.4 I wrote a script to swap Apple Magic Mouse secondary click. The following simple bash script do modify the system preferences (can be seen in System Preferences GUI), but the mouse ...
0
votes
3answers
1k views

How can I set the default browser depending on time of day?

I have a MacBook Pro from work. To keep my browsing history separate, I use 2 different browsers. (Chrome = Work, Safari = Fun) I want to make my default browswer Chrome while at work (9 am to 6pm), ...
0
votes
1answer
210 views

Enable flash player audio access in safari for a website permanently

I get this request every time I try to use the microphone on the same web page. Is there anyway to set this so it stops asking for this domain. I understand the security ramifications; however I ...
2
votes
0answers
140 views

Updating modifier keys from the command line takes no effect

The goal: map "Caps Lock" to "Control" from the command-line. I'm trying to update the modifier keys from the command-line with the following command as explained here and here but to no effect. $ ...
0
votes
0answers
62 views

How do I change my “Recommended Applications” list (shown after right click > open with) for a given file extension?

OSX v. 10.9.3 When I "right click" a *.kml file and go to "Open With", the list of applications does not include QGis, my favorite program for medium to heavy duty GIS work. I'd like QGis to be on ...
1
vote
0answers
492 views

Add local file URL handling to Applescript Application

I am using a simple applescript application to open different URL schemes in different Fluid Apps. By setting this app as the default browser, I can effectively parse out the URL scheme and open the ...
2
votes
0answers
248 views

how to turn off rotating cube animation upon user switch?

How to turn off rotating cube animation upon user switch? I apparently need to pad out this qwuestion, so i will add that it makes me dizzy thank you!
1
vote
1answer
505 views

How do I clear the default email client?

I do not want ANY email client as a default. Whenever I accidentally click on a link, Outlook comes up. I do not want ANYTHING to pop up. Uninstalling is not an option. I want Outlook on the ...
3
votes
1answer
604 views

Mavericks: How to ADD Input Source via plists/defaults?

I'm trying to automate my OS X setup but I'm stuck trying to programmatically add a new Input Source or keyboard layout. I usually use two layouts: regular US and US International, so what I'm trying ...
0
votes
1answer
31 views

To control default opening software for PDF centrally?

I want PDF documents open with Preview, not Adobe Reader. I select Open With > Other > Click the Box Always Open With. However, this does affect all pdf-files in my system. How can you set the ...
7
votes
3answers
520 views

How do I change which characters OS X considers ‘a word’, for ⌥-arrow-key skipping?

When I type ⌥→, I'd like my cursor to stop at periods, and perhaps other characters. Does anybody know of a defaults configuration, or System Preferences setting, that changes which characters are ...
2
votes
5answers
15k views

Force URL link to open with a specific browser

I've created a URL link in my dock, however, the link only opens with the default browser. I have safari, Firefox, and chrome (latest being the default) installed in my machine. I'm wondering if ...
2
votes
0answers
113 views

Apple's Preview prints in middle of page

Apple's Preview app always prints in the center of the page, rather than at top & left margins. This is true regardless of the scale (% size) an image is printed at. I'm hoping there's a way to ...
1
vote
1answer
773 views

How to change OSX System (Default) Shortcuts?

In OSX (now is Mavericks), how to change the System Default Shortcuts, for example which are currently like: Command + Shift + Q .. for current User Logout. Command + Q .. for current (active) ...
6
votes
3answers
4k views

Change the default application (for a file extension) via script/command line?

Is there a way to define the default application for a file extension via an Apple script, command line command (like defaults write [...]). I know that you can change it manually via the information ...
5
votes
0answers
843 views

How to see all options configurable by “defaults write …” [duplicate]

Many Mac apps have "hidden" configurable options that can be modified in Terminal by using the defaults write ... command. This is straightforward to do if you know the name of the option that you ...
1
vote
1answer
1k views

How do I change mouse settings instantaneously from Terminal?

My school has a bunch of Macs that are always logged in as Guest and have very annoying default settings (natural scrolling, no secondary mouse button, etc), so I am trying to write a terminal script ...
0
votes
2answers
608 views

Defaults utility: how to get xcode project info

I have found that utility defaults can get info from .plist file. But how can I canonically pass as parameter to it path to .plist file ? I read about <domain> parameter but still don't have ...
0
votes
1answer
1k views

What do I need to know for setting key combination shortcuts

I am running OS X Mavericks 10.9 and I want to create a new key combination shortcut for, lets say, 'Look Up in Dictionary'. Personally I think CommandShiftD or CommandOptionD would be nice. When I ...
2
votes
1answer
2k views

How to reverse the defaults write com.apple.Safari CustomUserAgent “\”My user agent string\“” command

Using the defaults write com.apple.Safari CustomUserAgent "\"My user agent string\"" command, you can set the default User Agent for Safari. This means that the CustomUserAgent key gets written in ...
1
vote
1answer
1k views

Where does Messages.app store its “Play sound effects” setting?

I'm trying to write a script to configure the system and various apps to my liking, mostly via defaults write. I got stuck with Messages' Play sound effects setting (under General). I think this ...
2
votes
2answers
3k views

Choosing the default application does not stay as default after reboot

When I'm opening .avi files, I want to open them with VLC Media player, when right clicking the item, I see this: As you can see QuickTime is the default player, I want to change it to VLC, so I ...
6
votes
1answer
3k views

Can I undo changes made via “defaults write”?

I've been messing with Bluetooth audio settings to try to keep my Bluetooth speakers from popping by changing settings via defaults write, but I'm afraid I've made the problem worse. I'd like to ...
0
votes
2answers
304 views

Where is a full (complete) list of defaults domains and parameters?

I found several long lists with defaults, settings, but never a complete one with a reference to developers.apple.com. Is there any such list to find? If not, which is the longest/systematic/complete ...
0
votes
0answers
512 views

Programmatically setting Terminal default settings for all users?

I'm trying to set up some standard terminal settings for all users across our system on all machines. I've tried to use the defaults write cmd in a LoginHook script, but since it seems that terminal ...
0
votes
0answers
15 views

How do I use Mathias .osx defaults? [duplicate]

I just got a mac and am still familiarizing myself with it. I was taking a look at: https://github.com/mathiasbynens/dotfiles/blob/master/.osx Not sure how to use it!