Folderitem.Alias not working ?

  1. 2 weeks ago

    Richard D

    Nov 28 Pre-Release Testers, Xojo Pro Edinburgh, Scotland

    Using the following code on a Mac running MacOS 10.14 and Xojo 2019r2 my test app tells me that my alias is not an alias. The same happens in a version for 2019r1. The file exists, the Finder shows it to be an Alias, the app correctly shows the path to the original item but cannot detect that the Folderitem itself is an Alias. Am I doing something really stupid ?

    Dim f, as FolderItem

    f=SpecialFolder.Desktop.Child("drawing.svg alias")

    MessageBox f.AbsolutePath

    If f.IsAlias Then
    MessageBox("The FolderItem is an alias.")
    Else
    MessageBox("The FolderItem is not an alias.")
    End If

    Child will have resolved the alias so try TrueChild instead.

  2. Kevin G

    Nov 28 Pre-Release Testers, Xojo Pro Answer Gatesheed, England

    Child will have resolved the alias so try TrueChild instead.

  3. Richard D

    Nov 28 Pre-Release Testers, Xojo Pro Edinburgh, Scotland

    Yes, I was doing something stupid, thank you very much.

or Sign Up to reply!