In the macoslib folder, look for the FileManager module and the FSAliasRecord within. For PLists, there are a number of ways, but the easiest is to use MacPListBrowser in the Additional Modules. EXCEPT, in testing, I found there is problem when retrieving FolderItems that no longer exist, so I will be posting an update to MacOSLib later. Once I do, you can do something like this:
dim f as FolderItem = <your network volume>
dim prefs as new MacPListBrowser
prefs.Child( "save folder" ) = f
if not prefs.SaveToFile( prefFile ) then
// Do something with the error
end if
Later:
dim prefs as MacPListBrowser = MacPListBrowser.CreateFromPListFile( prefFile )
dim pSaveFolder as MacPListBrowser = prefs.Child( "save folder" )
dim f as FolderItem = pSaveFolder.VariantValue
if f is nil or not f.Exists then
dim info as string = pSaveFolder.StringValue // This will be in the update
f = FileManager.GetFolderItemFromAliasData( info, nil, FileManager.kFSResolveAliasTryFileIDFirst )
end if
if f is nil or not f.Exists then
// Something has gone wrong
end if