MACRO: Go To Macro by Name (Spotlight)

I think I was unclear, I mean that the Go to Macro by Name (Spotlight) macro fails when it uses the Macro Scroll Position Sub Macro under these conditions.

If KM now has the same functionality as Go to Macro by Name (Spotlight) then I haven't seen that before.

Sorry, I misunderstood.

As @DanThomas mentioned, KM now automatically keeps track of last scroll position, so that Sub-Macro that Dan wrote is no longer needed. So, just disable or delete the Execute Macro action that calls it, like this:

image

thanks! problem solved.

1 Like

I know I'm going to sound stupid, but I'm confused by the fact that when I try to run Go To Macro by Name (Spotlight), it tells me "Mission option 'title'". Am I supposed to copy the template in Spotlight Search Prompt into Go To Macro by Name (Spotlight) and fill out the variables myself?

Hey Pariah,

Huh?

Please post a screenshot.

-Chris

Damn autocorrect. "MISSING option title" :rofl:

Hey Pariah,

:smile:

I just installed it, and it was a bit weird – because it/they installed in 3 macro groups with the same name.

I had to consolidate all three macros into the same macro group.

You MUST have already installed the Spotlight Search Prompt macro group – OR if it's NOT already installed it then install it along with the Go To Macro by Name macros.

-Chris

"It/they" would be me, and I don't remember anything. :stuck_out_tongue: I was hoping one of you guys would try to help, so thanks!

1 Like

Hi, Chris.

I have the Spotlight Search Prompt group. Ah. I was playing around with that, and that's what makes Go To Macro by Name (Spotlight) fail. Disabling the variables template action fixes Go To Macro by Name (Spotlight)

Chris, I has been a long time since installed Dan's Go To Macro by Name (Spotlight), but I don't recall anything like that. As I recall, it is one macro that installs into one Macro Group (a KM Editor.app group). Can you post a screenshot showing this?

@DanThomas, can you comment on what Chris is seeing?

I use and really like Dan's macro, so I want to see this cleared up.

Just to be clear, the second Action in Spotlight Search Prompt macro must be disabled in order for any of Dan's other macros that run on SSP (like this one) to work:

image

Yeah, I misunderstood the directions and tried editing a copy of the template.

Any idea how to make this work when called from outside KM? I moved the macro to a global group. The shortcut brings it up, and the list of macros, but when I select one and click OK. KM doesn't launch.

I want to be able to edit and change macros from wherever without the need to first separately launch the KM editor. I have a few macros I need to edit weekly.

Hey Pariah,

Not very shocking, since the macro is designed to work in a Keyboard Maestro Editor Macro Group.

Look at the two purple actions I added in the macro below.

-Chris


This macro may or may not function with Keyboard Maestro 8.2.4.

Go To Macro by Name (Spotlight).kmmacros (43 KB)

@iampariah, Chris @ccstone has the right idea, but I made two changes:

  1. Moved the new purple Actions to the top
    • In case @DanThomas, or someone, updates his macro to take advantage of scripting the KM Editor, rather than hacking the macro XML.
  2. Removed the call to "Macro Scroll Position" macros
    • KM now does this

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MACRO:   Go To Macro by Name (Spotlight) [Global]

**Requires: KM 8.2+   macOS 10.11 (El Capitan)+**

#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/6/8/6879849962490904602db48056f9202b4cc02800.kmmacros">Go To Macro by Name (Spotlight) [Global].kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**




---

### ReleaseNotes

Author.@DanThomas   Minor Mod by: @JMichaelTX 

**PURPOSE:**

* **Activate KM Editor and Edit Selected Macro**
   * Modified to run from Global Group

**HOW TO USE**

1. First, make sure you have followed instructions in the _Macro Setup_ below.
2. From any app, Trigger this macro.

**MACRO SETUP**

* **Carefully review the Release Notes and the Macro Actions**
  * Make sure you understand what the Macro will do.  
  * You are responsible for running the Macro, not me.  ??
.
**Make These Changes to this Macro**
1. Assign a Trigger to this macro.
2. Move this macro to a Macro Group that is only Active when you need this Macro.
3. ENABLE this Macro, and the Macro Group it is in.
.
**Change Log**
1. ADD Actions in Purple: Activate KM and Pause Until KM Window
2. DELETE Execute Macro "Macro Scroll Position" since KM now does this.

**REQUIRES:**

1. **KM 8.2+**
2. **macOS 10.11.6 (El Capitan)+**

TAGS:  @DanThomas @Macros @Edit

USER SETTINGS:

* Any Action in _magenta color_ is designed to be changed by end-user

ACTION COLOR CODES

* To facilitate the reading, customizing, and maintenance of this macro,
      key Actions are colored as follows:
* GREEN   -- Key Comments designed to highlight main sections of macro
* MAGENTA -- Actions designed to be customized by user
* YELLOW  -- Primary Actions (usually the main purpose of the macro)
* ORANGE  -- Actions that permanently destroy Variables or Clipboards,
OR IF/THEN and PAUSE Actions


**==USE AT YOUR OWN RISK==**

* While I have given this a modest amount of testing, and to the best of my knowledge will do no harm, I cannot guarantee it.
* If you have any doubts or questions:
  * **Ask first**
  * Turn on the KM Debugger from the KM Status Menu, and step through the macro, making sure you understand what it is doing with each Action.

---

<img src="/uploads/default/original/3X/f/7/f7db2c38fe1e8625ced7bfce0d4c9365bfa39581.png" width="731" height="1590">

Works great. Thanks, JMichael and Chris

@DanThomas
Hi Dan! After installing the newest KM V9.0 with macOS Mojave 10.14.6.
Running this Macro reports the following error:

Macro Scroll Position - Store for Current Macro (Sub-Macro)

An error has occurred: System Events got an error: Can't get window "Keyboard Maestro Editor" of process "Keyboard Maestro". 

You don't need that sub-macro anymore. Just disable or delete the call to it (Execute Macro).
image

1 Like

@JMichaelTX That works for the macro Go To Macro by Name (Spotlight). Thanks!

1 Like