HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting Mac folder strings..

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 220 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.
    • LindonL
      Lindon
      last edited by Lindon

      So I'm building an installer/uninstaller in HISE and I'd like to get the plugin folder as a string, so these:

      Macintosh HD\Users\<username>\Library\Audio\Plugins\VST3
      Macintosh HD\Users\<username>\Library\Audio\Plugins\Component
      

      Im no Mac expert (as should be pretty obvious by now...)

      Any way to get to these in HISE?

      Or does everyone just use:

      \Library\Audio\Plugins\VST3
      \Library\Audio\Plugins\Components

      ???

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @Lindon
        last edited by d.healey

        @Lindon

        Don't use the user folder. Use the system folder. https://helpcenter.steinberg.de/hc/en-us/articles/115000171310

        I did add a function to HISE that returns some system information. It might return the name of the logged in user I can't remember. If it doesn't do it I could add it very easily as it's just an extra property JUCE provides.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        Christoph HartC LindonL 2 Replies Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @d.healey
          last edited by Christoph Hart

          This:

          Macintosh HD\Users\<username>\
          

          can be always written like this:

          ~/
          
          ~/Library/Audio/Plugins/VST3
          

          Also, don't ever use backslashes as path separators. That's Windows only (and even Windows accepts the / separator, so there's absolutely no reason to use \.

          LindonL 1 Reply Last reply Reply Quote 1
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey - yeah I think my edit and your message crossed in the post... I will stick to the system wide locations then.

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Christoph Hart
              last edited by

              @Christoph-Hart - yeah I get that thanks - it was just a convenience (me being lazy) in my posting...

              HISE Development for hire.
              www.channelrobot.com

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

              28

              Online

              1.8k

              Users

              12.1k

              Topics

              105.4k

              Posts