Access Spotlight comments Mac OS X
    Sarah Reichelt 
    sarah.reichelt at gmail.com
       
    Sat Apr 14 16:43:15 EDT 2007
    
    
  
> you can do that with applescript from Rev.
>
> check the following command:
>
> do As applescript.
>
> the applescript for that is something like
>
> tell application "Finder" to
>   return the comment of file "the file" of folder "the folder" of
> disk "startup disk 1"
> end tell
>
> and yes, there are easier way to reference files in applescript but I
> don't know it :-)
Applescript uses the older format for file paths which include the
drive name and where the folders are separated by colon e.g. Macintosh
HD:Users:sarah:Documents:Test.txt
Rev uses the Unix style which does not include the drive name and
where the separator is a slash e.g. /Users/sarah/Documents/Test.txt
To convert from one to the other, use the revMacFromUnixPath() or
revUnixFromMacPath() functions in Rev.
HTH,
Sarah
    
    
More information about the use-livecode
mailing list