• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add Spotlight Comments to a file

 
Bd Howard
Greenhorn
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does anyone know if it is possible to add Spotlight Comments to a file via Java? I know this is easy with AppleScript, but what about Java? Can Java call an AppleScript?

I've written a little batch file-renamer and I'd like to add Spotlight Comments to those renamed files.

Thank you,

BD
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not directly, but two possible approaches are mentioned here: http://stackoverflow.com/questions/821969/query-mac-os-x-spotlight-from-java. This might also be of interest: http://code.google.com/p/understand/wiki/MacOSMetadata
 
Bd Howard
Greenhorn
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for those links. I was hoping for a more direct approach, but like the song says, "you can't always get what you want".

Appreciate your help,
BD
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic