Is it possible to read Finder comments using LiveCode?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Is it possible to read Finder comments using LiveCode?

Post by japino » Fri Mar 29, 2013 4:45 pm

Is it true that it is not possible to read Finder/Spotlight comments for a file in OS X using LiveCode? I could not find anything about this in the dictionary. Looks like I may have to resort to using AppleScript to read the Finder/Spotlight comments, but confirmation from a LiveCode guru would be nice! Thanks!

japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Re: Is it possible to read Finder comments using LiveCode?

Post by japino » Fri Mar 29, 2013 5:19 pm

I went ahead and used AppleScript to get the Finder comments, it was easier than I thought. But still it would be nice to know if this can be done from LiveCode itself.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is it possible to read Finder comments using LiveCode?

Post by FourthWorld » Fri Mar 29, 2013 6:00 pm

There's no built-in LiveCode command to handle that specifically, but many of these sorts of OS-specific things can be handled well through the more generic interfaces to OS extensibility provided via LiveCode's support for AppleScript, shell, etc., as you've discovered.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply