Forum
    • Categories
    • Register
    • Login

    fromAbsolutePath

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 379 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • David HealeyD
      David Healey @DanH
      last edited by

      @DanH Same as bash ~/

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @David Healey
        last edited by DanH

        @d-healey ah yes, ok that seemed to work. It's returned an object. Do you know what I can do with that object?

        Basically I'm trying to get the location string out of an existing LinkOSX file and use it to write a new Link file in a different directory.

        EDIT - just found loadAsString. Getting somewhere with it...

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @DanH
          last edited by

          @DanH It's a File object, look up File in the api

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @David Healey
            last edited by

            @d-healey 👍

            Is there a Widows equivalent for ~/ or is it the same?

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @DanH
              last edited by

              @DanH Not sure. Where is the link file located? Is it in appData?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @David Healey
                last edited by

                @d-healey it’s not. It’s in Roaming etc but under a different app name that will share the same sample folder. To avoid the user installing the samples twice I’m trying to make this work.

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @DanH
                  last edited by

                  @DanH Roaming is in appdata, no?

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  DanHD 1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @David Healey
                    last edited by

                    @d-healey oh ha, yeah I thought you meant appData as in the Hise file system.

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @DanH
                      last edited by

                      @DanH Don't use absolute paths unless absolutely necessary. If you want the (cross platform) folder for application data, just go two levels above your app data folder (it's always AppData/Company/Product

                      const var systemAppData = FileSystem.getFolder(FileSystem.AppData).getParentDirectory().getParentDirectory()
                      
                      DanHD 2 Replies Last reply Reply Quote 0
                      • DanHD
                        DanH @Christoph Hart
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • DanHD
                          DanH @Christoph Hart
                          last edited by

                          @Christoph-Hart great, all working so far, thanks!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          24

                          Online

                          2.1k

                          Users

                          13.1k

                          Topics

                          113.3k

                          Posts