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

learn more… | top users | synonyms

1
vote
2answers
930 views

How to set default finder window size?

How do I set the default size of my finder window to a size of my choice? Currently each time I open a finder window, it opens up in a very small size and I have to adjust it before I can start ...
0
votes
1answer
21 views

Accessing dictionary keys using defaults

How do I use defaults to access a specific field in a dictionary? I've tried doing this $ defaults read -app Terminal "Window Settings.Pro" but it doesn't work. Accessing "Window Settings" on its ...
0
votes
1answer
31 views

Is there a way to remove a server account network entry from terminal?

I have a Mac mini running Mac OS X 10.10.3. It has an open directory server configured in the server account network configuration in 'Users and groups'. Is there a way to remove that server account ...
1
vote
0answers
19 views

How can I remove all modifications I've made using 'defaults'

I've run a number of customization scripts and manually made a lot of changes in my environment using the defaults utility. Is there a way I can delete all of my modifications? Essentially go back to ...
0
votes
0answers
25 views

Move files across disks (change default to move and not copy)

When you move files/folders across disks Finder, by default, copies the files. I'm looking for a configuration option (defaults?) to reverse this, so default is moving files (as it is when you are on ...
1
vote
1answer
39 views

How to use Defaults to set an element of an array of and array in a preference file?

I am trying to increase the speed of the Text-To-Speech on my Mac. The GUI Preference pane maxes out at 360 words per minute. I do accessibility development and this is actually a little slow for ...
1
vote
1answer
25 views

What is the default (blue) value for AppleHighlightColor?

Lots of popular dotfiles repos (stemming from this one) include this: # Set highlight color to green defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" It looks ...
0
votes
1answer
66 views

How do I get rid of orphaned application entries after uninstallation?

Orphaned Entry in Default Calendar App Preferences (OS X Yosemite)? The image below is the preferences pane in Calendar.app. This is where the user sets the default calendar app used by OS X ...
0
votes
1answer
31 views

Use defaults to edit preferences

Recently, I have been playing around with editing System Preferences without GUI and using the defaults command. I have tried for example: defaults write com.apple.dock autohide NO Though that did ...
9
votes
2answers
148 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 ...
0
votes
0answers
23 views

Need Help with Post-install Script to Switch Off “Displays have separate Spaces”

We have an PC application adapted to run on the Mac using Wine that we install using Apple's Installer. Because Wine uses X11 to display the adapted application's GUI and because of the way X11 (aka ...
1
vote
1answer
1k 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
41 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
1answer
46 views

Correct Syntax to change default Screenshots and Screencapture save location?

I would like to change the default screenshot location for OS X Yosemite 10.10.3 using Terminal. But this command is not working, where subfoldername = "name of my sub-folder" I want to store my ...
0
votes
0answers
19 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 ...
7
votes
2answers
4k views

Change default shell from bash to zsh

I've tried to switch my default shell to zsh, using chsh: chsh -s /bin/zsh and: chsh -s `which zsh` Both commands ended with: Changing shell for adamatan. Password for adamatan: chsh: ...
1
vote
0answers
33 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
18 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
7k 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
141 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
803 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
409 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
1answer
47 views

Use smart folder as Finders default folder

Does anybody know how to setup a smart folder as Finders default folder? If I try to select the smart folder in Finder settings, the "choose" button is deactivated like the screenshot shows:
0
votes
0answers
17 views

Yosemite maximize button fill width and height, not go fullscreen, as default. No extra keys [duplicate]

I've been dealing with this for a while and I just can't take it anymore. I want to set the default maximize button to fill the width and height of the screen without any extra shortcut keys. The way ...
1
vote
0answers
31 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
25 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
206 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
525 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
1k 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
27 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 ...
8
votes
2answers
5k 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
57 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
211 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
553 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
245 views

How do I use the defaults command with App Groups?

In OS X Yosemite it's possible to have preferences that are shared between multiple apps that are in the same App Group. On the development side of things it's as simple as setting up the App Group ...
0
votes
0answers
965 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
798 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
0answers
111 views

Is it possible to have two guest accounts with separate language settings?

I have a shared use OSX machine (running Yosemite) used by a varying set of people with mutually exclusive language and keyboard needs. Most users use the guest account and all settings get reset ...
0
votes
0answers
122 views

Using Yosemite's dark theme but keeping the menubar normal

I just switched to the dark theme on Yosemite OS X and it is a true blessing. For days i have been annoyed by the too light colored background that appears on CMD-TAB, now this is remedied ...
0
votes
1answer
424 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 ...
0
votes
1answer
167 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
680 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
477 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
73 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 ...
1
vote
0answers
63 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. $ ...
14
votes
6answers
49k views

Move 'Pictures', 'Documents', 'Movies' etc folders

I would like to move folders like 'Pictures', 'Documents', 'Movies' to a different from default under the root of user's home location, preferably into a sub-folder under the same user's home folder. ...
0
votes
0answers
49 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 ...
5
votes
4answers
7k views

Default settings for pmset -g?

I remember changing some values to disable Deep sleep mode and hibernation a few months ago, and realised that my battery drains faster now. I just want to revert all settings to default. I changed ...
1
vote
0answers
274 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 ...
1
vote
0answers
24 views

Adding to “Open with” list

[OSX 10.9.2] My Mac doesn't think Audacity can open mp4 files, so when I want to do so using "Open with", I have to switch from "Recommended Applications" to "All Applications" so as to select ...