PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a jpeg file object ($f) on my Mac and I would like to extract the spotlight comments from the picture. Is there a function that I can use in PHP to do it?
Nope. Spotlight stores comments separately to the file system so there's no way for PHP to access them.
It might be possible to write an extension that talked to Spotlight to get them. Other applications can definitely read the comments, but that'd be pretty tricky to code. Unless you're familiar with C programming and OSX's internals I doubt you'd succeed. It's certainly beyond my skill level.