• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Add Spotlight Comments to a file

 
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: 43011
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
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!