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

learn more… | top users | synonyms

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 ...
0
votes
1answer
833 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 ...
1
vote
1answer
798 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 ...
6
votes
3answers
346 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 ...
4
votes
1answer
1k 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
150 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
369 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
117 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
213 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 ...
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 ...
1
vote
3answers
155 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
1answer
509 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 ...
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: ...
0
votes
2answers
769 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 ...
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
443 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 ...
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 ...
0
votes
2answers
95 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
55 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 ...
1
vote
1answer
554 views

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

Is there any way to make (Mountain Lion) Preview's default view 'content only'?
1
vote
1answer
201 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
182 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
437 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
1answer
331 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 ...
2
votes
3answers
2k views

Default background color in Textedit

How do I set default background color in Textedit? Preferences -> New Document -> Font doesnt help. That black on white isn't too good in nights.
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
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 ...
2
votes
1answer
681 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 ...
10
votes
1answer
931 views

How can I disable the delay + minimum distance when deleting icons from the Dock by dragging in Mountain Lion?

As you all know, Dock icons can be removed by simply clicking them and dragging them out of the Dock. As soon as the “poof” animation appears, you can release the mouse button to remove the icon. ...
0
votes
1answer
518 views

How do I change the global stylesheet of Safari from the command line on OS X?

I am looking for a command line solution to change Safari default stylesheet. This can be configured manually by going to Safari > Preferences > Advanced > Style sheets. Still, I need this in order ...
2
votes
2answers
733 views

Default list of Quicklook Plugins for a fresh LION install? What QL plugins “should be” in /System/Library/Quicklook/?

This is an easy one for you all. I simply need people to list what Quicklook plugins they have installed in /System/Library/QuickLook. I ask because I have a QL plugin named: Icon.qlgenerator in my ...
1
vote
1answer
1k views

How do you get ipod nano to display the watch face as the default view

Is there way to set the watch face as the default display? I wear the iPod Nano as a wrist watch and I would like it display the watch face first when I press the power button. Note: I'm asking ...
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 ...
1
vote
1answer
49 views

Is there a default location for 'linux too applications'

I recently moved to OS X from Windows 7. In Windows, pretty much everything gets installed to C:\Program Files\[application name] or C:\[application name]. In OS X /Applications seems to be roughly ...
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 ...
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 ...
2
votes
1answer
2k views

How to map the bottom right Trackpad corner to right-click programmatically?

I’m looking for a command (defaults write …) to enable right-click by tapping the bottom right Trackpad corner. This can be enabled as follows: System Preferences → Trackpad → Point & Click → ...
7
votes
2answers
4k views

How to change tap to click using “defaults write” from command line?

I want to change the trackpad tap-to-click property from the command line. Graphically, I can do it by clicking System Preferences -> Trackpad -> Tap to Click. How can I do it from the command line? ...
4
votes
1answer
894 views

How to specify that cover art for a video in iTunes should be a frame from a specific time in the video?

When I add a movie or other video to iTunes, it appears that iTunes selects a video frame from somewhere near the beginning of the video file as the default cover art — and most of the time this ...
8
votes
4answers
8k views

Can I change the default camera app on my iPhone?

In the latest iOS update (5.1) Apple added the camera to the lock screen, so now I don't need to unlock the phone to take a picture. Is it possible to change which app is used for this? I realise ...
0
votes
0answers
151 views

How to toggle closeViewZoomFollowsFocus in com.apple.universalaccess via shell script with instant activation?

I created a Service with Automator on a Mac running "Lion 10.7.3". The Service toggles via a shell script the visibility of hidden files in the Finder and works like a charm. Here's the script: ...
26
votes
1answer
4k views

Set the default search to current folder?

The Finder's search bar is an integral part of my workflow. I am constantly using it to search the contents of files within various folders. However, typing into this bar always searches the entire ...
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 ...
0
votes
1answer
137 views

How do I refresh Application metadata - URL handlers, Web browsers - after installing my own AppleScript?

I'm working on an Apple Script that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser. Anyone know what this is?
0
votes
1answer
186 views

Defaults tool equivalent of Ctrl-F7

In OSX one can use Ctrl-F7 to change what the Tab key can move the focus between. By default it is only text boxes and lists but after pressing ctrl-f7 one can move between all ui elements. I was ...
1
vote
1answer
2k views

How do I restore the audio balance to default?

On my iPod Touch, I was playing around with the audio balance setting (settings -> general -> accessibility) How can I reset the balance setting so that it is precisely at the midpoint (i.e. the ...
4
votes
1answer
1k views

How to I set the scroll direction to be “non” natural for any new users created on a Lion machine?

When a new user account is created on a Lion machine, a "helpful" dialog appears to describe "Natural" scrolling. I want to set the scrolling to be "unnatural" for any new users created - is there a ...
4
votes
2answers
535 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 ...