Quoting Aaron Ballman <[EMAIL PROTECTED]>:

> > Is it possible to pass a shell path (i.e.: "/Library/Fonts") to an
> > Open or Save file dialog as the InitialDirectory?
> > 
> > If not, is there a routine for converting the shell path string to
> > the requisite Volume(x).Child().Child()... format that it appears
> > that the dialogs expect?
> 
> Forgive me (I have a terrible head cold, so my mind is fairly well 
> melted)... but doesn't InitialDirectory take a FolderItem?  And can't 
> you make a FolderItem from a shell path using GetFolderItem or new 
> FolderItem?

Hi Aaron,

Good tip - I've got it locked in.  However, I get an 
"UnsupportedFormatException" error when I call f1 = New FolderItems(tmpPath, 
FolderItem.PathTypeShell).  In the code below, tmpPath contains a Unix path of 
the type:

  "/Volumes/Drive/Backups/123456"

My code to walk through that, supposedly creating missing path elements as I 
run, looks like this:

  f1 = GetFolderItem(tmpPath, FolderItem.PathTypeShell)
  if f1 = Nil Then
    Debug.Print "f1 is Nil, creating folder"
    f1 = New FolderItem(tmpPath, FolderItem.PathTypeShell)
    // The error occurs on that last line
    Debug.Print f1.AbsolutePath + ", " + f1.ShellPath
    f1.CreateAsFolder
  End If

I always get the "UnsupportedFormatException" error when I get to the path 
element that doesn't exist.  According to the FolderItem LR entry, this should 
only occur if the path is not an absolute path.  However, I am passing an 
absolute path.  Further searches on "UnsupportedFormatException" provide no 
further details.

Tim
--
Tim Jones                                    [EMAIL PROTECTED]

_______________________________________________
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>

Reply via email to