Insert by Typing not working for me

If I may ask a question:

I have a macro that works like yours. My problem is that the client's name is in a variable. If I use the function 'Insert Text “%Variable%Local Adressat%” by Typing' instead of using the keyboard, nothing happens.

I also tried to insert this variable in Text Edit, copy the client's name and then insert it in the search field (command-v). Nothing happens again.

Does someone has an idea to solve this problem?

As a start, welcome! Happy to have you join us.

Lots of helpful people here that would be to assist you but we need to see the macro. Ideally please include a screenshot of the macro and the macro as well (similar to what I did above).

With the above post somewhat high jacking @nadess problem, can one of the mods please move @baettigdan post to a new thread so both can get help and the multiple problems don’t make the thread hard?

Thanks.

First, any time a macro “does nothing”, try the Interactive Help, Something expected is not happening and verify the macro is actually triggering and running. If the macro is not running, then it doesn't matter what your actions are they will do nothing.

Assuming your macro is running, the likelyhood is that you have made a mistake in the naming of your variable. The token %Variable%mistaken name% will silently return no text, since tokens have no errors, and referencing a non existent variable is equivalent to referencing an empty variable. And if that was the case, then inserting the text would do nothing. You could try adding some text outside the variable token, eg the name is %Variable%Local Adressat% and that would show whether the non-variable text is being inserted or not.

Gentlemen, thank you for your reply

I try to explain what happens.

Involved are 2 macros. The first one (Kunden-Liste für QR-Rechnung) reads the client’s information from a text file. Family name,first name,street and so on.

Kunden-Liste für QR-Rechnung.kmmacros (6.1 KB)

The second macro (Print Bill & go to Safari to create a QR-Code) starts in the numbers app where it collects some information and copies them in several variables. One of these variables is %Variable%Local Adressat% where the client’s name is copied.

The macro then changes to Safari where it copies the information in a form of my bank. Works great until it activates the first macro and should copy the variable %Variable%Local Adressat% in the field you can type. But the macros simply stops (see picture).

I have no idea what i’m doing wrong.

Thank you very much for your help.

Print Bill & go to Safari to create a QR-Code.kmmacros (25.2 KB)

The "Print Bill..." macro triggers the "Kunden-Liste..." macro then waits for it to finish before continuing.

The "Kunden..." macro throws this dialog:

...then pauses, waiting for input. That input can't come from "Print Bill..."'s next action because it's still waiting for "Kunden..." to complete.

You'll need to re-think your logic. Do you need to "Prompt with List" or can you get the data you want by searching for the line that starts with %Variable%Local Adressat%?

1 Like

I didn't think about the find file action. Thank you very much.