Skip to content

The Eclectic Light Company

Macs & painting – 🦉 No AI content
Main navigation
  • Downloads
  • Freeware
  • All Macs
  • M1-M5 Macs
  • Troubleshooting
  • Painting
  • Mac Front Page
hoakley June 23, 2026 Macs, Technology

Choose and use in-document metadata

In an ideal world, all information about the data in a file, its metadata, would be stored separately from that file’s data, in extended attributes. Because this hasn’t been possible in PCs, although it’s now supported by some of their file systems, it’s common practice to save a file’s metadata to the same file with in-document metadata. This article explains how to select which to use, and how to get the best from them.

In-document metadata

Most cross-platform file formats that can store metadata do so in-document. That ensures its preservation when moved around, transferred between platforms, and hosted in servers and cloud services. However, it also means that changing metadata requires the file’s main data to be saved. In some cases, document editors don’t save the metadata, or metadata editors can upset the rest of the file contents. All apps you use to change that file must be fully compatible with both its data and metadata.

To use in-document metadata effectively you need:

  • An app to edit the metadata. This can be more difficult than might appear: many apps can edit RTF Rich Text content, but fewer give access to its metadata.
  • A means of viewing the metadata. Normally this would be in the Finder, where the Preview pane and Get Info dialog can display a limited selection of standard metadata, but can’t readily be customised to display others.
  • Support for indexing and search of metadata, normally using Spotlight. This in turn depends on the metadata importer for that document type, and again isn’t easy to customise.
  • If viewing and searching aren’t supported by macOS, you may be able to use a library manager where appropriate. In general you should try to avoid over-reliance on third-party software.

Check access

Before adding any metadata to your documents, you must confirm that you can edit, view, index and search for it, or you could discover those long hours of work have been wasted. The best way to do that is using the Drop Window in my free utility SpotTest.

Using your chosen editor for that type of document, create a small test document and add test entries or attributes to its metadata, usually referred to as its Properties. Save that, and drag and drop it onto the Drop Window in SpotTest.

The app then runs two command tools on those files:
mdimport -t -d2 filename
to list all known metadata recognised by the mdimporter used, and
mdls filename
to list all indexed metadata.

That mdimport command currently crashes on most images, so won’t return any information about their metadata until Apple fixes the bug. If you want to save the output in this Drop Window, select the file(s) output in its display, copy and paste it into a text editor or similar. You don’t have to keep the app main window open, and could use the Drop Window alone as a convenient way to inspect metadata.

Now look through the list of indexed metadata returned by mdls and identify your test metadata there. Those attributes that have made it through to that stage will be indexed by Spotlight, and you can search for them using the keys given, depending on how you intend searching. For instance, kMDItemKeywords is normally searched for as Keywords.

Now select your test document in a Column view in the Finder, so you can see the metadata attributes it displays under the Preview shown. Open the Finder’s View menu and select the Show Preview Options command to display the metadata available for display in the Preview pane. Tick them all, and see which attributes are shown under the Preview. Also open the Get Info dialog on your test file, and check which metadata are listed there.

You have now selected your document editor, checked which of its metadata are shown by the Finder, and discovered which are indexed and searchable using Spotlight.

Examples

RTF

There’s a shortage of good Rich Text editors, and even fewer that support editing metadata. Among the latter are Nisus Writer Pro, sadly now moribund, and TextEdit. My own DelightEd doesn’t yet support in-document metadata, although I am looking at how I might incorporate that into a future version.

Metadata attributes shown in the Finder and indexed by Spotlight are particularly rich:

  • Shown: Authors, Comment, Keywords, Organisations, Subject, Title
  • Indexed: Authors, Comment, Copyright, Keywords, Subject, Title
PDF

Most of the better PDF editors have good support for in-document metadata. This is most extensive in Adobe’s ‘pro’ level Acrobat, but those with more accessible interfaces like PDF Expert are almost as good in this respect.

Metadata attributes in the Finder and Spotlight are not quite as rich as RTF:

  • Shown: Authors, Description, Keywords, Title
  • Indexed: Authors, Description (subject), Keywords, Title

Note that what is indexed and searched as Description is termed in PDF Properties Subject.

Microsoft Word docx

Although other apps can read and write docx format, these are taken from the current version of Word in Office 365.

Only one attribute is displayed in the Finder, Keywords, but Spotlight indexes most of the others as well.

  • Shown: Keywords
  • Indexed: Authors, Description (comment), Keywords, Organisations, Subject, Title

Again, what Spotlight recognises as Description is the Comment attribute in the document’s Properties.

Exif metadata

Still images, video and audio most commonly use Exif in-document metadata, which contains a vast range of information about settings and location of photographs, and much more. Exif is unusual here in that it’s most used for metadata written automatically when the file’s data are captured digitally, and less for information you add later. While the Finder shows rich information, the one common metadata attribute that you’re likely to use, Keywords, is only displayed in the Get Info dialog, and not in the Preview pane. Keywords are also indexed reliably, and readily searched using Spotlight.

Image editors like GraphicConverter and specialist metadata utilities often provide options for saving metadata using other methods, including Finder Comments and Finder Tags. Although these might appear more accessible in macOS, they have their own disadvantages. Finder Comments aren’t even stored as extended attributes, but in hidden files in the folder, and as such as inherently prone to loss.

Finder Tags are best-suited to classifying files into a relatively small number of categories, rather than storing keywords. macOS has only primitive support for managing Finder Tags, and none suitable for managing them as keywords, for which you are reliant on third-party support. However, Exif Keywords have all the benefits of in-document metadata with both Finder and Spotlight support, and integrate well with Keywords attributes used for other document types.

Beware of duplication

Finally, you need to integrate the metadata attributes you use across different document types. If you were to set in-document Keywords in any of these documents, and to add Keywords extended attributes to the same files, the Finder and Spotlight are forced to choose between them, as they can only display and index one set for each file. In most, perhaps all, cases in-document Keywords take priority over those set in an extended attribute. But you should check before running the risk of any conflicts.

Key points

Use in-document metadata when the document type supports it. Check:

  • your chosen editor supports it safely,
  • the attribute can be displayed, preferably in the Finder as well as any library manager,
  • it’s indexed by Spotlight and can be used in searches.

Of all the metadata attributes available, Keywords are the widest supported.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Reddit (Opens in new window) Reddit
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Threads (Opens in new window) Threads
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Email a link to a friend (Opens in new window) Email
  • Print (Opens in new window) Print
Like Loading...

Related

Posted in Macs, Technology and tagged EXIF, Finder, metadata, PDF, RTF, Spotlight, SpotTest, Word. Bookmark the permalink.

iThere are no comments

Add yours

Leave a comment Cancel reply

Quick Links

  • Free Software Menu
  • System Updates
  • Mac Troubleshooting Summary
  • M-series Macs
  • Painting

Search

Monthly archives

  • June 2026 (54)
  • May 2026 (78)
  • April 2026 (73)
  • March 2026 (82)
  • February 2026 (71)
  • January 2026 (72)
  • December 2025 (75)
  • November 2025 (74)
  • October 2025 (75)
  • September 2025 (78)
  • August 2025 (76)
  • July 2025 (77)
  • June 2025 (74)
  • May 2025 (76)
  • April 2025 (73)
  • March 2025 (78)
  • February 2025 (67)
  • January 2025 (75)
  • December 2024 (74)
  • November 2024 (73)
  • October 2024 (78)
  • September 2024 (77)
  • August 2024 (75)
  • July 2024 (77)
  • June 2024 (71)
  • May 2024 (79)
  • April 2024 (75)
  • March 2024 (81)
  • February 2024 (72)
  • January 2024 (78)
  • December 2023 (79)
  • November 2023 (74)
  • October 2023 (77)
  • September 2023 (77)
  • August 2023 (72)
  • July 2023 (79)
  • June 2023 (73)
  • May 2023 (79)
  • April 2023 (73)
  • March 2023 (76)
  • February 2023 (68)
  • January 2023 (74)
  • December 2022 (74)
  • November 2022 (72)
  • October 2022 (76)
  • September 2022 (72)
  • August 2022 (75)
  • July 2022 (76)
  • June 2022 (73)
  • May 2022 (76)
  • April 2022 (71)
  • March 2022 (77)
  • February 2022 (68)
  • January 2022 (77)
  • December 2021 (75)
  • November 2021 (72)
  • October 2021 (75)
  • September 2021 (76)
  • August 2021 (75)
  • July 2021 (75)
  • June 2021 (71)
  • May 2021 (80)
  • April 2021 (79)
  • March 2021 (77)
  • February 2021 (75)
  • January 2021 (75)
  • December 2020 (77)
  • November 2020 (84)
  • October 2020 (81)
  • September 2020 (79)
  • August 2020 (103)
  • July 2020 (81)
  • June 2020 (78)
  • May 2020 (78)
  • April 2020 (81)
  • March 2020 (86)
  • February 2020 (77)
  • January 2020 (86)
  • December 2019 (82)
  • November 2019 (74)
  • October 2019 (89)
  • September 2019 (80)
  • August 2019 (91)
  • July 2019 (95)
  • June 2019 (88)
  • May 2019 (91)
  • April 2019 (79)
  • March 2019 (78)
  • February 2019 (71)
  • January 2019 (69)
  • December 2018 (79)
  • November 2018 (71)
  • October 2018 (78)
  • September 2018 (76)
  • August 2018 (78)
  • July 2018 (76)
  • June 2018 (77)
  • May 2018 (71)
  • April 2018 (67)
  • March 2018 (73)
  • February 2018 (67)
  • January 2018 (83)
  • December 2017 (94)
  • November 2017 (73)
  • October 2017 (86)
  • September 2017 (92)
  • August 2017 (69)
  • July 2017 (81)
  • June 2017 (76)
  • May 2017 (90)
  • April 2017 (76)
  • March 2017 (79)
  • February 2017 (65)
  • January 2017 (76)
  • December 2016 (75)
  • November 2016 (68)
  • October 2016 (76)
  • September 2016 (78)
  • August 2016 (70)
  • July 2016 (74)
  • June 2016 (66)
  • May 2016 (71)
  • April 2016 (67)
  • March 2016 (71)
  • February 2016 (68)
  • January 2016 (90)
  • December 2015 (96)
  • November 2015 (103)
  • October 2015 (119)
  • September 2015 (115)
  • August 2015 (117)
  • July 2015 (117)
  • June 2015 (105)
  • May 2015 (111)
  • April 2015 (119)
  • March 2015 (69)
  • February 2015 (54)
  • January 2015 (39)

Tags

APFS Apple Apple silicon backup Big Sur Blake Bonnard bug Catalina Consolation Console Corinth Delacroix Disk Utility Doré El Capitan extended attributes Finder firmware Gatekeeper Gérôme High Sierra history history of painting iCloud Impressionism landscape LockRattler log M1 Mac Mac history macOS macOS 10.12 macOS 10.13 macOS 10.14 macOS 10.15 macOS 11 macOS 12 macOS 13 macOS 14 macOS 15 malware Metamorphoses Mojave Monet Monterey Moreau myth narrative OS X Ovid painting performance Pissarro Poussin privacy Renoir riddle Rubens security Sequoia Sierra SilentKnight Sonoma Swift Time Machine Tintoretto Turner update upgrade Ventura xattr Xcode XProtect

Statistics

  • 22,518,342 hits
Blog at WordPress.com.
Footer navigation
  • About & Contact
  • Free Software Menu
  • Macs
  • Painting
  • Downloads
  • SilentKnight, Skint, SystHist, silnite, LockRattler & Scrub
  • XProCheck, T2M2, LogUI, Ulbow, blowhole and log utilities
  • Mints: a multifunction utility
  • xattred, SpotTest, Providable, Spotcord, Metamer & xattr tools
  • Versatility & Revisionist
  • DelightEd & Podofyllin
  • Precize, Alifix, UTIutility, Sparsity, alisma, Taccy, Signet
  • System Updates
  • Spundle, Cormorant, Stibium, DropSum, Dintch, Fintch and cintch
  • Virtualisation on Apple silicon
  • Cirrus & Bailiff
  • Text Utilities: Textovert, Disclipper, Nalaprop, Dystextia and others
  • sysctl information
  • Extended attributes (xattrs)
  • 32-bitCheck & ArchiChect
  • Keychains & Permissions
  • PDF
  • VisualLookUpTest
  • Updates
  • Long Reads
  • Mac Troubleshooting Summary
  • Saturday Mac Riddles
  • Last Week on My Mac
  • Painting topics
  • Mac problem-solving
  • M-series Macs
Secondary navigation
  • Search

Post navigation

Hero or hooligan: Achilles becomes the warrior

Begin typing your search above and press return to search. Press Esc to cancel.

  • Comment
  • Reblog
  • Subscribe Subscribed
    • The Eclectic Light Company
    • Join 9,244 other subscribers
    • Already have a WordPress.com account? Log in now.
    • The Eclectic Light Company
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar

Loading Comments...

    %d