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

learn more… | top users | synonyms

0
votes
0answers
131 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
488 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
254 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
707 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
575 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
89 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
74 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
52k 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
50 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
302 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
162 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
343 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
423 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
27 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
377 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
10k 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
65 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
520 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 ...
8
votes
6answers
4k views

How to list all available .plist keys on a certain domain application by defaults command?

I want to know all keys (property list) which available on certain domain application, as example i could list available key for com.apple.dock by entering this command: $ defaults read ...
5
votes
0answers
842 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
727 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
435 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 ...
8
votes
4answers
910 views

How do I change the location of screen captures on 10.5?

As a developer, I take a lot of screen captures. I often take a lot to share with StackExchange members on chat. The problem is my desktop is so cluttered with screen captures that they're now ...
0
votes
1answer
886 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
1k 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
864 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 ...
4
votes
1answer
2k 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
175 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
395 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 ...
1
vote
0answers
123 views

Is there a hidden preference to get Mission Control to show application icons when grouping is turned off?

When I turn on grouping in Mission Control to I get the application icon overlaid on the windows that belong to the application. Is there a hidden option to show icons on ungrouped windows?
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!
0
votes
1answer
238 views

How can I restore the default dimensions of the Force Quit dialog

I accidentally maximized the Force Quit dialoge on my Mac and I am looking for a way to restore it to its original size other than manually resizing it. I would like it to be have exact dimensions as ...
1
vote
3answers
165 views

Writing to plist file multiple preferences same time

I need to write about 50 preferences to a .plist file. Is there any way to write just once to plist file? My current code has 50 defaults write lines. do shell script "defaults write testing.testing ...
1
vote
2answers
793 views

Temporarily disable Notification Center in Mountain Lion from command line?

I've been trying to create a script to disable/enable the Notification Center, even if it's temporary. It should do the same as manually sliding the Notification Center, scrolling up, and toggling the ...
4
votes
2answers
565 views

Change the default action to open executable files in the editor instead of Terminal

When double clicking an executable file (without a file extension) in Finder, it opens in Terminal by default. I can change that to any other application for this single file, but I cannot change the ...
1
vote
1answer
530 views

Button “Use as Defaults” are missing in View Options panel (Mountain Lion)

I'm a very new user of Apple and Mac OS - coming straight from Windows so please bear with me if my question is a bit foolished. I'm looking for a way to set my View Option as a default property ...
0
votes
1answer
1k views

Default chart colors Keynote showroom

I want to find out what are the default colors of a 3D bar chart in Showroom layout on keynote. When you add a new chart, you get this colors: But I was unable to find them in the colors palette.
1
vote
0answers
463 views

Is there a best / OSX-specific way to force all files created in a directory to have certain group ownership?

Basically I need any file filefoo that is newly created by userfoo or userbar, both members of groupfoo, in /Users/Shared/SpecialDirectory to have the same ownership that would be achieved by that ...
0
votes
2answers
100 views

Change the default Dock stack content display style

I love the Dock stacks. But I always use the list view option. I don't really fancy the default "Automatic" option. Do you know if it is possible (maybe using the defaults command?) to set the default ...
3
votes
1answer
57 views

Change default applications

I have somehow managed to replace the default movie player, with my FTP client. I'm not sure how that happened, but now every time I double click a movie file in Finder, my FTP client launches. Can ...
0
votes
1answer
341 views

How do I make TextEdit remember last Save As location in Mountain Lion?

First off, I have disabled iCloud as default location for Save As dialogs in TextEdit.app: defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false … But still, I have one ...
1
vote
1answer
240 views

How do I verify the integrity of my OSX installation? (Files, versions, and preferences)

I want to verify the files, and configuration settings for my OSX installation against a known good reference "base". Assuming I have two identical Macs (hardware), with one being factory installed ...
1
vote
1answer
2k views

How to set default number formatting in Numbers?

In Numbers, I've seen how to change the default cell colour and font, based on table styles. But how can one change the default number formatting? The default "American" formatting for dates, for ...
1
vote
1answer
193 views

iCal event invite colors

I receive ical event invites from my boss all time. Once I accept the invite and it goes to the ical on my mac, the color of the event changes into the default blue on my mac. My question is, how do I ...
1
vote
2answers
455 views

How can I toggle magic mouse one finger swipe pages gesture via terminal?

How can I toggle magic mouse one finger swipe pages gesture via terminal? The command defaults write -g AppleEnableSwipeNavigateWithScrolls -bool NO triggers checkbox in System Preferences, but ...
0
votes
2answers
2k views

How to create a binary plist file from the command line on OS X?

I am looking for a solution to create a binary plist file from the command line on OS X? I want to create the ~/.MacOSX/environment.plist and setup the PATH there. I know that this plist file has to ...
2
votes
2answers
202 views

Spaces and Expose Overview using the 2nd Monitor

I have two monitors, and 9 (3x3) virtual desktops. When I invoke the Spaces overview mode of expose, everything gets pulled onto the primary display. It creates one overview with 3x3 desktops, ...