Hot answers tagged

8

You can use the sips command to pad any JPEG or BMP image to a specified size, with a specified colour. In your case, the command would look something like: sips photo-500x640.jpg --padToHeightWidth 640 640 --padColor 000000 --out photo-640x640.jpg obviously with the input and output filenames of your choice. For white instead of black borders, change ...


7

export into a CSV: two columns, separated by ; (assuming there is no ; in a file name) open Terminal change to folder containing the files run perl -pi -e 's/\r\n/\n/;' LISTOFNAMES.csv to fix CRLF issues run while IFS=\; read old new; do mv "$old" "$new"; done < LISTOFNAMES.csv PS: This will overwrite existing files if the new name already exists. ...


5

Yes, the built-in Calendar app lets you add them. For your Mac: On your computer, open Calendar In the top left corner of your screen, click Calendar > Preferences. Click the Accounts tab. On the left side of the Accounts tab, click +. Select Google > Continue. Enter your Gmail address, password, and verification code (if you have one). Click Accept. On ...


4

Your main volume is encrypted with FileVault and still locked – consequently it doesn't show up in /Volumes. Before being able to mount it you'd have to unlock it: diskutil cs unlockVolume lvUUID #replace lvUUID by the one shown in the diskutil listing You will then be asked to enter the passphrase/password. You have to enter a passphrase or a password of ...


3

If you assume a malware infection, by all means reinstall the OS by rebooting into the Recovery Partition with Cmd-R and reinstall from there. This should not affect your existing users (or their files). See OS X: About OS X Recovery for details about the procedure.


3

OS X does not store a plain-text copy of your administrator password. This makes it impossible to have the computer show you the existing password. OS X can only test if an attempted password is the administrator password. OS X has no way to show you the original. The original is immediately thrown away when the password is set; only a hash of the password ...


3

