Speak Text in Most Recent Text File in Folder [Example] Macro (v9.2)

MACRO:   Speak Text in Most Recent Text File in Folder [Example]

This macro will speak the following from the most recently modified file in the specified folder:

  • File Name
  • Text in File

-~~~ VER: 1.0    2021-01-26 ~~~
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:

Speak Text in Most Recent Text File in Folder [Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


User Changes

  1. Macro Trigger -- current trigger as uploaded is CTRL-F1
    .
  2. You will need to change the second Action to set it to the path to the folder you want to use.
    The default is:
    ~/Downloads/RT

image


ReleaseNotes

Author.@JMichaelTX

PURPOSE:

  • Speak Text in Most Recent Text File in Folder [Example]

NOTICE: This macro/script is just an Example

  • It is provided only for educational purposes, and may not be suitable for any specific purpose.
  • 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.

REQUIRES:

  1. KM 8.0.2+
  • But it can be written in KM 7.3.1+
  • It is KM8 specific just because some of the Actions have changed to make things simpler, but equivalent Actions are available in KM 7.3.1.
    .
  1. macOS 10.11.6 (El Capitan)
  • KM 8 Requires Yosemite or later, so this macro will probably run on Yosemite, but I make no guarantees. :wink:

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. :wink:
      .
  • 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 Actions that are shown in the magenta color