No internet connection
  1. Home
  2. How to

How can I get to an app like Xtra Finder in the menu bar?

By Jason Torrens @Jason_Torrens
    2021-03-21 10:13:04.744Z

    I've tried the "Access items in the menu Bar" forum post which uses Magnet, and also found the Change Audio /Sound output function (that works really well). What I think I need help with is to know the App's name or extension is. Here's a pic of what I'm trying to access from the menu bar. I want to use the Dual Window - Horizontal function.
    Any help aprreciated.

    • 8 replies
    1. Hey Jason!

      You can find out what the app bundle ID is for that kind of menu item by using the Click UI macro action:

      Click on "Pick", then hover over the Xtra Finder icon on the menu bar (it won't turn red as elements usually do) and click it. This will populate the UI Element field in the Click UI Element field. Now you're going to grab the Javascript for this by clicking here:

      You'll get something like this on the clipboard (I'm using Magnet as an example):

      sf.ui.app("com.crowdcafe.windowmagnet").getElement("AXExtrasMenuBar").elementClick();
      

      From here you can copy the bundle ID, which will be the string between the app() parenthesis.

      Now paste that string where I've indicated in the code below:

      sf.ui.app('INSERT APP BUNDLE ID HERE').getElement('AXExtrasMenuBar').popupMenuSelect({ menuPath: ['Dual Window - Horizontal'] });
      

      And you should be good!

      Let me know if that makes sense.

      1. JJason Torrens @Jason_Torrens
          2021-03-22 02:40:44.362Z

          Thanks Christian.
          I have a feeling this particular app is unique. The app bundle ID shows up like this when I copy the Javascript...

          sf.ui.finder.getElement("AXMenuBar").elementClick();

          It doesn't say it's an "app" specifically.
          For example, I got code working to pull up the adjacent menu for TypeIt4Me, that works fine, but this one is annoyingly different. Any hints for me here?

          1. I see what you mean. I was going to install the app so I could dig deeper but since I have to disable the System Integrity Protection (SIP) to do it, I decided not to move forward with that since I can't compromise my machine in the middle of the project I'm currently working on (I'm sure it's fine, I just can't take a risk right now with a deadline looming over me lol). But reading the documentation, it seems like it's not an app but rather a bundle you add to your system. I've never seen anything like that before, but it does explain why the UI Element picker doesn't return an app bundle ID.

            I'm gonna call in @Kitch for an assist here. Kitch, do you want to take a look?

            1. JJason Torrens @Jason_Torrens
                2021-03-25 23:31:15.219Z

                Thanks so much for your efforts here. No stress if it doesn't work out, I'll try some other methods to get this to work.
                In the meantime, I'm finding such joy in creating all the other sweet options for time saving macros and what not. This is epic. I'm addicted.
                Thanks @Kitch for having a look at this. No rush, just really appreciate the efforts from you all.

                1. Kitch Membery @Kitch2021-03-26 00:41:38.928Z

                  Hi, @Jason_Torrens,

                  You may be in luck.

                  I just found this web page;

                  https://www.trankynam.com/xtrafinder/doc/index.html

                  Under the general tab at the above link, it looks like the menu items for Xtra Finder are duplicated under the Finder's Finder Menu. (That is a confusing sentence).

                  If that is the case then a macro action like this should do it.

                  Rock on!

                  1. JJason Torrens @Jason_Torrens
                      2021-03-26 02:52:09.756Z

                      Seriously, amazing. So simple, so easy now. Really appreciate this. Done, working, absolutely Rock on!
                      THANK YOU!

                      1. Kitch Membery @Kitch2021-03-26 05:47:10.799Z

                        Wonderful news. What a stroke of luck :-)

                    • In reply toJason_Torrens:
                      Kitch Membery @Kitch2021-03-26 01:12:18.211Z

                      One more thing @Jason_Torrens,

                      I'm not exactly sure what XtraFinder does but thought you should be aware of commands that SoundFlow has built-in for arranging windows, just in case that is what you are trying to achieve :-)

                      In the SoundFlow Editors Edit window scroll to the bottom of the Packages column and under "Windows" you will find the following commands.

                      You can also access these as Macro Actions;

                      Hope that helps.