File's comments on Mac

Sarah sarahr at genesearch.com.au
Thu Mar 27 20:54:00 EST 2003


Here is an AppleScript that asks you to choose a file and tells you the 
comment attached.
You can use this from with a Revolution script and have it return the 
comment which you can then read as "the result".

tell application "Finder"
	set tFile to choose file
	set tComments to the comment of tFile
	
	display dialog tComments
end tell

Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/

On Friday, March 28, 2003, at 01:14  am, rom1 wrote:

> Hello, i'm working on an on-screen portfolio. I'd like to get the text 
> from
> that comments-field in the info window.
> Anyone here knows how to do it ?
>
> Romain
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>





More information about the use-livecode mailing list