• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Add Spotlight Comments to a file

 
Greenhorn
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic