Hi all,
Apologies in advance for being slightly off topic and asking what I suspect may be a bit of a daft question...
I can get the Finder comments from a File's Info like this using AppleScript;
set theFile to choose file
tell application "Finder"
set theComments to the comment of theFile
end tell
...but (for reasons far too long and boring to go into) I need to get the same info using a shell script. I tried this;
mdls /Users/myname/Desktop/myfile.jpg | egrep "kMDItemFinderComment" | cut -f2 -d"\""
...and that worked fine on my Mac. However, if I use it on files residing on a mounted (non-Mac) volume then I don't get the Finder Comment (although I do get a lot of other stuff such as creation date, file type etc). The AppleScript above works fine in the same scenario.
Is there any way of getting this info by using a shell script, or am I wasting my time here?
Any hints or tips much appreciated!
Thanks
Rob