MACRO: Files Move Files with Ext in Folder [Example]
~~~ VER: 2.0 2018-03-15 ~~~
DOWNLOAD:
Files Move Files with Ext in Folder [Example].kmmacros (18 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.
This macro was built in response to this request:
Using wildcard characters to move certain file
While the meat of this macro is just one, fairly simple, shell script, it can be useful to have a nice KM wrapper that makes the process easy and safe. Sometimes just one minor error in a shell script can be catastrophic.
Please feel free to post any questions, issues, and/or suggestions that you have for this macro.
Example Output
ReleaseNotes
Author.@JMichaelTX
PURPOSE:
- Move Files with Extension in Folder
NOTICE: This macro/script is just an Example
- It has had very limited testing.
- You need to test further before using in a production environment.
- It does not have extensive error checking/handling.
- It may not be complete. It is provided as an example to show you one approach to solving a problem.
HOW TO USE:
- Trigger this macro
- Select Extension of Files to be Moved
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.
.
- Assign a Trigger to this maro.
- Move this macro to a Macro Group that is only Active when you need this Macro.
- ENABLE this Macro.
. -
REVIEW/CHANGE THE FOLLOWING MACRO ACTIONS:
(all shown in the magenta color)- Set Source Folder
- Set Destination Folder
- PROMPT for File Extension to Search For
- Review/Add File Extensions to Prompt as needed
TAGS: @Search @Files @Folder @Move @ShellScript @Find
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
REQUIRES:
- Keyboard Maestro Ver 8.0.3+
- El Capitan 10.11.6+
- It make work with Yosemite, but I make no guarantees.
USE AT YOUR OWN RISK
- While I have given this limited 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.