Booting options

Key Action
cmd+R Recovery
alt Boot from External Device

Nice software

ABSOLUTE NEEDS
  • Quicksilver. Do stuff using keyboard instead of mouse (e.g., open applications, Google search, send email, etc.).
  • Textpander. Use abbreviation to call useful text e.g. email address, phone, etc. that you write 10 times a day.
  • Time Machine. User-friendly backup solution. To track backups you can use TimeTracker
  • Papers. Manage scientific articles.
Image
  • Pixelmator. Image editor that fully took advantage of the Mac OS (Open GL, Automator, ColorSync etc.).
  • Seashore. Image editor - Simpler than Pixelmator. Good for quick fix.
  • ImageMagick. Command line processing tools for images. E.g., can create GIF. Tips for installation and usage
Audio/Video
  • EasyWMA. Convert WMA format into MP3, M4A, WAV or AIFF
  • MacTheRipper. Extract your DVD into TS_VIDEO/TS_AUDIO folder (then use HandBrake to compress).
  • HandBrake. Convert DVD into DivX. Also convert various video formats (MOV, MP4, AVI, etc.)
  • VLC. Nice video player (can be used for DVD as well).
  • Camtasia. Record videos
3D objects
  • MeshLab. Read STL, OBJ, 3DS, etc., convert, resample.
Figures
  • InkScape …………. Free equivalent of Illustrator: do vectorial figures. One disadvantage: the application has been developed under X11 so the GUI is sometimes “hesitating”…
  • ShapeOnYou ……. Generate 3D shapes for Keynote
  • Organigram ……… OmniGraffle.app
  • graphviz. Generate nice diagrams.
MRI
  • Horos: Free DICOM/NIFTI viewer (replaces OsiriX)
  • MITK workbench
  • ITKSNAP
Programming
  • Pycharm. Great IDE For Python.
  • SourceTree. Manages git repository.
Internet stuff
  • Transmission. Torrent manager (by default the one from OSX is Opera - which is not that cool)
  • Cyberduck. FTP/SFTP protocol handler with nice GUI.
  • adblock. block adds
Misc
  • Pdfshrink: Very convenient, because the default 'save pdf' option of Word, etc. does not compress pictures…
  • Mailplane: Gmail-dedicated application that makes life easier: drag/drop stuff, get notifications, etc.
  • MenuMeters: Improved version of activity monitor. Only for geeks.
  • Caffeine: Allows to avoid entering into sleep mode, e.g., while you're showing a funny clip on youtube
  • xGestures: Allows you to perform common functions using quick mouse movements (e.g. close window, previous page on Safari, etc.)
  • MultiClutch: Allows you to perform common functions using touchpad movements (e.g. previous page on Firefox, etc.).
  • Expandrive: Create a virtual FTP disk
  • Capture Me: For screen recording
  • ScreenFlow: Create demo videos for software
QuickLook modules
Science
  • G*Power: power calculation for statistics

Bugs

Right-click sharing for GDrive

The Share menu might not show one or more sharing options—such as Email This Page, AirDrop, or Facebook—or the Markup feature might be missing.

Follow these steps if the issue occurred immediately after upgrading to Yosemite or El Capitan. Open the Terminal app, and run:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed

source: https://support.apple.com/en-us/HT203129

fslview opening out of screen

  • try to restart the application.
  • try to restart the computer.
  • Try this:
rm ~/Library/Preferences/org.macosforge.xquartz.X11.plist
rm ~/Library/Preferences/uk.fmrib.ox.ac.fslview.plist
  • open AppleScript Editor and run:
tell application "fslview"
  set bounds of windows to {100, 100, 800, 800}
end tell

Archive Utility: Permanent loading

