Request: KM8: Add "MacroActionType" Property to All Actions Scripting Model

@peternlewis, could you please add a “MacroActionType” Property to All Actions in the Scripting Model.

Currently, we have to parse the XML to get this:

<key>MacroActionType</key>
<string>PromptForUserInput</string>

This greatly complicates writing AppleScript to process the Actions of a Macro.

Here’s one great use case:

set actionList to every action in oMacro whose action type contains "script"

to return all Execute Script actions.

Thanks.

1 Like

Not really, because it is an opaque field, and there is not a 1-1 correspondence between the action type and the actions. Some different actions have the same action types, and some single actions have (at least in the past, not sure if it is still true) different action types.

So it is an implementation detail that I don’t really want to expose.