Category Archives: OSX

How make Safari download PDF files instead of opening them in-page

When I find a link for a PDF file I don’t want Safari to open it in-page. Why not? What if I just want to download it to read it later? What if I have a list of PDF files that I just want to click one after another to start downloading them? What if the PDF file is too big and my internet connection is too slow, so I have a blank window waiting for the PDF to complete the download? What if I have too many opened tabs in Safari and I don’t want to kill my machine downloading a 100MB PDF file?

To force Safari to download your PDF files just open a terminal window and type this:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES

If you want to change it back just type:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool NO

You should restart Safari.

How to Disable the Character Accent Menu in OSX

I came into this last year (I think) and I found the solution somewhere and I added it to my personal notes. After a Mavericks reinstall I got the same problem. Starting with Mountain Lion (not sure) when I hold a character, instead of getting the usual character repetition, I got an annoying pop-up menu like this:

annoyingmenu

It only appears when you hold a character that could have an accent like åàáã and so forth.
I find this solution annoying for people that is quite fast at typing. I consider myself fast, so waiting for the pop-up menu to appear and then select the right character consumes too many milliseconds.

To stop that pop-up from appearing just open a terminal and type:

defaults write -g ApplePressAndHoldEnabled -bool NO

If you want it to come back type:

defaults write -g ApplePressAndHoldEnabled -bool YES

You have to close your app and open it again in order for this change to take effect, or just logout and login again.

How to write those accented characters? Simple key combinations. For example for US keyboards:

alt + e = ´ (áéíóú)
alt + ~ = ` (àèìòù)
alt + n = ˜ (ñã…)
alt + c = ç

Just to mention a few. Other keyboards might have a different combination, but I noticed that it’s almost the same. For example, the Japanese keyboard uses the (alt + _) to get ” ` ”

Once you get used to these combinations, it’s faster than using that pop-up menu.