>I'm getting an UnsupportedFormatException in a console app on OS X >(10.4.6) when I try the following call: > > f = GetFolderItem( "~/Temp/stuff", FolderItem.PathTypeShell ) > >Yet the following works just fine: > > f = GetFolderItem( "/Users/jstrout/Temp/stuff", FolderItem.PathTypeShell ) > >and in Terminal, the two paths are equivalent (since ~ is simply my >home folder, /Users/jstrout). I'd like to use the former though, so >it I don't bake in so much detail about where my home directory is. >Can anybody think of a reason why it should behave this way?
Maybe because the docs says "If you pass a Shell path, it must be an absolute path. If not, an UnsupportedFormatException will result"? -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Idéer AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se _______________________________________________ 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>
