Showing posts with label macOS/OS X. Show all posts
Showing posts with label macOS/OS X. Show all posts

17 August 2017

View and remove Where From file metadata on Mac

When downloading a file on macOS, metadata may be added to the file that specifies where the file was downloaded from. This can be seen in the file's Info window:

It can also be viewed from Terminal with:

xattr -lp com.apple.metadata:kMDItemWhereFroms nameoffile.dmg

You can also use the following command to list files in a directory that have various metadata:

ls -l@

To remove the metadata, run the following in Terminal:

xattr -d com.apple.metadata:kMDItemWhereFroms nameoffile.dmg

Ta, robmathers.

15 November 2015

Use Adobe CS5 applications without Java on OS X

Using OS X, opening the Adobe CS5 applications may prompt you to install Java 6. To bypass this prompt without installing Java, make sure both these directories exist:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/
/System/Library/Java/Support/Deploy.bundle/

You can create them via Terminal using the following commands:

sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
sudo mkdir -p /System/Library/Java/Support/Deploy.bundle

Thanks to Michael Stassen.

19 July 2015

Create DVD ISO in OS X

To create an ISO from a DVD in OS X, using Terminal:

sudo hdiutil makehybrid -o FileName.iso /Volumes/PATH_TO_DVD/