<issue_start>username_0: I am wondering what (if any) way there is to get a concise list of all defaults currently configured on a system?

[This post](https://apple.stackexchange.com/questions/19899/how-to-list-all-available-plist-keys-on-a-certain-domain-application-by-default) suggests that they are configured by application, which I get, and it has some good suggestions about how to get a list, for instance:

```
defaults read

```

will produce a decent list of configurations, but it's a bit cumbersome. As well, I'm not sure that's what I'm looking for, or if it's just a bunch of reference information. I couldn't find some corresponding defaults in there that I know I set.

Anyhow, say hypothetically you only care about out of the box defaults that would be on most systems, is there a way to produce a list of them and their corresponding values?<issue_comment>username_1: There is/was an preference pane which documented a lot of these called Screts by Blacktree, no idea where that little gem has gone, but was live last week, so maybe it is just down right now...

Anyway... the Google Code page has info about finding them...

<https://code.google.com/p/blacktree-secrets/wiki/FindingSecrets>
Upvotes: 1 [selected_answer]<issue_comment>username_2: There are a few of these `defaults write` lists around on github & elsewhere, but this one is pretty comprehensive…

<https://gist.github.com/brandonb927/3195465/>

Goes without saying, of course, to not just blindly run it, but use it as an info source.

Repro'd here, but they may go out of sync over time

These are not the default defaults, btw, just a reference list you can use `defaults read` to test against.

```
#!/bin/sh

# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
magenta='\033[0;35m'
cyan='\033[0;36m'

# Resets the style
reset=`tput sgr0`

# Color-echo.
# arg $1 = message
# arg $2 = Color
cecho() {
  echo "${2}${1}${reset}"
  return
}

# Set continue to false by default
CONTINUE=false

echo ""
cecho "###############################################" $red
cecho "#        DO NOT RUN THIS SCRIPT BLINDLY       #" $red
cecho "#         YOU'LL PROBABLY REGRET IT...        #" $red
cecho "#                                             #" $red
cecho "#              READ IT THOROUGHLY             #" $red
cecho "#         AND EDIT TO SUIT YOUR NEEDS         #" $red
cecho "###############################################" $red
echo ""

echo ""
cecho "Have you read through the script you're about to run and " $red
cecho "understood that it will make changes to your computer? (y/n)" $red
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  CONTINUE=true
fi

if ! $CONTINUE; then
  # Check if we're continuing and output a message if not
  cecho "Please go read the script, it only takes a few minutes" $red
  exit
fi

# Here we go.. ask for the administrator password upfront and run a
# keep-alive to update existing `sudo` time stamp until script has finished
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

###############################################################################
# General UI/UX

echo ""
echo "Would you like to set your computer name (as done via System Preferences >> Sharing)?  (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  echo "What would you like it to be?"
  read COMPUTER_NAME
  sudo scutil --set ComputerName $COMPUTER_NAME
  sudo scutil --set HostName $COMPUTER_NAME
  sudo scutil --set LocalHostName $COMPUTER_NAME
  sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $COMPUTER_NAME
fi

echo ""
echo "Hide the Time Machine, Volume, User, and Bluetooth icons?  (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  # Get the system Hardware UUID and use it for the next menubar stuff
  for domain in ~/Library/Preferences/ByHost/com.apple.systemuiserver.*; do
    defaults write "${domain}" dontAutoLoad -array \
      "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \
      "/System/Library/CoreServices/Menu Extras/Volume.menu" \
      "/System/Library/CoreServices/Menu Extras/User.menu"
  done

  defaults write com.apple.systemuiserver menuExtras -array \
    "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
    "/System/Library/CoreServices/Menu Extras/AirPort.menu" \
    "/System/Library/CoreServices/Menu Extras/Battery.menu" \
    "/System/Library/CoreServices/Menu Extras/Clock.menu"
fi

echo ""
echo "Hide the Spotlight icon? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
fi

echo ""
echo "Disable Spotlight indexing for any volume that gets mounted and has not yet been indexed before? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  echo 'Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume.'
  sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
fi

echo ""
echo "Change indexing order and disable some search results in Spotlight? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  # Yosemite-specific search results (remove them if your are using OS X 10.9 or older):
  #   MENU_DEFINITION
  #   MENU_CONVERSION
  #   MENU_EXPRESSION
  #   MENU_SPOTLIGHT_SUGGESTIONS (send search queries to Apple)
  #   MENU_WEBSEARCH             (send search queries to Apple)
  #   MENU_OTHER
  defaults write com.apple.spotlight orderedItems -array \
    '{"enabled" = 1;"name" = "APPLICATIONS";}' \
    '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
    '{"enabled" = 1;"name" = "DIRECTORIES";}' \
    '{"enabled" = 1;"name" = "PDF";}' \
    '{"enabled" = 1;"name" = "FONTS";}' \
    '{"enabled" = 0;"name" = "DOCUMENTS";}' \
    '{"enabled" = 0;"name" = "MESSAGES";}' \
    '{"enabled" = 0;"name" = "CONTACT";}' \
    '{"enabled" = 0;"name" = "EVENT_TODO";}' \
    '{"enabled" = 0;"name" = "IMAGES";}' \
    '{"enabled" = 0;"name" = "BOOKMARKS";}' \
    '{"enabled" = 0;"name" = "MUSIC";}' \
    '{"enabled" = 0;"name" = "MOVIES";}' \
    '{"enabled" = 0;"name" = "PRESENTATIONS";}' \
    '{"enabled" = 0;"name" = "SPREADSHEETS";}' \
    '{"enabled" = 0;"name" = "SOURCE";}' \
    '{"enabled" = 0;"name" = "MENU_DEFINITION";}' \
    '{"enabled" = 0;"name" = "MENU_OTHER";}' \
    '{"enabled" = 0;"name" = "MENU_CONVERSION";}' \
    '{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \
    '{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \
    '{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}'
  # Load new settings before rebuilding the index
  killall mds > /dev/null 2>&1
  # Make sure indexing is enabled for the main volume
  sudo mdutil -i on / > /dev/null
  # Rebuild the index from scratch
  sudo mdutil -E / > /dev/null
fi

echo ""
echo "Expanding the save panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true

echo ""
echo "Automatically quit printer app once the print jobs complete"
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true

# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
echo ""
echo "Displaying ASCII control characters using caret notation in standard text views"
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true

echo ""
echo "Save to disk, rather than iCloud, by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
fi

echo ""
echo "Reveal IP address, hostname, OS version, etc. when clicking the clock in the login window"
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName

echo ""
echo "Check for software updates daily, not just once per week"
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

echo ""
echo "Removing duplicates in the 'Open With' menu"
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

echo ""
echo "Disable smart quotes and smart dashes? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
  defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
fi

echo ""
echo "Add ability to toggle between Light and Dark mode in Yosemite using ctrl+opt+cmd+t? (y/n)"
# http://www.reddit.com/r/apple/comments/2jr6s2/1010_i_found_a_way_to_dynamically_switch_between/
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo defaults write /Library/Preferences/.GlobalPreferences.plist _HIEnableThemeSwitchHotKey -bool true
fi

###############################################################################
# General Power and Performance modifications

echo ""
echo "Disable hibernation? (speeds up entering sleep mode) (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo pmset -a hibernatemode 0
fi

echo ""
echo "Remove the sleep image file to save disk space? (y/n)"
echo "(If you're on a <128GB SSD, this helps but can have adverse affects on performance. You've been warned.)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo rm /Private/var/vm/sleepimage
  echo "Creating a zero-byte file instead"
  sudo touch /Private/var/vm/sleepimage
  echo "and make sure it can't be rewritten"
  sudo chflags uchg /Private/var/vm/sleepimage
fi

echo ""
echo "Disable the sudden motion sensor? (it's not useful for SSDs/current MacBooks) (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo pmset -a sms 0
fi

echo ""
echo "Disable system-wide resume? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
fi

echo ""
echo "Disable the menubar transparency? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.universalaccess reduceTransparency -bool true
fi

echo ""
echo "Speeding up wake from sleep to 24 hours from an hour"
# http://www.cultofmac.com/221392/quick-hack-speeds-up-retina-macbooks-wake-from-sleep-os-x-tips/
sudo pmset -a standbydelay 86400

################################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input

echo ""
echo "Increasing sound quality for Bluetooth headphones/headsets"
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40

echo ""
echo "Enabling full keyboard access for all controls (enable Tab in modal dialogs, menu windows, etc.)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

echo ""
echo "Disabling press-and-hold for special keys in favor of key repeat"
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

echo ""
echo "Setting a blazingly fast keyboard repeat rate"
defaults write NSGlobalDomain KeyRepeat -int 0

echo ""
echo "Disable auto-correct? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
fi

echo ""
echo "Setting trackpad & mouse speed to a reasonable number"
defaults write -g com.apple.trackpad.scaling 2
defaults write -g com.apple.mouse.scaling 2.5

echo ""
echo "Turn off keyboard illumination when computer is not used for 5 minutes"
defaults write com.apple.BezelServices kDimTime -int 300

echo ""
echo "Disable display from automatically adjusting brightness? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Display Enabled" -bool false
fi

echo ""
echo "Disable keyboard from automatically adjusting backlight brightness in low light? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Keyboard Enabled" -bool false
fi

###############################################################################
# Screen

echo ""
echo "Requiring password immediately after sleep or screen saver begins"
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

echo ""
echo "Where do you want screenshots to be stored? (hit ENTER if you want ~/Desktop as default)"
# Thanks https://github.com/omgmog
read screenshot_location
echo ""
if [ -z "${screenshot_location}" ]
then
  # If nothing specified, we default to ~/Desktop
  screenshot_location="${HOME}/Desktop"
else
  # Otherwise we use input
  if [[ "${screenshot_location:0:1}" != "/" ]]
  then
    # If input doesn't start with /, assume it's relative to home
    screenshot_location="${HOME}/${screenshot_location}"
  fi
fi
echo "Setting location to ${screenshot_location}"
defaults write com.apple.screencapture location -string "${screenshot_location}"

echo ""
echo "What format should screenshots be saved as? (hit ENTER for PNG, options: BMP, GIF, JPG, PDF, TIFF) "
read screenshot_format
if [ -z "$1" ]
then
  echo ""
  echo "Setting screenshot format to PNG"
  defaults write com.apple.screencapture type -string "png"
else
  echo ""
  echo "Setting screenshot format to $screenshot_format"
  defaults write com.apple.screencapture type -string "$screenshot_format"
fi

echo ""
echo "Enabling subpixel font rendering on non-Apple LCDs"
defaults write NSGlobalDomain AppleFontSmoothing -int 2

echo ""
echo "Enabling HiDPI display modes (requires restart)"
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true

###############################################################################
# Finder
###############################################################################

echo ""
echo "Show icons for hard drives, servers, and removable media on the desktop? (y/n)"
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
fi

echo ""
echo "Show hidden files in Finder by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.Finder AppleShowAllFiles -bool true
fi

echo ""
echo "Show dotfiles in Finder by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder AppleShowAllFiles TRUE
fi

echo ""
echo "Show all filename extensions in Finder by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write NSGlobalDomain AppleShowAllExtensions -bool true
fi

echo ""
echo "Show status bar in Finder by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder ShowStatusBar -bool true
fi

echo ""
echo "Display full POSIX path as Finder window title? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
fi

echo ""
echo "Disable the warning when changing a file extension? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
fi

echo ""
echo "Use column view in all Finder windows by default? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.finder FXPreferredViewStyle Clmv
fi

echo ""
echo "Avoid creation of .DS_Store files on network volumes? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
fi

echo ""
echo "Disable disk image verification? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.frameworks.diskimages skip-verify -bool true
  defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
  defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
fi

echo ""
echo "Allowing text selection in Quick Look/Preview in Finder by default"
defaults write com.apple.finder QLEnableTextSelection -bool true

echo ""
echo "Show item info near icons on the desktop and in other icon views? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
fi

echo ""
echo "Show item info to the right of the icons on the desktop? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  /usr/libexec/PlistBuddy -c "Set DesktopViewSettings:IconViewSettings:labelOnBottom false" ~/Library/Preferences/com.apple.finder.plist
fi

echo ""
echo "Enable snap-to-grid for icons on the desktop and in other icon views? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
fi

echo ""
echo "Increase grid spacing for icons on the desktop and in other icon views? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
fi

echo ""
echo "Increase the size of icons on the desktop and in other icon views? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
  /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
fi

###############################################################################
# Dock & Mission Control
###############################################################################

echo "Wipe all (default) app icons from the Dock? (y/n)"
echo "(This is only really useful when setting up a new Mac, or if you don't use the Dock to launch apps.)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.dock persistent-apps -array
fi

echo ""
echo "Setting the icon size of Dock items to 36 pixels for optimal size/screen-realestate"
defaults write com.apple.dock tilesize -int 36

echo ""
echo "Speeding up Mission Control animations and grouping windows by application"
defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write com.apple.dock "expose-group-by-app" -bool true

echo ""
echo "Set Dock to auto-hide and remove the auto-hiding delay? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
  defaults write com.apple.dock autohide -bool true
  defaults write com.apple.dock autohide-delay -float 0
  defaults write com.apple.dock autohide-time-modifier -float 0
fi

###############################################################################
# Chrome, Safari, & WebKit
###############################################################################

echo ""
echo "Privacy: Don’t send search queries to Apple"
defaults write com.apple.Safari UniversalSearchEnabled -bool false
defaults write com.apple.Safari SuppressSearchSuggestions -bool true

echo ""
echo "Hiding Safari's bookmarks bar by default"
defaults write com.apple.Safari ShowFavoritesBar -bool false

echo ""
echo "Hiding Safari's sidebar in Top Sites"
defaults write com.apple.Safari ShowSidebarInTopSites -bool false

echo ""
echo "Disabling Safari's thumbnail cache for History and Top Sites"
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2

echo ""
echo "Enabling Safari's debug menu"
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true

echo ""
echo "Making Safari's search banners default to Contains instead of Starts With"
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false

echo ""
echo "Removing useless icons from Safari's bookmarks bar"
defaults write com.apple.Safari ProxiesInBookmarksBar "()"

echo ""
echo "Enabling the Develop menu and the Web Inspector in Safari"
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true

echo ""
echo "Adding a context menu item for showing the Web Inspector in web views"
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

echo ""
echo "Disabling the annoying backswipe in Chrome"
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -bool false

echo ""
echo "Using the system-native print preview dialog in Chrome"
defaults write com.google.Chrome DisablePrintPreview -bool true
defaults write com.google.Chrome.canary DisablePrintPreview -bool true

###############################################################################
# Mail
###############################################################################

echo ""
echo "Setting email addresses to copy as '<EMAIL>' instead of 'Foo Bar ' in Mail.app"
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false

###############################################################################
# Terminal
###############################################################################

echo ""
echo "Enabling UTF-8 ONLY in Terminal.app and setting the Pro theme by default"
defaults write com.apple.terminal StringEncodings -array 4
defaults write com.apple.Terminal "Default Window Settings" -string "Pro"
defaults write com.apple.Terminal "Startup Window Settings" -string "Pro"

###############################################################################
# Time Machine
###############################################################################

echo ""
echo "Prevent Time Machine from prompting to use new hard drives as backup volume? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
fi

echo ""
echo "Disable local Time Machine backups? (This can take up a ton of SSD space on <128GB SSDs) (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 hash tmutil &> /dev/null && sudo tmutil disablelocal
fi

###############################################################################
# Messages #
###############################################################################

echo ""
echo "Disable automatic emoji substitution in Messages.app? (i.e. use plain text smileys) (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false
fi

echo ""
echo "Disable smart quotes in Messages.app? (it's annoying for messages that contain code) (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
fi

echo ""
echo "Disable continuous spell checking in Messages.app? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "continuousSpellCheckingEnabled" -bool false
fi

###############################################################################
# Transmission.app #
###############################################################################

echo ""
echo "Do you use Transmission for torrenting? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 echo ""
 echo "Setting up an incomplete downloads folder in Downloads"
 mkdir -p ~/Downloads/Incomplete
 defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true
 defaults write org.m0k.transmission IncompleteDownloadFolder -string "${HOME}/Downloads/Incomplete"

 echo ""
 echo "Don't prompt for confirmation before downloading"
 defaults write org.m0k.transmission DownloadAsk -bool false

 echo ""
 echo "Trash original torrent files"
 defaults write org.m0k.transmission DeleteOriginalTorrent -bool true

 echo ""
 echo "Hide the donate message"
 defaults write org.m0k.transmission WarningDonate -bool false

 echo ""
 echo "Hide the legal disclaimer"
 defaults write org.m0k.transmission WarningLegal -bool false
fi

###############################################################################
# Sublime Text
###############################################################################
echo ""
echo "Do you use Sublime Text 3 as your editor of choice, and is it installed?"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
 # Installing from homebrew cask does the following for you!
 # echo ""
 # echo "Linking Sublime Text for command line usage as subl"
 # ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

 echo ""
 echo "Setting Git to use Sublime Text as default editor"
 git config --global core.editor "subl -n -w"
fi

###############################################################################
# Kill affected applications
###############################################################################

echo ""
cecho "Done!" $cyan
echo ""
echo ""
cecho "################################################################################" $white
echo ""
echo ""
cecho "Note that some of these changes require a logout/restart to take effect." $red
cecho "Killing some open applications in order to take effect." $red
echo ""

find ~/Library/Application\ Support/Dock -name "\*.db" -maxdepth 1 -delete
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
 "Dock" "Finder" "Mail" "Messages" "Safari" "SystemUIServer" \
 "Terminal" "Transmission"; do
 killall "${app}" > /dev/null 2>&1
done

```
Upvotes: 3 <issue_comment>username_3: So after poking around in bash builtins, I came across the defaults command again and decided to look at it's help file.

```
defaults read

```

will output all the defaults, but this is just an output of them all with no formatting and no indication as to what domain or default it belongs to.

```
defaults domains

```

will output all the default domains so I decided that I could recreate the defaults read with extra output and formatting, so as a test I ran this:

```
for i in `defaults domains | tr ',' '\n'`; do echo "********* READING DEFAULT DOMAIN $i **********"; echo; defaults read $i; done

```

Which will do the following:

run *defaults domains*, then format it so each domain is on a single line, then run through each line and run *defaults read* against it while adding the READING DEFAULT DOMAIN text to output before dumping the default to output. Obviously it could use some more formatting, etc, but at least this is a way of separating each domain and adding custom formatting. From there You could go and dig into each section and see how best to format them.

I'll play with it some more and see if I can come up with a decent report that doesn't look like total crud.
Upvotes: 5 <issue_comment>username_4: Recent OS X has:

```
defaults export  - # Writes domain as an xml plist to stdout
defaults export   # Writes domain as an binary plist
defaults -currentHost domains
defaults domains

```

Will give you your domains. Run after creating a new user and you should be good. Moving forward.

Shovel 'em into git and tinker away.
Upvotes: 3 <issue_comment>username_5: Print out all domains on new lines:

```bash
defaults domains | tr , '\n'

```
Upvotes: 0


<issue_start>username_0: Recently I've been using the Workflow app to create home screen shortcuts that launch third party apps via their respective URL-schemes. This avoids the annoying initial time it takes LCP to load up its home grid on my iPhone 5. However, I've been unable to move one particular third party URL-scheme onto my home screen because it involves an unfortunately necessary lc-callback, and thus needs to be launched from within LCP in order to work. (Lc-callbacks are LCP's special workaround for when an app doesn't support URL chaining via x-callback-url. One has to manually return to LCP from the third party app, but once done the workflow may continue on.)

Does anyone know LCP's own specific URL scheme syntax for launching an action? I've tried things like 'launch://action={{ACTION\_NAME}}' but this only opens LCP and nothing else.<issue_comment>username_1: There are two ways to do that.

The easy way is to use the "List view".

As long you use the preview window it will mark email as read as soon it shows in the preview window.

The more complicated is to move the cursor upward then delete, now it wont mark the unread as read because it will move to next read (assuming it is above the just deleted). Try it, and take not which way did you move /up or down.
Upvotes: 0 <issue_comment>username_2: The easiest (albeit slightly lengthy) way to do this is to create a custom service, like so:

Create a new Automator Service. Have it take no input in Mail and put the following code into a "Run JavaScript" action:

```
mail = Application('Mail')
mail.includeStandardAdditions = true
for (i in mail.selection()) {
    mail.selection()[i].delete()
}

```

Save the service. Then go to System Preferences > Keyboard, select Shortcuts at the top, and select Services in the sidebar. Scroll to the bottom to where it says "General" and you should see your Service there. Assign it a keyboard shortcut. This shortcut (so long as it does not conflict with any existing shortcuts) will allow you to delete a selected Mail message without selecting the next conversation.
Upvotes: 1


<issue_start>username_0: I'm referring to the 2015 Macbook Pro, 15-inch, with the AMD Radeon R9 M370X with 2GB GDDR5 memory. Can this drive two Ultra HD monitors (3840 x 2160) at 60FPS each? If so, would you be able to simultaneously use the built-in display?

To be clear, I'm referring to SST (single-stream transport) monitors, not MST (multi-stream transport).

You'd have to plug each monitor into a Thunderbolt port, since HDMI supports only 30FPS. Are both Thunderbolt ports on different Thunderbolt buses, or the same? In the latter case, there may not be enough bandwidth.<issue_comment>username_1: If you have used Apple ID, you can use your fingerprint to unlock your iPhone 6. Are you able to interact with your screen?
Upvotes: 0 <issue_comment>username_2: Try this: <https://discussions.apple.com/message/21852561#21852561>

>
> PLfrompasadena
>
>
> Jul 31, 2014 9:35 PM
>  **Re: Is there a way to unlock an iphone with a non-responsive touch screen?** in response to Princesscheena I am posting this solution
>  hoping that it will help others. My son dropped his iPhone5C and the
>  screen is cracked. One small area still works, but he couldn't enter
>  his passcode and therefore couldn't sync with iTunes to backup the
>  iPhone before giving it to someone to repair. I searched online and
>  most people said it couldn't be done. However, in this particular
>  situation I was able to log in. Essentially, I was able to turn on
>  the VoiceOver mode and that allowed me to use the small area of the
>  screen that still functioned. In VoiceOver mode, you swipe left/right
>  to highlight different keys on the screen that can be selected by
>  double-tapping. Step by step, this is what I did:
>
>
> * Hold Home key to turn on Siri, told Siri to 'Turn on VoiceOver'
> * Press Home key to get to main unlock screen
> * Swipe right/left until 'Slide to Unlock' is selected
> * Double tap Now the passcode page comes up
> * Swipe right/left to highlight the correct keys on the keyboard and double tap to 'enter' each one.
> * Swipe to highlight enter/done and double tap to submit the passcode. Once the iPhone was unlocked, the first thing I did was backup the
>  phone and download all the photos. Hope this helps people. Phil
>
>
>

Hope that works for you.
Upvotes: 1


<issue_start>username_0: I have an iPhone 5 and I just received notice that my data usage for free is almost up. I presently have 1GB. I am total unaware of what data usage is and should I change to a plan with 2GB.

Do I have to do something to make sure I use Wi-Fi in all places that I am.

Exactly what takes up my data usage when using my phone? Is it from receiving a message, text, taking photos. Please be specific if possible.<issue_comment>username_1: You need to contact your Carrier, i.e. Verizon, AT&T, Sprint etc, to see what they define as Data Usage.

That said, generally speaking, any communication that you send/receive/request over their network while directly connected to their network, and while Roaming, is typically counted under Data Usage. This could be emails, websites, pictures, videos, etc. Typically when connected to a Wi-Fi Access Point then Data Usage Accounting is not counted against your monthly Data Usage allotment.
Upvotes: 1 <issue_comment>username_2: Really, data usage is anything that do over the internet when not connected to a Wi-Fi network, when you're on your iPhone's cellular connection. Email, web browsing, YouTube, even iMessage, games played online, almost anything that requires an internet connection all consume data. If you want to consume less data try not to watch online videos over a cellular connection and always connect to your home Wi-Fi network.
Upvotes: 0


<issue_start>username_0: Is it possible to have an icon in the dock which is a link to some specific site and opens it in Chrome when clicked?

I'd like to put Trello in the Dock so that to quickly access it when needed.<issue_comment>username_1: Yes it is. **If Google Chrome is your default browser.**

Procedure

1. Go to Trello.com in Chrome
2. Drag the text in the URL field to the desktop. This will create a document that ends in .webloc. EG *"Trello.webloc"*
3. Drag that icon into the right side of the dock (it's a document and has to be to the right of the divider bar)

*I had forgotten that you could drag the bookmark out of the URL bar directly into the dock.* Do it that way if it suits you, either works.

Now when you click on that icon trello.com (or any .webloc document) will open in your default browser.

(This works in Safari and I don't have Chrome handy on this Mac to test. I am assuming that Chrome for Mac behaves the same as Safari in this respect)
Upvotes: 2 [selected_answer]<issue_comment>username_2: There are two sides to the Dock, the one to the left of the Separator is for the Dock Tiles for launching Applications that are set to Keep in Dock and Dock Tiles for open applications not already set to Keep in Dock and the one to the right of the Separator is for Stacks, the Trash, minimized Application windows and things like a shortcut, if one wants.

You can drag and drop, grabbing the icon in the Address field of the Browser to the right side of the Dock Separator however that will open in the default Browser that is set to open "http" and or "https" URLs depending on what the *handler* for those type URLs are. (I'm mentioning that in this particular way because while normally both "http" and or "https" URLs, by *default*, open in the same Browser, they don't on my system. I've set "http" URLs to open in one Browser and "https" URLs to open in a different Browser.)

If Chrome is not your *default* Browser or is not set to open "http" and or "https" URLs then the one that is will be the one that the Dock Tile for the target URL is going to open in.

If you want the Dock Tile for the target URL to be on the left side of the Dock Separator then it will need to be an application and this can be an AppleScript application that opens a given URL in the *default* and or a *given* Browser.

If you want it on the left side of the Dock Separator let me know, I'll add instructions on creating the AppleScript App that can open the *target* URL.
Upvotes: 0 <issue_comment>username_3: Since the inception of OS X, one should be able to drag a URL snippet and pin it directly to the right side of the Dock, next to pinned folders (later joined by "Stacks") and the Trash.

To open it with your preferred browser, why not create a simple scriptable program? For Safari, for example, I would open Terminal and write something like this:

```
cd Desktop && echo "#!/bin/bash
/Applications/Safari.app/Contents/MacOS/Safari http://www.google.com"
> pager && chmod +x $(pwd)/pager

```

Of course, Google and Safari can be interchanged with what you desire, and pager could be renamed whatever you want. You can then just pin "pager" to the Dock, (and if you want to beautify it a bit, you could just open Get Info from another file or app and also click Get Info for pager. Click the icon you want to copy and click Copy. Then, click pager's 'exec' icon and click Paste to replace it.)

Or, if you really just don't like Safari, you can switch default browsers entirely. Start by going to Safari -> Preferences and choose Chrome as the default. In Chrome, choose it as the default if it hasn't been applied already. If the pinned URL *still* opens in Safari after making these changes, switch to the Finder and find a webpage, or another Safari badged file. Either by right-clicking or with the Action menu in the Finder, click Get Info. Under "Open With" choose Chrome. Of course, to switch it back to Safari, repeat the above. With 10.10, you might want to head to General preferences and Extensions as well just in case. But it really isn't that hard to do, and just *one* of the above ought to do it!
Upvotes: 1


<issue_start>username_0: At work I have 3 devices to experiment with today: An iPhone 5, an iPhone 6, and an iPad mini.

The iPhone 5 had iOS 8.4.1 installed on it. Early this afternoon (US Eastern time zone) iOS 9 showed up on the iPhone 5 as an update.

My iPhone 6 and iPad Mini both have iOS 8.4 on them (Not 8.4.1, 8.4). Software update on both devices offers to update to 8.4.1.

After about an hour of waiting, I decided to try installing 8.4.1 on my iPhone 6. Sure enough, once I was through the install process and actively online, I'm offered an update to iOS 9.0. My iPad mini still shows the next update as iOS 8.4.1, not 9.0.

WTF? These are big, time-consuming updates. It seems silly to have to download and run the full install process for an intermediate step update.

Is this how Apple does over the air updates to iOS 9? I thought Apple bundled updates into a "combined update?" but don't see a way to do hat other than downloading the install image and using iTunes to update over USB.<issue_comment>username_1: No it does not. You can have 8.0 installed and update directly to iOS 9.0. Sometimes you have to wait for Apple to stop signing the last release (iOS 8.4.1) before it will offer up the next release (iOS 9.0). Until then you should be able to download and install the iOS 9.0 update through iTunes.
Upvotes: 0 <issue_comment>username_2: this problem occurs when you already have a downloaded update (for example, you have downloaded 8.4.1 but not installed it yet).
Easiest way to correct is to delete the update (Settings-General-Usage-Manage Storage - look for iOS8.4.1 (or whatever version has been downloaded).

After deleting the old update, a check for software update will show iOS9
Upvotes: 4 [selected_answer]<issue_comment>username_3: Yes, if you haven't installed 8.4.1 and you haven't been prompted to install 9.0, then it appears that the installation of 8.4.1 will enable you to also upgrade to 9.0.

I resisted upgrading to 8.4.1 because I don't really care for Apple Music. I really wanted 9.0 though but until today the update was not enabled for me. I finally decided to try installing 8.4.1 as a gateway to 9.0 and it worked. Immediately after my upgrade, I went to check for other upgrades and was pleased to see that 9.0 was now available.
Upvotes: 2 <issue_comment>username_4: No need to download iOS 8.4.1, it will upgrade straight to iOS 9 from iOS 8.2.
Upvotes: 0 <issue_comment>username_5: Deleting the downloaded 8.4.1 from my iPhone immediately opened up downloading 9.0. I would agree that you don't need to install 8.4.1 first.
Upvotes: 2


<issue_start>username_0: Apple highlights that an iPhone — and presumably other iOS devices — will use light and proximity sensors to determine whether it's laying face-down, and stop the screen from turning on even when notifications come in.

It does not seem to work on my iPhone 6. Do I have to enable low power mode for this to work?<issue_comment>username_1: Yes. You should enable low power mode for it to work
Upvotes: 0 <issue_comment>username_2: The motion coprocessor setting are what govern this battery saving option.

Settings > Privacy > Motion & Fitness > Fitness Tracking

On setting allow the motion coprocessor and proximity sensors to shut off the screen if they detect a face down orientation.

You can test the sensors by checking motion in the health app for step count (for instance) and by making a call and testing the proximity sensor turning off the screen when it is covered.

See this nice article for more information: <http://www.iphonehacks.com/2015/09/why-facedown-detection-feature-in-ios-9-doesnt-support-iphone-5-iphone-4s-ipads-and-ipod-touches.html>
Upvotes: 3 [selected_answer]


<issue_start>username_0: I want to see my detailed stats about my previous run.

I tried searching for a manual - <https://support.apple.com/en-gb/HT204523> - but I don't seem to find such option.

On this occasion I was running with Apple Watch only (no iPhone, no GPS) but if I have the outline I manually set the starting point.

But first things first - how do I access data from my previous workout?<issue_comment>username_1: There's 3rd-party apps that provide such functionality, but nothing made by Apple on the Apple Watch itself, probably due to simplicity.
Upvotes: 0 <issue_comment>username_2: The historical data (other than the last summary data for each activity) is available in two places by default:

1. On the paired iPhone - you can use the activity app to review your workouts as well as going into health app to review data.
2. On the watch itself - you can look at today's workout(s) in the Activity app, but not go back in time as of Watch OS 2.0
Upvotes: 2 [selected_answer]


<issue_start>username_0: I have a problem with my recovery partition. Before update to the el-capitan I had both osx and windows on the same ssd disc created with Boot Camp. The problem is that something went wrong during the upgrade to el-capitan, and I decided to remove the windows partition through Boot Camp. My disc has 250 GB, but for my system is available only 180GB, and I'm not able to find how I can extend the size of my partition. Below I'm attaching the screen from Disc Utility.

[![DIsc Utility](https://i.stack.imgur.com/b69BO.png)](https://i.stack.imgur.com/b69BO.png)

Do you know how can I use my free disc space? Probably I have to move my Recovery partition to the end of my disc, but I'm not so sure about that.

And here is the print screen from `diskutil list` command:
[![enter image description here](https://i.stack.imgur.com/i7B9O.png)](https://i.stack.imgur.com/i7B9O.png)<issue_comment>username_1: To fix:

* Boot into the OS as normal.
* Open a terminal and type: `diskutil list`
* Repair the disk: `diskutil repairVolume /dev/disk0s3` (where disk0s3 is your recovery disk)
* Verify the disk: `diskutil verifyVolume /dev/disk0s3`
* Resize the partition: `sudo diskutil resizeVolume /dev/disk0s3 650M` (and enter your Mac passcode)

If successful, restart your Mac and after open disk utility and resize your core partition. Done.
Upvotes: 2 <issue_comment>username_2: I had a similar problem and resolved by using Disk Utility that was on an external drive with Sierra installed.

Hope that helps

Mark
Upvotes: 0


<issue_start>username_0: I upgraded my MacBook Air early 2014 to El Capitan from Yosemite.
I'm encountering random lags , especially while app switching.

Is downgrading to OS X Mavericks possible ? (My MBA came preinstalled with Mavericks)<issue_comment>username_1: Downgrading isn't possible, only erasing and starting from scratch.

You can always make a backup of your data, then manually restore it to your MacBook after you install Mavericks. I'd recommend just an external HD to copy all of your home folders (Desktop, Music, Documents, etc.); then when you finish setting up Mavericks, just copy the data back.
Upvotes: 0 <issue_comment>username_2: If your Mac originally came with OS X Mavericks installed and you do not have a separate USB Installer for OS X Mavericks or never downloaded a complete OS X Mavericks Installer from the App Store, from which you can create a USB OS X Mavericks Installer, then you'd have to wipe the HDD/SSD so the Recovery HD was not there and then start the Mac using [OS X Internet Recovery](https://support.apple.com/en-us/HT201314) (Command-R). Without the aforementioned USB Installer then OS X Internet Recovery is the only way to get what originally shipped on your Mac back.

Note: If in the past you had downloaded the full Installer for OS X Mavericks from the App Store but no longer have it you can still download it again from the App Store under Purchased and then create a USB Installer from it.

**Be sure you are properly backed up before proceeding to reinstall, by whatever means.**
Upvotes: 2 [selected_answer]


<issue_start>username_0: Ive got facetime on my laptop working with my phone which allows me to make and receive calls (these are phone calls as opposed to facetime audio calls).

Ive also got messages on my laptop but with the messages it seems to only let me send and receive imessages is there a way i can set it up to also allow me to make and receive incoming SMS messages ?

On the [apple support website](https://support.apple.com/kb/PH20148?locale=en_US&viewlocale=en_US) i can see that that it seems to be possible, but when i got to messages on my machine i only get the option to iMessage.

---

My laptop is an MBP running 10.10.5, My phone is a iphone5s running iOS8.x (latest 8 version)

This is my current messages setup :
[![enter image description here](https://i.stack.imgur.com/28dRi.png)](https://i.stack.imgur.com/28dRi.png)

And this is the setup on my phone :

![](https://i.stack.imgur.com/ZJnjp.png)<issue_comment>username_1: You need Messages set up to receive at your phone number as well as email addresses, like this

[![enter image description here](https://i.stack.imgur.com/ATcSn.png)](https://i.stack.imgur.com/ATcSn.png)

& start new conversations from the phone number too.
Upvotes: 0 <issue_comment>username_2: <http://www.macworld.co.uk/how-to/mac/how-send-sms-texts-in-yosemite-3582821/>

Follow the link above it worked for me. All the best.

Make sure you are signed in to iCloud on both your iOS device and Mac using the same Apple ID.
Upvotes: 1


<issue_start>username_0: I'm currently running OS X 10.11.1 and find this weird thing in Notification center. So what it stand's for and how to remove if it's not necessary?[![enter image description here](https://i.stack.imgur.com/5W3j9.png)](https://i.stack.imgur.com/5W3j9.png)<issue_comment>username_1: This is part of the private CoreFollowup System Framework at

```
/System/Library/PrivateFrameworks/CoreFollowUp.framework/Versions/A/Support/followupd

```

There is no documentation about it, but the header files found at (that's for iOS, but I guess the framework is the same):

<https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks/CoreFollowUp.framework>

don't show any evil things.

I suppose, it's for "following up" on notifications posted by other applications. There is an internal database of which the statements can be grabbed from the binary. It only contains title, body, some IDs and dates. Example:

```
INSERT INTO notifications (item_id, title, body, unlock_label, relevance_date, activate_action_id, dismiss_action_id, clear_action_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)

```

So, no – you should and cannot remove it.

[EDIT]

Regarding the icon. Some examples of system applications having that icon:
[![icons](https://i.stack.imgur.com/bDeiY.png)](https://i.stack.imgur.com/bDeiY.png)
Upvotes: 4 [selected_answer]<issue_comment>username_2: This looks like it's involved in the mechanics of notifications on a low level. My guess is that it has been there all along, but this time the developer forgot to hide it and it escaped testing.
Upvotes: 1 <issue_comment>username_3: 1. Go to AirDrop in Finder.
2. Set the setting to let 'no one' find you.
3. Don't send any files from iOS or other devices using AirDrop.
4. Restart Mac.
5. Gone.

I tested this with an iMac, a Mac Mini, and a Macbook Air 13.
All restarted without followupd appearing any more.

I can recommend PhotoSync app to use instead to transfer files wirelessly which avoids this problem, and works between Mac, Windows, iOS and Android devices, making it a perfect solution for wireless transfer between multiple operating systems.

I am convinced it is AirDrop since it allows iOS devices to transfer files to OS X, because of the fact that when I AirDrop a file from my iPad or iPhone to the Mac, a notification banner and sound pops out from the right side of screen. Also, in Notification Center settings in OS X El Capitan, there is *no* AirDrop present to deactivate banners and sounds, and as soon as I AirDrop a file to Mac, followupd appears in the notifications again, with *all* settings reactivated to banners and sounds.
Hence, even if you deactivate all tick boxes in followupd, as soon as you AirDrop to Mac from another device, it is instantly reinstated.

[![AirDrop settings](https://i.stack.imgur.com/jnnZ1.png)](https://i.stack.imgur.com/jnnZ1.png)
Upvotes: 2


<issue_start>username_0: This question has already been asked [here](https://stackoverflow.com/questions/2176532/how-to-map-caps-lock-key-in-vim). The accepted answer says it is not possible. Other answers provide a way to do it on linux but I have not check if it worked. I am most interested in knowing if there is a way to do it for mac (although you can post answers for linux as well).

I am only reposting this question here because the other question on SOF is more than five years old. Ideally, I would like to remap to  key to `CAPS LOCK`.<issue_comment>username_1: If you are using the `X11` environment, you may achieve what you want
with the following commands:

```
xmodmap -e 'clear lock'

```

which means: from now on, Caps\_Lock key isn't anymore a keyboard modifier
and fall back to a normal key

```
xmodmap -e 'keysym Caps_Lock = Escape'

```

which means: get the keycode of `Caps_Lock` and from now on assign it the
keysym of `Escape`.

**Note**: this receipe works on any Unix.
Upvotes: 1 <issue_comment>username_2: The question you posted is still up to date. I've been using the AutoHotkey solution under windows for some years and I'm quite happy with it. I find it useful to also remap the Capslock to Esc under Firefox+Pentadactyl.

As there is no AutoHotkey for mac, you [should look for its alternatives](http://alternativeto.net/software/autohotkey/?platform=mac).
Upvotes: 0 <issue_comment>username_3: <NAME> describes a [Mac specific way](http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#controlescape) in his blog on the crafting a modern Space Cadet. He also calls out [these](http://c2.com/cgi/wiki?RemapCapsLock) instructions in his tutorial on Vim.
Upvotes: 0


<issue_start>username_0: I would like to remove a user account under El Capitan by following [this](https://support.apple.com/kb/PH18890?locale=en_US) recipe:

1. Choose Apple menu > System Preferences, then click Users & Groups.
2. Click the lock icon to unlock it, then enter an administrator name and password.
3. Select the user you want to delete, then click Remove below the list of users.
4. ...

What happens is that I cannot select the to-be-deleted user at this point (I can only select the current account plus "Guest User"). What could be wrong. (And yes, I am using an account with administrator privileges.)<issue_comment>username_1: Make sure that the user you want to delete is actually logged out. You can't force delete a currently logged in user.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Once you select the user to be deleted,at the bottom hit the minus sign, from there you will be directed on how you wish to delete the user and any files associated with the user....
Upvotes: -1


<issue_start>username_0: Is it possible to get Apple Music on Apple TV 3? I can stream to it from my iMac, but it would be nice to be able to launch Apple Music from TV directly...<issue_comment>username_1: I may be possible o use Apple Music on the 3rd generation Apple TV. I expect that you would have to get an 4th generation Apple TV, hack it to access the files for the Music app, then hack the 3rd gen Apple TV to install the Music app. Then hack it some more to get it to run the Music app. Might I suggest that with less effort you could save the money to upgrade to the 4th generation Apple TV in a few months. Patience.
Upvotes: -1 <issue_comment>username_2: No, previous versions of the AppleTV do not support the new Apple Music service. In order to use the service with AppleTV, you'll need to either 1) stream from a compatible device, such as an iPhone / iPad / Mac, or 2) upgrade to the latest 4th generation AppleTV.
Upvotes: 3 [selected_answer]<issue_comment>username_3: no hifi, in apple tv4 only hdmi for movie, no hifi...

Only with apple tv 3 that you could hook it up to a decent DAC to have hifi.

it is a shame apple didn't care about apple tv3 and allowing music on it.

And worst of all, when you start subscribing to music, Apple unplug the imatch fonction, so your apple tv, is useless.
Upvotes: -1 <issue_comment>username_4: Just stream Apple Music from your iPhone or iPad to the Apple TV via AirPlay.
Upvotes: 0


<issue_start>username_0: Every time I connect on iTunes Connect (OS X 10.10, Chrome) I have to fill in my password, which is very tiring. Chrome autofills all my passwords, why doesn't it work there? Even with the 'remember me' check<issue_comment>username_1: The new login of iTunes Connect uses an AJAX form for signing in but does not use a  tag for it which prevents Chrome from saving the password.

I was so annoyed that I built a tiny [Chrome Extension](https://chrome.google.com/webstore/detail/itunes-connect-save-passw/fanebhhbhodomldojlachocjkafjkpdk) to fix this issue and allow Chrome to save the password.
Upvotes: 3 [selected_answer]<issue_comment>username_2: There is a cross-browser, cross-platform solution. No addons required, but it takes 3 minutes and some html knowledge:

Adding a temporary fake form
============================

Specific instructions here are for Chrome and Firefox (on macOS), but it should be extremely similar for other browsers and other platforms (replace `Cmd` with `Ctrl`). Also works with some sites other than App Store Connect.

1. Right click the input field (username) and select `Inspect` or `Inspect element`.
2. Remember or write down the value of `name` or `id` of that field. Repeat these steps also for the password input field.
3. Press `Cmd`+`Shift`+`C` to select any element to replace it with a fake input field.
4. Press `F2` to edit that element's source.
5. Press `Cmd`+`A` to select the whole element's source.
6. Paste the following instead of the element's source:

```

```

7. Replace `IDENTIFIER` and `PASSWORD` with the ones you got from step 2.
8. Press `Cmd`+`Enter` to apply your changes. You can now close the developer menu.
9. Type your username and password into the 2 new input fields that appeared.
10. Click `Submit`. You might get an error or nothing visible might happen.
11. Now your browser should offer to save the credentials in a popup or maybe you need to click a key shaped button in the corner of the address bar to get that popup.

---

Original source with extra background [here](https://superuser.com/a/1084364/290915).
Almost same answer to a different question [here](https://superuser.com/a/1489906/290915).

Firefox 70.0 or newer
=====================

Firefox has now added the option to manually add a login to your built-in password manager (called Firefox Lockwise) which you can find when you type `about:logins` to your address bar. Click the `Create New Login` button at the bottom left. You should put `https://appleid.apple.com` as the Website address.
Upvotes: 0


<issue_start>username_0: **I know that there are many threads about resetting/retrieving an admin password, but bear with me please and I'll explain why they don't work for me.**

I recently moved in to a property only to find that the previous tenant had left behind a mid 2007 iMac - great, right!? No. The iMac works... as a CPU. The screen has been smashed up and has only a faint light emitting from the lower left corner so I have had to resort to buying a Mini DVI to VGA (which works perfectly as I'm currently on it on a guest account). This is where it gets a bit more complicated though. I wish to reset the iMac, but cannot without using the UIs accessed through reboot - when I access these (CMD+R, CMD+S, etc.) the external display isn't recognised so I go completely blind as to what is happening. I have read a few threads that say resetting an iMac is complicated, so I have thought about just creating myself a new administrator account, deleting the old one and all of the files with it - but without the old admin password, I can't do that - again, all threads resort to UIs accessed via reboot which I can't VISIBLY access...

So how can I reset the admin password without a working screen?<issue_comment>username_1: Do you have access to a second Mac with the same I/O bus (Thunderbolt or FireWire)? You can put the iMac into Target Disk Mode by holding down the T key when booting. The second connected Mac can then be booted, holding down the Option key to allow you to select the target disk. Make your modifications, and shutdown your booted Mac then reboot the iMac in TDM.

Ref: <http://www.macobserver.com/tmo/answers/how-to-use-target-disk-mode-to-boot-from-another-macs-hard-drive>
Upvotes: 1 <issue_comment>username_2: Simply create a new admin account by reinitiating the OS X Setup Assistant:

Boot to Single User Mode by holding `⌘``S` on startup with the external display attached.

Wait a few minutes and then enter ("blindly"):

```
mount -uw /

```

wait a second or two and then enter:

```
rm /var/db/.AppleSetupDone
reboot

```

In Single User Mode the US-en keyboard layout is used. If you have a non-Apple or a non-US-en Apple keyboard you have to adapt the input.

After the restart the OS X Setup Assistant opens and you can configure your Mac. Go through the steps of creating a new admin account.

After logging in on the new admin account, go to the Users & Groups preference pane. Select the old account(s), press the minus button for each and delete all files associated with them.
Upvotes: 3 [selected_answer]


<issue_start>username_0: Last night I was using my late 2011 MBP (higher res screen, dual Intel/AMD graphics), and the screen suddenly went black. I left it go for a minute - no change. I open and closed the lid – it suspended just fine, but opening the lid back up gave me nothing. So, I killed the power.

Turning it back on, the screen now had thin green lines overlayed over the apple logo boot screen. This stays for a moment – until the loading scroll bar reaches about 1/3 to 1/2 of the way across – and then the screen goes grey.

The same thing happens if I try to launch recovery, internet recovery, or diagnostics whatever. BIOS shows ok (except the overlayed green lines), and then a grey screen. If I hold option, it will show me disk selection (I triple boot OS X/Linux/Windows). But in all cases, the screen goes grey when I try to select something.

The only thing I was able to get to run was internet based diagnostics. I ran extended tests, and no problems were detected (yeah, right).

I've also tried resetting NVRAM, but it doesn't seem to work properly. Usually it boots, goes bong, reboots, and then loads. Instead, it booted, went bong, and then the screen went grey. It never restarted itself.

At the moment I am pretty sure it's either an issue with the the display cable if I'm lucky, or the dedicated graphics adapter or the motherboard (Intel graphics are on-die on the processor) if I'm not.

I have NOT tried hooking it up via dongle to an external display to see if the issue exists there as well, I'll try that this evening.

Has anyone else experienced this issue? Any other possibilities I could look into? I'm assuming that a repair at the Apple Store will be prohibitively expensive.<issue_comment>username_1: You may be suffering from a known graphics card issue. The good news, if you are, is that Apple will cover it via a [repair extension program](https://www.apple.com/support/macbookpro-videoissues/):

>
> Apple has determined that a small percentage of MacBook Pro systems may exhibit distorted video, no video, or unexpected system restarts. These MacBook Pro systems were sold between February 2011 and December 2013.
>
>
> Apple or an Apple Authorized Service Provider will repair affected MacBook Pro systems, free of charge.
>
>
>
Upvotes: 3 [selected_answer]<issue_comment>username_2: Turning off FaceTime may help.
Upvotes: -1 <issue_comment>username_3: I have Macbook Pro 15-inch, Late 2011 model. Only posting because I had the exact same issue and tried all recommendations. I found some forum that someone had their thermal paste replaced and it fixed it, so I gave it a try. I did the job myself and my MacBook has been running fine since.
Upvotes: 1 <issue_comment>username_4: I baked my logic board for 7 minutes at 188 °C, I can't believe it, but it works. Look for a YouTube video for instructions. It's a pain to remove the logic board, take your time, be organized.
Upvotes: -1 <issue_comment>username_5: I fixed this issue by disabling the AMD graphics chip as described in the chosen solution (look for the green section) on this forum:
[Solved: MacBook Pro 2011 GPU Glitch](https://www.ifixit.com/Answers/View/198711/MacBook+Pro+2011+GPU+Glitch)

Please read the full information there.
Here are the steps (copied from linked page above):

The initial procedure:

Part 1: Disable SIP, disable dGPU, move one kernel extension

1. To start from a clean slate: reset SMC and NVRAM:
shutdown, unplug everything except power, now hold
leftShift+Ctrl+Opt+Power
and release all at the same time;
2. Now power on again and hold
Cmd+Opt+p+r
at the same time until you hear the startup chime two times.
3. Boot into Single User Recovery by holding
Cmd+r+s
4. Disable SIP: enter:
csrutil disable
5. disable dGPU on boot with setting the following variable:
nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
6. enable verbose boot mode:
nvram boot-args="-v"
7. reboot into Single User-mode by holding
Cmd+s
on boot
8. mount root partition writeable
/sbin/mount -uw /
9. make a kext-backup directory
mkdir -p /System/Library/Extensions-off
10. only move ONE offending kext out of the way:
mv /System/Library/Extensions/AMDRadeonX3000.kext /System/Library/Extensions-off/
11. inform the system to update its kextcache:
touch /System/Library/Extensions/
12. reboot normally:

You should now have an iGPU accelerated display, but the system doesn't know how to power-management the failed AMD-chip. (In this state the GPU is always idling with relatively high power, consuming quite a bit of battery when unplugged and leading to GPU temperatures from 60°C upwards [on average 60-85°C], despite not being used for anything by system.)

Part 2: improve thermal and power management

For improved power management of the disabled GPU you have to either manually load the one crucial kext after boot by:

```
sudo kextload /System/Library/Extensions-off/AMDRadeonX3000.kext

```

If you have a temperature sensor application you might want to have it open before issuing the above command and watch the temps drop…

Automate this with the following LoginHook that will get executed after the next reboot:

```
sudo mkdir -p /Library/LoginHook
sudo nano /Library/LoginHook/LoadX3000.sh

```

with the following content:

```
#!/bin/bash
kextload /System/Library/Extensions-off/AMDRadeonX3000.kext
pmset -a force gpuswitch 0 # undocumented/experimental
exit 0

```

then make it executable and active:

```
sudo chmod a+x /Library/LoginHook/LoadX3000.sh
sudo defaults write com.apple.loginwindow LoginHook /Library/LoginHook/LoadX3000.sh

```

The undocumented use of this pmset command seems to improve sleep/wake/shutdown behaviour. If it doesn't, experiment with leaving it out.
Upvotes: 0


<issue_start>username_0: I have the Macbook Air 11' late 2010 with Core 2 Duo and 2 GB RAM. I decided to install XCode 7, but it requires Mac OS 10.11 El Capitan. So, should I upgrade OSX on my 5-yearold macbook air? I worry about work speed.<issue_comment>username_1: I'm posting this answer from a late 2010 11" MacBook Air running El Capitan, and I have no performance issues. It runs very well. But this machine has 4GB of RAM, not 2GB, and that might make a difference.

Remember that 10.6.8 has not received security updates for years now, and will be full of unpatched vulnerabilities. It is a risk to keep running it.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Here is a link to Mac's system requirements for El Capitan.
<http://osxdaily.com/2015/06/09/os-x-el-capitan-system-requirements-compatible-mac/>

Macbook Air is listed as needing "MacBook Air (Late 2008 or newer)".

In addition, you mentioned your processor.

>
> ... the Mac must have a 64-bit CPU, which is typically
>  an Intel Core 2 Duo or newer processor. Beyond that, the requirements
>  are pretty soft and forgiving
>
>
>

Based on the system requirements released by Mac, you sound clear.
Upvotes: 0 <issue_comment>username_3: As mentioned by username_1 in its answer, I can confirm that **doubling the RAM from 2GB to 4GB will make a very significant difference**.

On a quite similar model as yours in term of performance, a MacBook white 7,1 mid-2010 with 2,4 GHz Intel Core 2 Duo (and NVIDIA GeForce 320M 250Mb GPU) that was running Snow Leopard 10.6.8, going to 4GB RAM changed the computer from very slow (almost "frozen") to very fast, even with its original old 5.4 krpm hard drive.

**After upgrading to an entry-level SSD and running El Capitan** on the same computer, still **with 4GB RAM, I cannot observe performance issues.**
I cannot tell if I had kept the original hard drive, but I assume the performance would still be fair. (I assume the original HDD has a good controller.)
Upvotes: 0 <issue_comment>username_4: No - make sure you have a good backup so you can test the upgrade without losing your apps and data that matter to you most.

Yes - once you are confident in your backup, you have only time to lose and can see if things are better or worse with the later software features and security and options for newer third party apps.

---

And, I would probably do an erase install staying at your same version to see if that speeds things up before any upgrade, but that’s just me. Here is a very [excellent thread discussing why you might chose one of these two OS - third party browser support](https://apple.stackexchange.com/q/448267/5472).
Upvotes: 0


<issue_start>username_0: I need someone to put this together in the most fool-proof way possible.

I recently reinstalled the OS on my Macbook Air 2014 (Yosemite) as I had a ton of useless files as it was acting super duper slow so now that I want to install Photoshop, Illustrator and InDesign (which my entire life depends on as I'm a design student) it gives me an error:
Installation on case-sensitive volumes is not supported. Please choose a different volume for installation.

I know this topic has been discussed before but tbh I didn't understand a thing going through them lol. So I know there is this thing called iPartition but I currently don't want to spend any money on apps and am more than happy to reboot my entire Macbook or pick a different OS if that helps.

Any thoughts?<issue_comment>username_1: Most people never need the case sensitive option. It should have been deselected for you in install, and you selected it.

Don't do this. If you take the defaults it gives you, you will get what you want.
Upvotes: 0 <issue_comment>username_2: Here's what Adobe has to say about this [error](https://helpx.adobe.com/creative-suite/kb/error-case-sensitive-drives-supported.html).

It means you have to reinstall OS X.

[![enter image description here](https://i.stack.imgur.com/Xcv6B.png)](https://i.stack.imgur.com/Xcv6B.png)
Reformat and Choose OS X Extended (Journaled) as in the image above.
Upvotes: 3 [selected_answer]


<issue_start>username_0: I have a Nintendo DS to connect to the internet, but my router does not support WEP. I used to be able to create a WEP internet share on my MacBook 2010, but after the upgrade to 10.11.4, I cannot.

Is there any solution?<issue_comment>username_1: WEP was completely removed in Yosemite:

<http://tidbits.com/article/15158>

WEP is broken enough that you might just consider using an open Wifi connection (Security: None) but if you want to have a basic level of protection to stop someone from just walking into the equivalent of an open door the best solution would be to get a cheap secondary wifi router and set it up with it's own SSID with WEP, making sure to turn off DHCP on the router and connect it via a LAN rather than the WAN port (Apple Airports can just be put into Bridge Mode). If you're worried about security you could unplug the secondary router when you're not using it or disable it's Wifi.
Upvotes: 1 <issue_comment>username_2: If you have the time and technical chops, one option may be to set up a virtual machine on your Mac that is running Linux. For cost reasons, you could use the free VirtualBox. Then set up the Linux distro to share with a WEP key. Then you merely need to activate the virtual machine when you want to get your DS online.

Here is a post describing the tool on Linux that you might use to set this up: [Host APD: the Linux way to create a Wi-Fi access point](https://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/)

There's no guarantee that the virtual box network card is supported, but it might be worth a try.
Upvotes: -1


<issue_start>username_0: I have my iPhone paired with my car's Bluetooth. I typically have my iPhone displaying Waze or Apple Maps in navigation mode. When I answer a call, the Phone app takes over the entire screen and I no longer see the map.

Is there anyway to keep the navigation on screen while I'm answering a phone call?<issue_comment>username_1: Only if you jailbreak your iphone and install a tweak that would allow you to do so.
Upvotes: 0 <issue_comment>username_2: After you accept the call, just double-click the home button and get back into the navigation app. You will be able to see the map and your call won't be interrupted.
Upvotes: 0 <issue_comment>username_3: It's not possible to make the call screen not come up. You'll have to double-click the Home button and go back to Waze. Or, if you have an iPhone 6s/Plus, 3D touching the left side of the screen and dragging right will send you back to the previous app.
Upvotes: 1 <issue_comment>username_4: No, you can't keep it on the screen. But you don't have to "fiddle with the phone" to bring Waze back. Double-clicking the home button and touching the middle of the screen brings it back.

Since you can do that without looking at the phone, it is no more distracting than operating your turn signals, windshield wiper, headlights, or cruise control. If you find that distracting, then, in the interest of public safety, I would urge you to take mass transit.
Upvotes: 0 <issue_comment>username_5: You can vote for the feature here:
<https://waze.uservoice.com/forums/59223-waze-suggestion-box/suggestions/39069448-keep-waze-on-top>

Hopefully, they'll work it out sooner or later if this gets enough votes.
Upvotes: 0


<issue_start>username_0: I have iTunes Connect account, I want to export the analytics from iTunes Connect and then generate a report in my own system. I read many article but haven't been able to find any api to connect to iTunes Connect remotely. Any help in this regards will be greatly appreciated.<issue_comment>username_1: Navigate to Analytics for the appropriate app, then select the Metrics tab, then select a metric. There is a download icon (the box with the down arrow in the screenshot below) which you can click on for a CSV file. You can also select an option from the View By dropdown. As far as I know, there is no download all stats functionality sadly. Also, the analytics functionality is available for the iTunes Connect Admin, Finance, and Sales roles.

[![iTunes Connect Download screenshot](https://i.stack.imgur.com/9BFNl.png)](https://i.stack.imgur.com/9BFNl.png)
Upvotes: 2 <issue_comment>username_2: If you want to download your app store data automatically without navigating manually to iTunes Connect, Apple offers the Reporter Tool which is an API. It takes some programming skills but is a reliable interface that can be adapted to your needs. We are currently developing a Google Sheets Add-on that will import your app statistics directly into Sheets. This includes all available reports and a schedule function on a daily, weekly, or monthly basis. If you are interested in a free trial sign up for beta testing on [www.appstoremetrix.com](http://appstoremetrix.com/).
Upvotes: 2


<issue_start>username_0: The old utility [`ipfw`](https://en.wikipedia.org/wiki/Ipfirewall) was discouraged in recent versions of Mac OS X and is now gone from El Capitan.

What is the modern way to do port forwarding in El Capitan?

I simply want port 80 to forward to port 8080.<issue_comment>username_1: The modern way to forward ports in El Capitan is using `pf`. In the example below all port 80 requests are forwarded to port 8080 on the same host. Please adjust the redirections to your needs.

1. Create an anchor file *org.user.forwarding* in /private/etc/pf.anchors

```
sudo touch /private/etc/pf.anchors/org.user.forwarding

```

with the following content and a trailing empty line

```
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass on en0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass on en1 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080

```

or

```
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080

```
2. Modify the file /private/etc/pf.conf but keep a trailing empty line

original file:

```
scrub-anchor "com.apple/*"
nat-anchor "com.apple/*"
rdr-anchor "com.apple/*"
dummynet-anchor "com.apple/*"
anchor "com.apple/*"
load anchor "com.apple" from "/etc/pf.anchors/com.apple"

```

to

```
scrub-anchor "com.apple/*"
nat-anchor "com.apple/*"
rdr-anchor "com.apple/*"
rdr-anchor "org.user.forwarding"
dummynet-anchor "com.apple/*"
anchor "com.apple/*"
load anchor "com.apple" from "/etc/pf.anchors/com.apple"
load anchor "org.user.forwarding" from "/etc/pf.anchors/org.user.forwarding"

```
3. Parse and test your anchor file to make sure there are no errors:

```
sudo pfctl -vnf /etc/pf.anchors/org.user.forwarding

```
4. Now modify /System/Library/LaunchDaemons/com.apple.pfctl.plist from

```

 pfctl
 -f
 /etc/pf.conf

```

to

```

 pfctl
 -e
 -f
 /etc/pf.conf

```

You have to disable System Integrity Protection to accomplish this. After editing the file reenable SIP. After rebooting your Mac pf will be enabled (that's the -e option).

In **macOS 10.15 Catalina** (and its read-only system volume) you have to edit the launch daemon in Recovery Mode. SIP is disabled by default in Recovery Mode - so no need to execute *csrutil*:

```
/Volumes/Name_of_boot_volume/usr/bin/nano /Volumes/Name_of_boot_volume/System/Library/LaunchDaemons/com.apple.pfctl.plist

```

with the default boot volume name *Macintosh HD* this is:

```
/Volumes/Macintosh\ HD/usr/bin/nano /Volumes/Macintosh\ HD/System/Library/LaunchDaemons/com.apple.pfctl.plist

```

Alternatively you may create your own launch daemon similar to the answer here: [Using Server 5.0.15 to share internet WITHOUT internet sharing](https://apple.stackexchange.com/a/229266/93229).

After a system update or upgrade some of the original files above may have been replaced and you have to reapply all changes.

If you want to forward across different interfaces you have to enable this in /etc/sysctl.conf:

```
net.inet.ip.forwarding=1
net.inet6.ip6.forwarding=1

```
Upvotes: 5 <issue_comment>username_2: To forward all port 80 traffic to port 8080, you can enter the following from the Terminal command line.

```
echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
" | sudo pfctl -ef -

```

Taken from <https://salferrarello.com/mac-pfctl-port-forwarding/>
Upvotes: 7 <issue_comment>username_3: To extend solution from @sal-ferrarello answer, I created two super-basic Shell Scripts to **enable** or **disable** redirecting **without compromising already existing entries** in `pf`.

**I. First find what entries do you already have with:**

`sudo pfctl -s nat`

My output was like:

```
No ALTQ support in kernel
ALTQ related functions disabled
nat-anchor "com.apple/*" all
rdr-anchor "com.apple/*" all

```

What interests us is actual entries so ommit first two info lines.

**II. Create `enable.sh` script:**

```
#!/bin/sh
echo "
nat-anchor \"com.apple/*\" all
rdr-anchor \"com.apple/*\" all
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
" | sudo pfctl -ef -
sudo pfctl -s nat

```

First two lines after `echo` are the entries that were already there. Third line is with new redirect – in this case 80 to 8080. At the end we call `sudo pfctl -s nat` to see if changes were applied.

**III. Create `disable.sh` script:**

Similar to `enable.sh` we create script, but without 80->8080 redirect, but with previous already existing entries:

```
#!/bin/sh
echo "
nat-anchor \"com.apple/*\" all
rdr-anchor \"com.apple/*\" all
" | sudo pfctl -ef -
sudo pfctl -s nat

```
Upvotes: 3 <issue_comment>username_4: I've developed an App for port forwarding on macOS. You can check it out here:

<https://github.com/username_4/iPortForwarder>

It allows you to easily forward a single port or a range of ports without modifying the system firewall.

![scrrenshot](https://raw.githubusercontent.com/username_4/iPortForwarder/master/docs/screenshot.avif)
Upvotes: 1


<issue_start>username_0: So I only got my MacBook Air last year and I am travelling so am taking a lot o photos but I have a 1TB hard drive that I transfer the photos over to every now and then, my time machine also backs up to here. Recently I got a message pop up saying my start up disk was nearly full so I transferred all the photos over to my hard drive and deleted them all. It was still saying full even after I emptied my recycling bin and went through recently deleted photos and emptied that. Still no luck so I went through the steps to go onto my finder and computer and find the size of all the files to see where it was all being taken up and theres 49GB in my photo library and there is literally NOTHING in there! Its so frustrating because its now going slow and it gets super hot if I'm charging it whilst using it because its just too full. Please can anyone help?

Thanks<issue_comment>username_1: You may find your answer [here](https://apple.stackexchange.com/questions/180332/where-is-trash-in-new-photos-app).

To summarize there is no empty trash like there was in iPhoto. Deleted pictures are moved to a recently deleted album and then automatically deleted permanently after 30 days. They can be manually removed or recovered at any time during these 30 days.
Upvotes: 2 <issue_comment>username_2: Try :
select "Secure Empty Trash" from the "Finder" menu.

IF still no Turn Time Machine off, and wait a while, it will start to delete what are called Local snapshots and so should free up the space the photos took.

Failing that try disk utility.
Upvotes: 0


<issue_start>username_0: Following on from the answer to [Can you make OSX mount just certain partitions when you connect an external HDD?](https://apple.stackexchange.com/questions/24539/can-you-make-osx-mount-just-certain-partitions-when-you-connect-an-external-hdd), all of the sites that I have checked ([CNET](http://www.cnet.com/how-to/prevent-a-partition-from-mounting-in-os-x/), OSXDaily, [Apple Support community threads](https://discussions.apple.com/docs/DOC-7942)) say that you have to use Disk Utility (or the command line `diskutil info /dev/disks`) to find the UUID.

Is there a command line equivalent that will give me this information, which is not `diskutil`? In particular, one that will work in single user mode?

### Why diskutil does not work

In *single user mode* (at least on Mountain Lion) after running:

```
/sbin/fsck -fy
/sbin/mount -uw /

```

running:

```
diskutil info disk0s5

```

gives the following error

```
Unable to run because unable to use the DiskManagement framework.
Common reasons include, but are not limited to, the DiskArbitration
framework being unavailable due to being booted in single user mode.

```

### Background

My issue is that I have a dying partition on my internal disk, which only holds an out of date Snow Leopard OS, but is slowing down my Mac (unbearably), as the console is (repeatedly) reporting:

```
kernel: disk0s5: I/O error.

```

I no longer boot into Snow Leopard as I boot Mountain Lion which is on an external FireWire disk, so I would like to leave the Snow Leopard partition unmounted, using the line

```
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none hfs rw,noauto

```

in `/etc/fstab`.

However, to obtain the UUID of the faulty partition, I have to open up Disk Utility and have the faulty partition mounted, which is a torturously slow process (it takes Disk Utility about twenty minutes to open).

---

**TL;DR** -
Can I obtain the UUID of the internal partition, when booting into single user mode of an OS stored on a partition which is on an external FW disk?<issue_comment>username_1: Update:

`IOReg` gives the partition UUID, not the volume UUID, as it operates below the HFS layer. I had incorrectly assumed that the device UUID was required rather than the volume UUID because it was substituting for a device node. To get the volume UUID, use `hfs.util`. For example:

```
/System/Library/Filesystems/hfs.fs/Contents/Resources/hfs.util -k disk0s3

```

Replace "disk0s3" with whatever the "device identifier" of your volume. This is different to the "device node" (which is "/dev/disk0s3" in this case").

Original IOReg details:

You can run `ioreg -c IOMedia -r` to show the device tree for the disk devices in your system. This should give a manageable amount of output (as compared to `ioreg -l`, which shows everything).

If you want to just extract UUIDs, you can `ioreg -c IOMedia -r | grep UUID`, but the downside is that you lose context.

The `diskutil` information is interesting; it obviously depends on daemons that do not run in single user mode.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Install [GPT Fdisk](https://sourceforge.net/projects/gptfdisk/files/latest/download). After booting to Single User Mode enter:

```
/sbin/fsck -fy
/sbin/mount -uw /
/usr/local/bin/gdisk

```

In interactive mode first enter the device node (e.g. disk0):

```
/dev/disk0

```

then `i` to show detailed information on a partition.

Finally enter the partition number e.g. `5` to get the Partition unique GUID:

```
Partition GUID code: 53746F72-6167-11AA-AA11-00306543ECAC (Apple Core Storage)
Partition unique GUID: 7AA0FD56-01BC-4EA1-8CE2-7972E63A2A6D
First sector: 409640 (at 200.0 MiB)
Last sector: 133955543 (at 63.9 GiB)
Partition size: 133545904 sectors (63.7 GiB)
Attribute flags: 0000000000000000
Partition name: ''

```
Upvotes: 1 <issue_comment>username_3: As an aside, I have just discovered that there is no actual need to do any of this, because, en lieu of using the UUID, you can use the *volume label* instead, in `/etc/fstab`, like so:

```
LABEL=Archive none hfs rw,noauto 0 0

```

This method has the benefit of:

1. Being much simpler to implement, and **more importantly**;
2. The volume label does not change, whereas the UUIDs change as you plug in other FW or USB disks. So, if you are using UUIDs in `/etc/fstab` then you need to update those UUIDs for the unmounted disks, in `/etc/fstab`, each time you change the disk configuration.

Note: The use of the `LABEL` in `/etc/fstab`, may not always work (i.e. if the disk is very corrupted and the label can not be read). In such cases, you will be obliged to use UUID.
Upvotes: 1


<issue_start>username_0: I have a brand new iPhone 6s which suddenly stopped displaying names on text messages after I downloaded iOS 9.3. Any new ideas?<issue_comment>username_1: 1. Go to Settings->Messages
2. Scroll down to the header SMS/MMS
3. Uncheck "MMS Messaging"
4. Restart iPhone
5. Go back to "MMS Messaging" and turn it on

This should fix the problem

Edit: This bug has been reported to Apple by many users under bug ID 22817380
Upvotes: 2 <issue_comment>username_2: I tried the answer above but that didn't work for me. After some trial and error turning off contacts in iCloud and then turning them back on worked for me.

1. Go to settings > iCloud
2. Turn off "Contacts" option
3. It will ask you if you want to delete the contacts synced on the phone or keep them. I deleted them.
4. Verify that the contacts are gone. (Optional)
5. Go back to the iCloud settings and turn the contacts on.

This worked for me. Took about a minute for all contacts to resolve in Messages app. I am on iOS 10.2 and this happened when my phone turned off unexpectedly due to battery issues.
Upvotes: 3 <issue_comment>username_3: None of the answers here worked for me. I had to:

1. Open the *Settings* app.
2. Scroll down to *Contacts*.
3. Tap the *Short Name* option.
4. Turn off the *Short Name* switch at the top.
5. Go to the home screen.
6. Open the *Settings* app.
7. Turn the *Short Name* option back on.

After that procedure, the Messages app on my iOS device once again showed names instead of phone numbers.
Upvotes: 2


<issue_start>username_0: Is there a way to see how many items are in the iBooks app? I have looked within the app and in Settings>General (where the song count is) to no avail.

I would like help on both MacOS X and iOS 9.<issue_comment>username_1: If you are looking at the iBooks "All Books" and you Select All and then, with everything still selected you click on one book and keep the mouse button down and then drag just a tiny bit, as if you were going to move the books somewhere--- if you do all that, you will see a little red circle with the number of selected items in it, attached to your cursor. See the picture. The purple arrow is pointing to the red circle with (in this case) "90" in it.

You do have to move the books a little bit but you don't have to move them far for the selected count to show up.

[![90 books selected](https://i.stack.imgur.com/1MFrJ.png)](https://i.stack.imgur.com/1MFrJ.png)
Upvotes: 2 <issue_comment>username_2: Finding the number of books by selecting all and moving them a bit until a number shows up works well if you have a smaller library. But if you have a large library of over 1000 books you can be waiting a long time for a number to pop up!

A better method is go to into iTunes and click on the device icon (shown in the red circle)...

[![enter image description here](https://i.stack.imgur.com/T3icS.png)](https://i.stack.imgur.com/T3icS.png)

Assuming you have synced your iPhone or iPad you'll see the device icon in iTunes. The cool thing is that your device doesn't have to be connected when you do this. (If, for some reason, the device icon is missing, just connect your device). When you click on the device icon you'll see a list in the left margin which includes Books. Click on Books and make sure "Sync Books" is checked and that you've selected the "All books" button underneath. This will give you the total number of books in your library.

[![enter image description here](https://i.stack.imgur.com/cO5y3.png)](https://i.stack.imgur.com/cO5y3.png)
Upvotes: 0


<issue_start>username_0: I added the word `somehting` (or similar) by accident to Dictionary of OS X El Capitan 10.11.4 in Google Chrome > 2nd click.
I would like to remove it from there.
I go to Dictionary but I cannot find by the Search tool, etc only `someh` and no success.
So I should be able to find recently added words or user words.

---

How can remove a recently added word in Dictionary of Google Chrome?<issue_comment>username_1: user3439894's proposal
----------------------

Content in `/Users/masi/Library/Application\ Support/Google/Chrome/Default/Custom\ Dictionary.txt`

```
somehting
checksum_v1 = 2e0427564c95a02fc68d601104512ebd

```

which you can just delete.
Upvotes: 1 <issue_comment>username_2: On macOS Chrome 60, settings do not let you access the dictionary. Words are actually added in two places where you can manually edit them:

```
~/Library/Application\ Support/Google/Chrome/Default/Custom\ Dictionary.txt

~/Library/Spelling/LocalDictionary

```

Then restart your mac for changes to take effect.
Upvotes: 5 [selected_answer]


<issue_start>username_0: When entering my password into App Store I get:

>
> There was an error connecting to the Apple ID server
>
>
>

I checked the password and it's fine. I changed the password just in case, it still does not work, but now my whole Mac is disconnected from my iCloud account.

When I open Console, I get:

>
> 2016-05-01 9:17:06.292 PM com.apple.xpc.launchd[1]: (com.apple.auditd[1047]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap\_check\_in(): com.apple.auditd
>
>
> 2016-05-01 9:17:06.300 PM myusername[1052]: audit warning: soft /var/audit
>
>
> 2016-05-01 9:17:06.300 PM myusername[1053]: audit warning: closefile /var/audit/20160502011137.20160502011706
>
>
> 2016-05-01 9:17:06.300 PM myusername[1051]: audit warning: allsoft
>
>
> 2016-05-01 9:17:06.499 PM akd[300]: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
>
>
> 2016-05-01 9:17:06.700 PM akd[300]: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
>
>
> 2016-05-01 9:17:06.898 PM akd[300]: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
>
>
>

It seems like people get the last error when they're using an iOS 9 app that doesn't support TLS 1.2.

I'm using OS X El Capitan 10.11.4.

Edit: same issue using Safe Boot.<issue_comment>username_1: I've had the same problem with App Store and Icloud for some time. For me the root cause for was a security hardening tip to enforce OSCP and CRL verification.

To see if you have the same problem start "Keychain Access" and open "Preferences". Select "Certificates" and verify that you have "Best attempt" for CRL and OCSP. After changing these values back to "Best attempt" I could login to Itunes. I had to restart to be able to login to App Store.
Upvotes: 4 [selected_answer]<issue_comment>username_2: This worked for me to

Key Chain > Preferences > Certificates > Best Attempt
Upvotes: -1


<issue_start>username_0: My wife's new iMac is behaving rather oddly. Despite being a pretty powerful machine, it's rather slow and laggy. I looked into it, and it seems her swap memory is maxing out, even though there's plenty of RAM left:

[![screenshot of htop output](https://i.stack.imgur.com/vpWxk.png)](https://i.stack.imgur.com/vpWxk.png)

Yet my Mac Pro looks like this:

[![screenshot of htop output](https://i.stack.imgur.com/KAw5o.png)](https://i.stack.imgur.com/KAw5o.png)

This happens consistently, causing the machine to significantly underperform. Is there something wrong with the system, perhaps?<issue_comment>username_1: In Acrobat, like in many applications, you can **drag-and-drop the document icon from the window's title bar to other applications**, which hands over the file's path (hold down the mouse button slightly longer before dragging). For example, if you drop the icon on the Desktop, the Finder creates an alias icon. If you drop it in a TextEdit document, the PDF is embedded in the text document, etc.

I'm not familiar with KeyboardMaestro, but I think it should be able to utilize this standard OS X feature somehow.

Otherwise you can still use OS X's Automator application and create a small application to drop the document icon onto (e.g. in the Dock) and send the file path to the clipboard. It's quite easy. The steps are:

1. Open the Automator application.
2. Choose to create a `new Application`.
3. In the right-hand Actions pane, expand the `Library` and click `Utilities`.
4. In the list of Actions, drag the action `Copy to Clipboard` into the left-hand assembly pane.
5. Press CMD-S to save the new application, e.g., in the Applications folder.
6. Drag the application icon into the Dock.

Done.
Upvotes: 0 <issue_comment>username_1: So here's an AppleScript that I pasted together with the help of some other answers and the AppleScript reference. This puts the URL of the frontmost Acrobat document to the clipboard, e.g:
`file://localhost/Users/Your%20Username/Documents/Some%20Folder/Filename.pdf`

```
 tell application "System Events"
        tell process "Acrobat"
            set thefile to value of attribute "AXDocument" of window 1
        end tell
    end tell
 set the clipboard to thefile

```
Upvotes: 1 <issue_comment>username_2: **(The manual way)**
Cmd-click (or right-click) the Acrobat window title and choose the parent folder. Open Terminal and drag the PDF-file into the terminal window. Copy the file path from the Terminal window.
Upvotes: 0 <issue_comment>username_3: This script will work with any application that has a “document one” open. I added a delay to the code which should give you enough time to bring your application with document one to the front.

You can also tweak the code to target Adobe Acrobat instead of front most application

```
delay 10 -- Gives You Time To Activate Whichever Application You Want This Code To Work For
tell application (path to frontmost application as text) to set the clipboard to (get path of document 1)

```

Before realizing that you came up with your own solution, I came up with another solution that works.

```
tell application "Adobe Acrobat Pro" to set the clipboard to the POSIX path of (get file alias of active doc)

```

This works for me using the latest version of Sierra and Acrobat Pro 10.1.1.33
Upvotes: 1 <issue_comment>username_4: Using in part the approach [from this answer](https://apple.stackexchange.com/a/236966/6489), I eventually developed the following bit of code. Note that this uses the application bundle id instead of the application name, so that it works in more versions of Acrobat Pro.

```
tell application "System Events"
    tell application id "com.adobe.Acrobat.Pro"
        set thefile to the file alias of the active doc
    end tell
end tell
set the clipboard to the POSIX path of thefile

```

Tested using Acrobat Pro (version 11) and Acrobat Pro DC (version 17).
Upvotes: 2


<issue_start>username_0: I have an Apple Watch Sport. Today I tried using a car port to charge my Watch. However, it does not work. I used the same charger and port yesterday and it worked fine. Why is my Apple Watch not charging?<issue_comment>username_1: You have to do some basic trouble shooting. You have two components to check:

1. The 12v power port in your car
2. The charger

Plug your charger into the power port of a different car with a power port you know to be good. If your charger works, then the problem is related to your car. If it dosen't work, then your charger is at fault.

Alternatively, you can plug a known working charger into your car. If it works there as well, it's your charger. If it doesn't, it's your car.
Upvotes: 1 <issue_comment>username_2: I found it easiest to make this flowchart myself:
[![](https://i.stack.imgur.com/cv0KG.jpg)](https://i.stack.imgur.com/cv0KG.jpg)
Upvotes: -1