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
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 ...
6
votes
3answers
325 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
8k 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
47 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
419 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
3k 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
7answers
3k 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
616 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
369 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
879 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
801 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
773 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 ...
3
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
132 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
337 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
111 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
191 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
145 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 ...
0
votes
2answers
751 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
521 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
484 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
425 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
93 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
54 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
321 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
185 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
1k 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
175 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
418 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
200 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, ...
10
votes
1answer
925 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. ...
2
votes
2answers
722 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 ...
28
votes
5answers
37k views

How to always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over with a mouse or trackpad? I imagine there's some Terminal ...
0
votes
1answer
499 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 ...
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
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 ...
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 ...
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
841 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 ...
0
votes
0answers
150 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: ...
25
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 ...
0
votes
1answer
133 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
181 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 ...