I'm trying to extract finder information for files on disk using info
for
set fileInfo to info for (theFolder & theFile) as alias
I can use all the items in the returned record, EXCEPT kind
info for alias "Macintosh HD:Users:geo:TEST:IN:ABC-39-AVC-100K.mp4"
{name:"ABC-39-AVC-100K.mp4", creation date:date "Wednesday, 20 July
2005 3:20:58 PM", modification date:date "Wednesday, 20 July 2005
3:21:00 PM", icon position:{0, 0}, size:5.848841E+6, folder:false,
alias:false, package folder:false, visible:true, extension
hidden:false, name extension:"mp4", displayed name:"ABC-39-
AVC-100K.mp4", default application:alias "Macintosh
HD:Applications:QuickTime Player.app:", kind:"MPEG 4 Movie", file
type:"file creator:"type identifier:"public.mpeg-4", locked:false,
busy status:false, short version:"", long version:""}
I get an error when referring to kind like this:
set myvar to kind of fileInfo
"Can't get kind of ...."
I'm presuming AS is getting confused, seeing it as an internal
property rather than letting me refer to the record item. Can I
express it differently to extract this nugget?
thanks,
--
George Bray
Division of Communication and Education
University of Canberra
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden