> But I'm just wondering if there isn't a more elegant way and/or more direct
> way of doing this. Either part of the CF libraries and functions or part of
> the MBS plugin.
Since I wrote this post, I progressed a bit in that area.
First, I discovered there's something called CFBookmarkMBS in the latest
plugin version and thought it might help in parsing the CFBinaryDataMBS that
seems to contain an alias string.
Like so:
-------------------
valueObj = obj1subList.Value(j)
if valueObj isa CFStringMBS then
valueString = MakeString(valueObj)
elseif valueObj isa CFBinaryDataMBS then
valueString =
CFBookmarkMBS.CreateBookmarkDataFromAliasRecord(CFBinaryDataMBS(valueObj).St
r)
dim isStale as Boolean
dim options as UInt32 = CFBookmarkMBS.kResolutionWithoutUIMask +
CFBookmarkMBS.kResolutionWithoutMountingMask
file = CFBookmarkMBS.ResolveBookmarkData( valueString , options, nil,
isStale)
Sometimes it works, but more often than not, it yields a nil file
-----------------
I also tried with the MacAliasMBS with the CFBinaryDataMBS.str, like so
valueObj = obj1subList.Value(j)
if valueObj isa CFBinaryDataMBS then
tempAlias = new MacAliasMBS
tempAlias.SetRecord(CFBinaryDataMBS(valueObj).Str)
file = tempAlias.Resolve(nil, 0)
end if
But that doesn't seem to work either.
Any suggestion ?
Louis
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info