Is it possible to get macro icon programmatically (either via AppleScript or JXA)?
For more information, see the wiki Searching the Forum for Answers section.