There are access control restrictions on that directory. You can inspect those from the command line: ls -lOe / (That's a capital letter O and not a zero 0) I would suggest mounting your volume to another directory - either /tmp or $TMPDIR rather than messing with the restrictions that are designed to prevent what you have - an actual directory with ...


3

According to http://superuser.com/questions/59376/how-to-tell-where-an-item-in-the-trash-came-from, "I know the original locations are stored in ~/.Trash/.DS_Store". .DS_Store is the name of the file that stores various Finder-related information. Following that question, there is also How do I check where the file in .Trash was removed from? and How to ...


2

Both About this Mac and df seem to agree that you have 91GiB used, 21GiB free on /, which adds up to the volume of your 112GiB (120GB) hard drive. The problem must be with the list of files Disk Inventory X scans. Run du -s as a superuser starting from / and then going deeper into the filesystem to get a more accurate picture of your disk space usage. ...


2

The command I use while in normal mode is sudo ls -a /.Trashes and in single-user mode you don't need to use sudo. On my system, /.Trashes is empty however ~/.Trash is not empty as I have files in my Trash. On external volumes .Trashes in the root of the volume has directories, one for each $EUID and within those directories are the files deleted, on each ...


2

There is a way to access your computer, but only using another computer or device on the same network. That device has to support ssh. OSX has it preinstalled, but if you have an iPhone or iPad you will need to install an app such as Prompt. You need to allow Remote Login on your mac, from System Preferences. Click the Sharing icon, then check the tickbox ...


2

Aliases aren't interpreted within shell scripts. From bash(1): Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt) So the script still calls the standard readlink which doesn't know about --help. Instead of setting expand_aliases (which you have to remember to do so on each system and ...


2

When booted to OS X Recovery the root of the Macintosh HD is not /, it's: /Volumes/Macintosh HD/ To get to your Home directory in Terminal, use: cd "/Volumes/Macintosh HD/Users/User_Name" Where User_Name is the name of your User Account. From there you can access your directories such as Documents, Desktop, Pictures, etc. When booting into the ...


2

I've found this to be one of the most simple ways: In a spreadsheet column, concatenate: "cp oldfilename newfilename" to create a copy with the new name. Use "mv oldfilename newfilename" to replace the old files rather than copy. Copy this concatenated column to a text file and save as rename.sh in the folder with the files to be renamed. Open terminal, ...


2

Safari for Windows was dropped at version 6, in 2012. It is no longer available for download, directly from Apple, though can be found on several file hosters. The last version of Safari for Windows was 5.1.7, released May 9, 2012. I would say testing against such an outdated version would not really be useful at all. There's a long article on resurrecting ...


2

There is a systemwide Trash folder as well as one per user. If you deleted files in Finder while being logged in with your user account, the deleted files are in /Users/YOUR-USER-NAME/.Trash.


2

The Keychain Access App is located in the Utilities subfolder of the Applications folder. In the Keychain Access App, open Preferences and under the General tab you can tick the box Show Keychain status in menu bar. It'll put a padlock symbol that's resident in your menu bar that when clicked will provide you with a menu, the first menu item is Lock Screen. ...


1

My goal was to copy files to the external hard drive. They are stored in Macintosh HD (I originally thought I will find Macintosh HD in a subfolder of OS X Base System - wrong assumption). There was no Macintosh HD in Volumes folder, because I first needed to unlock it (I use FileVault). First you need to find the lvUUID of your Macintosh HD. Use this ...


1

There should be an Archive mailbox in the sidebar on the right side of Mail. Anything you archive should be there. If you don't see it, close Mail and restart your machine.


1

The problem that you are running into is that Gatekeeper is trying to protect you from malware and not only doesn't recognize the developer "signature" of the App you downloaded it "sees" the file was modified by someone/something other than the developer. Gatekeeper options are found in Apple menu > System Preferences… > Security & Privacy > General ...


1

First, make sure this person is in your Contacts, including the email address you want to mark as not being spam. This is important because Mail checks there when determining what's spam. Then, go to the Mail --> Preferences, Junk Mail tab, and make sure the following options are checked: Enable Junk Mail Filtering Choose Mark as junk mail, but leave ...


1

It's actually very easy.... Using Terminal Type the following command: rm -rf /Applications/Install\ OS\ X\ El\ Capitan.app/ This will remove the the install and sub-folders for the El Capitan installer. Using Finder Open the Applications Folder by navigating to it or by pressing ShiftCommandA. Select the Install OS X App and Control Click or right ...


1

On OS X, Deluge is unable to associate itself with magnet links due to GTK-OSX not supporting the feature (See ticket #2420). A workaround is to use Deluge Magnet Handler. To use it, download the ZIP, extract it, move Magnet Handler.app to the Applications folder and run it once. The application works by associating itself with magnet links and adding them ...


1

Probably the upgrade to El Capitan and the conversion of your main OS X volume (disk0s2) to a CoreStorage volume (disk0s2 & disk1) wreak havoc with the GUID partition table entry of your Boot Camp partition. You partition table should look similar to this one: ... 325312736 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 326582272 ...


1

Just Cmd + Ctrl + Power'd it. Install hadn't actually started (only download had), so was ready to upgrade after reboot.


1

Your assumption about inferring total system performance from the number of running processes is incorrect. There is no such direct correlation. The underlying operating system easily scales to thousands of (idle) processes without any noticeable effect on system performance on a modern Mac. Therefore it makes no sense to spend effort on reducing the number ...


1

I found the answer on MacStories; it's also on SuperUser. Colliding menubar command names can be specified via their nesting tree, using ->. Thus the shortcut name in my original question becomes Message->Archive.


1

A couple years back I wrote a blog post on performing bulk file operations. The first step was to copy the list of files from search results into a spreadsheet. Since you already have the spreadsheet, you are very close to having a script that can do the renaming for you. Let’s assume you have old names in column A and new names in column B. Write the ...


1

Try to return everything back: diskutil resizevolume disk0s2 R and then: diskutil resizeVolume disk0s2 480G jhfsx InstallOSX 10G Resizing a volume that is currently set as the computer’s startup disk will invalidate that setting; use the Startup Disk System Preferences panel or bless (8) to reset the resized volume as the startup disk.


1

If you type the following command in Terminal you will get all sorts of info on all the corestorage volumes currently attached to your Mac, including the conversion status you are looking for: diskutil cs list There are more answers here. One of my favorites is Nick Bedford's answer towards the bottom of that page that gives you just the status of each ...



Only top voted, non community-wiki answers of a minimum length are eligible