Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Add Spotlight Comments to a file  RSS feed

 
Greenhorn
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
 
Rancher
Posts: 43009
76
  • 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
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
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!