Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 71313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:52:05+00:00 2026-05-10T19:52:05+00:00

I would like to modify a Spotlight metadata attribute of a file within my

  • 0

I would like to modify a Spotlight metadata attribute of a file within my application (i.e. not in a Spotlight importer) but I can’t find any API for doing so. Is it possible? Pointers to the relevant docs would be ideal.

In case it’s helpful, here’s my use case:

I want to store a reference to a file system path in a Core Data store. Ideally, I should be able to find the file even if is moved, potentially across mounted volumes. My understanding is that an archived FSRef or AliasRecord will not do the trick because they are not invariant wrt to moves across mounted volumes. So my plan was to store a URL and also to add a UUID (also stored in the data store) to the file’s Spotlight metadata so that I could perform a Spotlight query for that UUID if the URL no longer pointed to the file when the app goes back to look for the file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:52:06+00:00Added an answer on May 10, 2026 at 7:52 pm

    After further research, using Spotlight is not the best solution for the use case. The AliasRecord is a better persistent storage for a file. It automatically tracks moves/renames/etc. You can read more about AliasRecords here. Chris Hansen has written an Objective-C wrapper for AliasRecords, BDAlias. It’s currently available from the rentzsch.com SVN.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to modify the NavigateUrl property of a Hyperlink control. I need
I have a weird problem and I would like if someone can enlighten me
I would like to know what are the best practices to manage fixtures of
I would like to make a plugin that lets you use the google fonts.
I would like to have the visual representation of an HTML5 <textarea> tag indicate
1) Is it true that if you would like to have your custom dialogues
I have an html5 video that I would like to automatically update with a
Hey, so what I am looking to accomplish is a MySQL query which grabs
I have this stylesheet: @-webkit-keyframes run { 0% { -webkit-transform: translate3d(0px, 0px, 0px); }
I have a DLL (written in C) that uses static thread local storage (

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.