Using KM Clipboard 1 and 2 to Name a New Folder

Hi all,

I am new to Keyboard Maestro and have fairly recently moved over from Windows to Macs so all is new to me.

What I am trying to achieve is use to copy two names into the KM clipboard then use that to create a new folder in a pre set folder in finder. I also need a pop up window to ask for a three digit code.

The resulting folder would look like TTT.111111.D9999999. assuming the last two parts are the two clipboard entries.

Can anyone set me straight please?

I will also use that final TTT.111111.D9999999 to create a drafts entry.

@Walkingonair, welcome to Keyboard Maestro (KM) and its Forum.
KM is one of the best Mac automation tools available, its Forum is one of the best and friendliest forums on the Internet. Whenever you reach a tough stumbling block trying to use KM, please feel free to post your question/problem here for help.

See below for some KM getting starting tips.

You will need only a basic KM Macro to automate your workflow.
I would suggest that you use a dash, underscore, or SPACE instead of a period to separate the parts of the folder name, since items that end in a .someText might be interpreted as a file.
I will use a dash in my macro.

Assuming that you cannot copy BOTH names in one action, then I'd suggest this process:

  1. Select and Copy first name
  2. Select second name
  3. Trigger the below macro

Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.

Please let us know if it meets your needs.

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

Example Output

image

image

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

MACRO:   Create New Sub-Folder Based on Data on Clipboard [Example]

-~~~ VER: 1.0    2021-03-05 ~~~
Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

DOWNLOAD Macro File:

Create New Sub-Folder Based on Data on Clipboard [Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


ReleaseNotes

Author.@JMichaelTX

PURPOSE:

  • Create New Sub-Folder Based on Data on Clipboard [Example]

HOW TO USE

  1. First, make sure you have followed instructions in the Macro Setup below.
  2. See "How to Use" Comment Action

.
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.
    .
    MACRO SETUP
    .
    Make These Changes to this Macro
  4. Assign a Trigger to this macro.
  5. Move this macro to a Macro Group that is only Active when you need this Macro.
  6. ENABLE this Macro, and the Macro Group it is in.
    .
  • REVIEW/CHANGE THE FOLLOWING MACRO ACTIONS:
    (all shown in the magenta color)
    • Set Sub-Folder Prefix -- CHANGE To Your Preference

REQUIRES:

  1. KM 9.0+ (may work in KM 8.2+ in some cases)
  2. macOS 10.11.6 (El Capitan)+

TAGS: @Folders @Clipboard @Example

USER SETTINGS:

  • Any Action in magenta color is designed to be changed by end-user

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.

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

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .