On Mar 19, 2006, at 11:04 AM, Jeffrey Ellis wrote:
"RBNUBE" <rbnube at mabenterprises dot com>
Either the Value or Key of Dictionaries are paths, so you could use
GetFolderItem.
I believe you can also store the folder item in the Dictionary as the
Value.
This would probably be the preferred method anyway. You should be
able to
gather any file/folder information you need from this FolderItem.
Check FolderItem in the LR.
As for me, I'm heading to Vancouver, BC for a week-long training
session.
Wish you luck!
So... to anyone else out there...
I'm putting the folderitem into the dictionary. But I don't know how
to get
the absolute path to the folder item back out.
Would it be...
SourceDictionary.Value(SourceDictionary.Key(j)).absolutePath??
Well, let's see. SourceDictionary.Value returns a Variant. Variant
does not have an AbsolutePath property. So this will not compile.
Instead you need to do something like the following.
dim f as FolderItem = SourceDictionary.Value(SourceDictionary.Key(j))
//if the stored value is not a FolderItem, REALbasic will raise an
IllegalCastException
DoSomethingWith f.AbsolutePath
or you could just do
FolderItem(SourceDictionary.Value(SourceDictionary.Key(j)).ObjectValue).
AbsolutePath
--------------
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>