Skip to main content
Share Your Experience: Take the 2024 Developer Survey
87 votes

Terminal command to get all of a file's metadata?

This response might be late, but hopefully it will help someone. There are numerous ways to view metadata in the terminal on an Apple computer: mdls path/file.extension mdls stands for Metadata ...
Montag's user avatar
  • 1,153
34 votes

How can I remove "Where from" information from downloaded .mkv file?

The link listed in "Where from" is stored as an extended attribute named "com.apple.metadata:kMDItemWhereFroms" on the file in the file system - it is not actually saved within the .mkv file itself. ...
jksoegaard's user avatar
  • 78.2k
16 votes

Can the finder edit mp3 sound file tags like artist?

For those seeking a free terminal-based solution Per the rest of the answerers in here, Finder (as of El Capitan) does not do this. I arrived at id3v2 referenced in a Linux forum. Installation ...
fusion27's user avatar
  • 281
16 votes

Any way to edit metadata of MKV files (without re-encoding)?

The MKVToolNix GUI way: From the menu choose header editor. Open the mkv file. Under segment information there is a title item, change title as you wish. There is not a save button, use the main ...
Xaqron's user avatar
  • 261
15 votes
Accepted

Delete metadata

Meta information and attributes is complex thing and I am not qualified to cover it extensively. Nevertheless. Distinction should be made between: meta information in files (usually displayed in GUI ...
Aivar Paalberg's user avatar
14 votes

Any way to edit metadata of MKV files (without re-encoding)?

As an addition one could use mkvpropedit in a bash script to set the title of all mkv files in a directory. (Given the filename is the desired title.) #!/bin/bash # This script takes all mkv files in ...
hedgehog's user avatar
  • 141
10 votes

Delete metadata

You can look at ExifCleaner ... despite the name, it also cleans non-EXIF metadata, e.g., from PDF files. Description from documenation: Desktop app to clean metadata from images, videos, PDFs, and ...
nisc's user avatar
  • 231
10 votes
Accepted

How to stop com.apple.metadata:kMDItemWhereFroms attribute from being saved in files downloaded from browser?

There's no setting in Google Chrome that disables the metadata from being saved. It is done by Google Chrome itself - it's not something that is forced on it by the operating system or anything like ...
jksoegaard's user avatar
  • 78.2k
8 votes

What exactly is chflags opaque, nodump?

The nodump file flag can still be used by macOS. Apparently, the opaque file flag has never been used by macOS or OS X since at least Snow Leopard. Here is an example of the use of the nodump file ...
David Anderson's user avatar
7 votes
Accepted

How do mdfind and mdls derive what metadata a file has and where is it stored?

mdfind consults the Spotlight database in order to provide search results faster than scanning the whole file system for each query. mdls on the other hand does not rely on the Spotlight database, as ...
jksoegaard's user avatar
  • 78.2k
6 votes

Retrieving the "Version" attribute of an OSX Application file via Bash

You can use defaults to fetch specific keys: VERSION=$(defaults read /Applications/AppName.app/Contents/Info.plist CFBundleShortVersionString) echo $VERSION
wonder.mice's user avatar
6 votes

Songs show up as individual albums in iOS Music app

Have the same issue. I figured out that adding first song of albums and then rest of the songs works. But also looking for better resolution.
wujo's user avatar
  • 61
6 votes

In iTunes 12 on macOS, how can I reset the skip count of a song?

This following AppleScript code works for me using the latest version of macOS Mojave. tell application "iTunes" tell its track "Insert Your Song Title" set its skipped count to 0 -- ...
wch1zpink's user avatar
  • 7,651
6 votes

Where does Music.app store album art?

It took a lot of digging, but (at least in Monterey) it's in $HOME/Library/Containers/com.apple.AMPArtworkAgent/Data/Documents/artwork While that folder is hidden you can open the terminal and then ...
Jared Smith's user avatar
5 votes

Can the finder edit mp3 sound file tags like artist?

A very easy way is using VLC Media Player. Right click into select the song and click at Window -> Media Information. Shortcut ⌘+I. It saves to the file automatically.
Leo Caseiro's user avatar
5 votes

Any way to edit metadata of MKV files (without re-encoding)?

Just open the file in VLC player, Ctrl+I, choose the desired Metadata, title etc, change and then in the bottom, click 'Save Data'. That's all. No other external editor is needed.
Bathinda Helper's user avatar
5 votes
Accepted

Why is "tomorrow" displayed as the "Date Modified"?

I get that all the time when I download a file from Europe when the time zone differences are not corrected. Dates can be set far in the past and far in the future with simple commands like touch and ...
bmike's user avatar
  • 237k
5 votes

How do I get the path to a DMG (disk image) file given the mounted volume path?

A somewhat pedestrian way would be to retrieve the name of your DMG file from the output of hdiutil and then search for it, e.g., via hdiutil info -plist | grep dmg | sed 's/<string>\([^<]*\)...
monomeric's user avatar
5 votes

Delete metadata

There is macOS file system metadata, and then there is PDF metadata. The PDF file format itself contains metadata for the Title, Creator, Author, encoding software used, creation Date and more. This ...
benwiggy's user avatar
  • 36.3k
5 votes
Accepted

Can I detect the frame rate of a video using built in programs or tools?

In QuickTime Player press cmd-i (⌘I or Window > Show Movie Inspector) expand the Video section see the "Encoded FPS" value
minseong's user avatar
  • 8,902
4 votes

How can you tell what time a photo sent via iMessage was taken?

You can figure out what date & time an image was taken1 (and the GPS coordinates of where it was taken2) by saving the image to your camera roll, opening this online metadata viewer, and loading ...
owlswipe's user avatar
  • 5,922
4 votes
Accepted

Why does macOS set xattr com.apple.quarantine, when saving a shell script on a usb stick

This solved it for me Q: Is there a file with the quarantine flag set, on the USB stick? mount is adding a quarantine flag, causing: /bin/bash: bad interpreter: Operation not permitted - but not the ...
Uwe Schmelzer's user avatar
4 votes

Songs show up as individual albums in iOS Music app

Probably found solution which works. Drag MP3 files into your device ( iPhone or other ) in iTunes. Open music app on device and see each song as separate album. Go back to iTunes and remove that ...
smart616's user avatar
4 votes

In iTunes 12 on macOS, how can I reset the skip count of a song?

I noticed in the comment to your OP where you answered "Selected tracks" to dwightk's comment questions "All tracks? Or selected tracks?" So... To reset the Skips count of all selected tracks, simply ...
user3439894's user avatar
  • 58.9k
4 votes
Accepted

What exactly is chflags opaque, nodump?

Short answer: nothing particularly relevant on modern macOS. Long answer: both of these flags relate to Unix features that you probably never use. The opaque flag relates to "union mounts" -...
Gordon Davisson's user avatar
4 votes
Accepted

No location in metadata of place when in plane?

Your device uses A-GPS The problem is that A-GPS (Augmented/Assisted GPS) requires a reliable signal from four satellites and the cellphone location data. All iPhones (from at least the 3G) use A-GPS....
Allan's user avatar
  • 103k
3 votes

Apple mdls (MetaData List) command on Networked Drive

Just an FYI, exiftool (which has to be installed) can pull all metadata from the file over the network without the need to have the network volume indexed. That said, the most likely reason you're ...
user3439894's user avatar
  • 58.9k
3 votes
Accepted

Date format for file's "Modified" and "Last opened" is different than other files

The date "presentation" of a file info in column view in the preview column is determined by the column width! The wider the column the more detailed the date! You can easily check this by either alt-...
klanomath's user avatar
  • 66.5k
3 votes

Where is file metadata stored in Mac OS X?

Extended file attributes File metadata is stored in extended file attributes (EA) in macOS. You can see them when listing files in Terminal using command: ls -la@ For example if your file has a ...
Palec's user avatar
  • 176
3 votes

Display PDF version metadata of a PDF file

Normally, the PDF version number and other metadata should be available in the "More Info" section of the Get Info pane. (This includes Title, Author, Page count, Page size, Security/encryption ...
benwiggy's user avatar
  • 36.3k

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