Trash: Stuck when being emptied

  • Terminal –> killall Finder –> rm -rf ~/.Trash/*

Error: "disk quota exceeded"

ONLY APPLIES TO PEOPLE AT NEUROPOLY: If you see this message, try to unmount django: from the Finder, click on . If you still have problems, ask an administrator system.

Cannot repair permission

Probably some ACL issues. Download and run this: http://nomulous.com/goodies/ACLr8/

Password prompts: "Finder wants to make changes"

Solution 1

Remove the ACL manually. Go to the problematic folder(s) and type:

chmod -N foldername
chmod -RN foldername  --> do do it for all files/folders recursively

Solution 2

  1. Open Applications > Utilities > Disk Utility.
  2. Select your hard drive in the left column. Most likely it will be named “Macintosh HD.”
  3. Click on “Repair Disk Permissions.”
  4. Close Disk Utility. Check if the problem is still there.

Solution 3

If it is still not resolved:

  1. Restart and hold down the Command and R keys. You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
  2. In the Terminal window, type resetpassword and hit Return. The Password reset utility launches, but you’re not going to reset the password.
  3. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues. At the bottom of the window, you’ll see a button labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.

Slow mac

try these things:

  • minimize amount of files/folders on the desktop.
  • repair permissions

General

Global default config

Maintenance

Clean cache:

~/Library/Caches
/Library/Caches

Change Folder Icon

You may want to after a while change a folder icon. This is a pretty simple process to do but its hard to get the hang off. But Apple Mac Tips will be your to savior. To begin, find an icon you like. A Good place is interface lift. Once you have found your icon right click and “Get Info” on both you icon file and the folder you wish to change. You will notice in the top left hand corner is a small icon, this will be the key to the process. What you need to do is click on the icon. There will be a blue outline around the icon. Now press Command + C, this will copy the icon to your clip board. On your folder icon that you want to change, click it again and press Command + V. This will paste the icon. Drag A Widget Onto The Desktop defaults write com.apple.dashboard devmode YES

Create recovery partition

http://www.macworld.co.uk/how-to/mac-software/downgrade-mavericks-mountain-lion-3494785/

For Mavericks: http://support.apple.com/kb/HT5856

Is it possible to downgrade to Mountain Lion on a Mac with native Mavericks installation? ANSWER: no.

Dialog box: select option with Tab

After Snow Leopard, this useful feature was removed by default. To put it back: System Preferences > Keyboard > Shortcuts > select “All Controls”

Dock in 2d

defaults write com.apple.dock no-glass -boolean YES
killall Dock

Lock screen

In order to run a script overnight:

  • Keyboard Shortcut: Ctrl+Shift+Eject
  • Icon in your menu bar: Keychain Access > Preferences > General tab > select the Show Status in Menu Bar option.

Lock screen upon sleep

Looking through this site, I found part of the solution in this hint. The trick was getting this script to activate on Sleep (or wake up). After some searching, I found Bernhard Baehr's excellent Sleepwatcher. Sleepwatcher is a daemon that calls a pair of scripts, ~/.sleep and ~/.wakeup, upon sleep and wakeup. Combining these two, I installed Sleepwatcher, and used the code below as my .sleep file (the /System… line is shown on two lines; enter it as one line without any added spaces):

#!/bin/sh /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

Restart, and your Mac will fast-user switch itself to the log in screen when you close the lid! Hope this helps other paranoid PowerBook owners! Note: You can also put this script in your .wakeup file, but there's a few (three to five) seconds' delay between wake and the script call, leaving the system wide open for a few seconds, and looking a bit tacky to boot.

To download sleepwatcher: http://www.bernhard-baehr.de/

Source of this tips: http://hints.macworld.com/article.php?story=20040724203315798&query=CGSession

Make Hidden Applications Icons Transparent

defaults write com.apple.Dock showhidden -bool YES
killall Dock

Copy/Make a disk image from CD/DVD (ISO format)

Open Disk Utility, click on “create new image”, then save as DVD/CD .cdr format. Then you can convert your CDR into ISO using the following Terminal command:

hdiutil makehybrid -iso -joliet -o Master.iso Master.cdr

Set The Expanded Print Dialogue As Default

defaults write -g PMPrintingExpandedStateForPrint -bool TRUE

Reboot station with Terminal

sudo shutdown -r now

Set The Expanded Save Dialogue As Default

defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE

Screenshot in desired format

defaults write com.apple.screencapture type jpg

needs re-logging

Disable Notification Center

If you don't need the Notification Center feature introduced in OS X Mountain Lion, you can easily disable it with a Terminal command.

Open Terminal by searching for it in Spotlight or opening it from the Applications > Utilities folder. Enter the following command

launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

Next you have to close Notification Center. Enter the following command:

killall NotificationCenter

If you see an error reading that there was no process, don't worry.

And right away, you will see that the Notification Center icon is gone from the menu bar! If you need to get it back:

Enter the following command in Terminal

launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

Hit Command+Shift+G in Finder and go to /System/Library/CoreServices/ then find “Notification Center” and double-click it to launch it.

Server

Software specific

MATLAB

help crash. use this command in matlab : com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');

Automator

Launch app automator –> New app OR service –> add “Run shell script” module –> select module Option: Pass input “as argument” –> write you script

Launch fslview via double click

FSLDIR=/usr/local/fsl . ${FSLDIR}/etc/fslconf/fsl.sh PATH=${PATH}:/usr/local/fsl/bin fslview “$@” &

generate dwi_mean in same folder

FSLDIR=/usr/local/fsl . ${FSLDIR}/etc/fslconf/fsl.sh PATH=${PATH}:/usr/local/fsl/bin fold=$(dirname “$1”) NAME=`echo “$(basename “$1”)” | cut -d'.' -f1` fslmaths “$1” -Tmean $fold”/“$NAME”_mean”

Use a service
  • select a file or text (depending on your service input)
  • application menu (e.g. finder) → Services → your service. (Or specify a keyboard shortcut in “Services preferences”)

Chrome

Won't launch
  • Terminal –> go to folder:
    • ~/Library/Application\ Support/Google/Chrome/
    • ~/Library/Application\ Support/Skype/
    • Remove user folder or even everything

Dropbox

Sync is stuck

Solution 1

Remove the ACL manually. Go to the problematic folder(s) and type:

chmod -N foldername
chmod -RN foldername  --> do do it for all files/folders recursively

Solution 2

  • Terminal –> cd ~ –> rm -rf .dropbox/

Finder

Enable The Path View
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Show Hidden Files
defaults write com.apple.finder AppleShowAllFiles TRUE

N.B. Must restart: http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/

Display full path
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Sort Folders first

Image Capture

iPhone or scanner is no more recognized

Close Image capture. Delete (or rename) the plist files:

cd ~/Library/Preferences
mv com.apple.Image_Capture.plist com.apple.Image_Capture.plist__old
mv com.apple.ImageCaptureExtension2.plist com.apple.ImageCaptureExtension2.plist__old

Open Image Capture and plug your device.

Keynote

In the new version of Keynote (6.2), files are now saved as packages instead of files. This creates huge problems with Dropbox, git, etc. I did not find any workaround so far, so had to install the older version (not possible to downgrade from Apple Store– you need to manually install the previous version inside the Applications/ folder).

Microsoft Word

Word freezes after copy/paste

Solutions:

  1. work with .docx, not .doc
Error: A COM Exception has occurred

Related to EndNote. Solution:

  1. Go to ~/Library/
  2. Rename Saved Application State as Saved Application State_old
Error: "Microsoft Word has encountered a problem and needs to close"

Try rebooting.

This is a known bug. Solution: convert your word document using freepdfconvert

Papers

Port Papers to another mac

This only applies to Papers 1. Not possible to do with Papers 2+ for security reasons (at least I haven't figured out how to do it).

Copy these files to another mac:

/Applications/Papers
~/Library/Application Support/Papers

Open Papers and register.

Your library is managed by the file Library.papers. To port your existing library, do the following:

  1. Go to menu Papers > Preferences > Library
  2. Edit the folder PDF Library Location
  3. When it says “Papers library found already”, click switch
  4. Restart Papers.

QuickLook

Reload cache

qlmanage -r

List all plugins

qlmanage -m

Debug

qlmanage -p "path_to_plugin"
Example: qlmanage -p /Library/QuickLook/DTITK_QuickLookPlugin.qlgenerator

Nice plugins

Terminal

Let Terminal Talk
display log
syslog

TextMate

If TextMate does not open, delete folder ~/Library/Application Support/TextMate