• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Spotlight comments - command line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight comments - command line?


  • Subject: Re: Spotlight comments - command line?
  • From: email@hidden
  • Date: Mon, 18 Feb 2008 19:54:33 -0800

Thanks. This helps alot.

On Feb 18, 2008, at 5:28 PM, Tom Robinson wrote:

On 2008-02-19, at 11:56, email@hidden wrote:

Is there a way to access the Spotlight comments for files via the command line?

Is there a way to change Spotlight comments via the command line?

You can get & set them through AppleScript, does that count (you could use osascript)?


tell application "Finder" to set the comment of ThisFile to TheComment


You can also retrieve them with mdls:

mdls -name kMDItemFinderComment filename
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Spotlight comments - command line? (From: email@hidden)
 >Re: Spotlight comments - command line? (From: Tom Robinson <email@hidden>)

  • Prev by Date: Re: Updating records in Address Book
  • Next by Date: Re: Help with understanding matrices
  • Previous by thread: Re: Spotlight comments - command line?
  • Next by thread: Calling a variable from multiple scripts
  • Index(es):
    • Date
    • Thread