Renaming files in OS X for Windows or Unix compatibility #
While the above approaches should cover most use case scenarios, none of them address all of the possible naming issues in Windows.
is specially designed to help move files to and from Windows and Unix [...] Preconfigured settings for MS-DOS, Unix and Windows 95, 98, ME, NT, 2000 and XP.
- A Better Finder Rename includes
conversion to Windows NTFS/SMB compatible names.
/mac | May 16, 2017
Apple Keyboard (A1243) - Function Keys Not Working #
The Apple Keyboard (A1243) was introduced in 2007 and rechristened
Apple Keyboard with Numeric Keypad in 2009. Almost a decade later, it is still sold under the same name and model number.
However, there have been two different order numbers for this keyboard with separate system requirements:
The only cosmetic difference between the MB110LL/A and MB110LL/B is the icons on the F3 and F4 keys:
/mac | Apr 29, 2017
OS X: Rich text editor with regex #
Bean has been under constant development for years; it's been listed on the OS X page since version 0.94 (current version is 3.2.9). In addition to supporting a host of file formats (rtf, rtfd, plain text, webarchive, doc, docx, and odt), Bean is the only rich text editor I have found for OS X which also supports regex find/replace.
/mac | Apr 27, 2017
Preparing a Mac for resale or donation (Sierra edition) #
- Securely erase internal storage, install macOS, create temporary admin account (e.g., tempuser), install apps and updates, etc.
- Log in normally as tempuser and run:
$ sudo dscl . -delete /Groups/admin GroupMembership tempuser
$ sudo dscl . -delete /Users/tempuser
- Restart in Single User Mode and run:
# fsck -fy
# mount -uw /
# rm -R /Users/tempuser
# rm /var/db/.AppleSetupDone
# shutdown -h now
Regarding iLife and iWork apps
- UPDATE: iLife and iWork apps are now free for all iOS and Mac devices, so the points below are largely moot.
- This process does not preserve the iLife (iMovie, GarageBand) or iWork (Pages, Numbers, Keynote) apps. If the new owner already owns these apps, s/he can download them free of charge from the App Store. Otherwise, they may need to be purchased.
- Preserving the iLife and iWork entitlement may be possible by following Apple's instructions in What to do before selling or giving away your Mac, which links to How to reinstall macOS, which advises starting from Internet Recovery (Option-Command-R), formatting the internal storage, and then selecting "Reinstall macOS". According to Apple, "This installs the system that came with your Mac when it was new. It isn't associated with your Apple ID, so the new owner can use the App Store to upgrade to a later version using their Apple ID." In limited testing, this process did not install the iLife and iWork apps, but it did cause them to appear under the Mac App Store "Purchased" tab ("You Have 5 Apps to Accept").
- Another possible approach, capturing and installing Mac App Store pkg files, may cause registration and update problems (as well as violate some EULA or other):
- See also:
/mac | Feb 18, 2017
Reset Safari 10 in OS X 10.11 El Capitan #
# Reset Safari 10 for current user. Developed and tested under OS X 10.11.6 El Capitan.
# Backup bookmarks to Desktop, exiting if unsuccessful
cp -v ~/Library/Safari/Bookmarks.plist ~/Desktop/Bookmarks-`date +%Y%m%d%H%M%S`.plist
if [[ $? -ne 0 ]]; then exit 1; fi
# Delete main Safari data directory
rm -rfv ~/Library/Safari
# Delete caches
rm -rfv ~/Library/Caches/com.apple.Safari
rm -rfv ~/Library/Caches/com.apple.Safari.SearchHelper
rm -rfv ~/Library/Caches/com.apple.safaridavclient
rm -rfv ~/Library/Caches/com.apple.WebKit.PluginProcess
rm -rfv ~/Library/Caches/Metadata/Safari
rm -rfv ~/Library/Caches/SafariNotificationAgent
rm -rfv ~/Library/Caches/com.apple.commerce.safari/SafariLibrary
# Delete cookies
rm -rfv ~/Library/Cookies/Cookies.binarycookies
rm -rfv ~/Library/Cookies/com.apple.safari.cookies
rm -rfv ~/Library/Cookies/com.apple.CaptiveNetworkAssistant.binarycookies
rm -rfv ~/Library/Cookies/com.apple.Safari.SafeBrowsing.binarycookies
rm -rfv ~/Library/Cookies/com.apple.Safari.SearchHelper.binarycookies
# Delete preferences
rm -rfv ~/Library/Preferences/com.apple.Safari.LSSharedFileList.plist
rm -rfv ~/Library/Preferences/com.apple.Safari.RSS.plist
rm -rfv ~/Library/Preferences/com.apple.Safari.plist
rm -rfv ~/Library/Preferences/com.apple.Safari.Extensions.plist
rm -rfv ~/Library/Preferences/com.apple.WebFoundation.plist
rm -rfv ~/Library/Preferences/com.apple.WebKit.PluginHost.plist
rm -rfv ~/Library/Preferences/com.apple.WebKit.PluginProcess.plist
rm -rfv ~/Library/Preferences/com.apple.commerce.safari.plist
# Delete saved state
rm -rfv ~/Library/Saved\ Application\ State/com.apple.Safari.savedState
# Delete RSS feeds subscribed in Safari or Mail
# More info on PubSub database and command:
rm -rfv ~/Library/PubSub/Database
# Delete yet more Safari data (cannot find any definitive documentation on this directory)
rm -rfv ~/Library/WebKit/com.apple.Safari
# Delete SharedFileList
rm -rfv ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.apple.safari.sfl
# Delete LSOs / Flash cookies
rm -rfv ~/Library/Caches/Adobe/Flash\ Player
# Clear file quarantine database (i.e., list of downloaded files)
# More info: http://osxdaily.com/2012/07/12/list-download-history-mac-os-x/
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'
# Delete QuickTime cache
rm -rfv ~/Library/Caches/QuickTime
printf "\n\n\033[1;32mSafari cleanup complete.\n\n\033[1;31mThe contens of /Library/Internet Plug-Ins and ~/Library/Internet Plug-Ins\nwill appear below after pressing Enter. Check output for unwated plugins.\nPreserve Quartz Composer.webplugin & Default Browser.plugin at a minimum.\033[0m\n\n"
read -p "Press Enter to continue."
# List contents of /Library/Internet Plug-Ins and ~/Library/Internet Plug-Ins
ls -A /Library/Internet\ Plug-Ins ~/Library/Internet\ Plug-Ins
- Testing with fs_usage and File Buddy in a clean VM.
- completely reset Safari 9
- How to reset safari 9.0.3
- Reset Safari from command line
Reset Safari doesn't really clean all the cookies of Safari web browser
- History in Safari
- Aborting a shell script if any command returns a non-zero value?
- In a bash script, how can I exit the entire script if a certain condition occurs?
- guapolo's answer to How to get osx shell script to show colors in echo
/mac | Feb 11, 2017
Migrating from Mail.app to Thunderbird #
- Mail Exporter Pro - Easiest way* to batch/bulk export Mail.app mailboxes/folders (including subfolders) into an easy-to-import format for Thunderbird via:
- ImportExportTools "adds some tools to import and export folders and messages". Also allows exporting folder indexes to compare contents, etc: ImportExportTools > Export all messages in the folder > just index (CSV).
- Another handy add-on is Theme Font & Size Changer which "lets you change the global font size and font family used for the user interface". Or go manual with userChrome.css.
- You can grant Thunderbird access to your Mac contacts if desired.
- Remove the splash screen/pane: Thunderbird > Preferences > General > uncheck "When Thunderbird launches, show the Start Page in the message area".
- Apply a custom set of columns to all folders by clicking the tiny icon at the far right of the column list and then "Apply columns to..."
* In Mail.app, you can highlight multiple mailboxes > "Export Mailbox..." > Options > Export all subfolders > Choose, but the resulting mbox files are all named "mbox".
/mac | Feb 05, 2017
3 Mac file-related apps #
from a blog post (and related comments) on Robservatory:
- Little Flocker - Restrict "any application from accessing your files without explicit permission ... prevent silent exfiltration, encryption, or destruction of your data..." $14.99. Think Little Snitch for your filesystem.
- Suspicious Package - Inspect PKG installer packages. Free. Compare with the venerable Pacifist.
- UninstallPKG - "Remove unwanted packages from your system." $9.99. The uninstaller for PKG files that Apple forgot.
/mac | Jan 23, 2017
Direct download of Boot Camp drivers #
- From within Windows (or OS X) via Timothy Sutton's Brigadier Python script
- From within OS X via Boot Camp Assistant > Action > Download Windows Support Software
- From within a browser (for Windows 7/Boot Camp 4 & 5.1) via this Apple page
/mac | Dec 10, 2016
Add fade to black transition to MP4 video #
3 methods, from least to most efficient. Original MP4 video clip ≈ 2.4MB.
- iMovie 10.1.2:
- File > New Movie...
- Drag MP4 video into project
- Window > Content Library > Transitions
- Click and drag Fade to Black transition to end of video
- File > Share > File...
- At the lowest resolution and quality settings, the resulting MP4 was ≈ 12.5MB
- ScreenFlow 5.0.6:
- File > New > New Document
- Set custom width and height to match existing MP4 file
- Insert > Choose... > select MP4 file
- Highlight imported video clip
- Edit > Add Ending Transition
- File > Export...
- With no scaling and using the "Web - Low" preset, the resulting MP4 was ≈ 2.7MB
- ffmpeg 2.6.2:
- Open original MP4 in QuickTime
- Navigate to end of video and change time display to Frame Number, noting the number displayed (e.g., 927)
- $ ffmpeg -i in.mp4 -vf "fade=out:900:27" -acodec copy out.mp4
- Resulting MP4 was ≈ 2.1MB (yes, smaller than the original!)
Thanks to LordNeckbeard's tip and link to FFmpeg's fade filter documentation.
/mac | Nov 24, 2016
Mail.app: Cannot remove attachments from sent emails #
If Message > Remove Attachments is grayed out for sent messages:
- Select the affected mailbox (e.g., Sent)
- Mail > Preferences... > Rules > Add Rule
- Create a rule in which From is equal to your email address and Any attachment name contains "." (without quotes).
- Set the action to "Set Color"
- OK > "Do you want to apply your rules to messages in selected mailboxes" > Apply
Attachments can now be removed normally from affected messages. Tested in Mail 9.3 under OS X 10.11.6. Lion/Mountain Lion's Mail: Workaround for removing attachments from sent messages should have been in the top 10 Google results but wasn't, hence this recapitulation.
/mac | Nov 24, 2016
Subscribe or visit the archives