SD7 on 10.15.7 (maybe a Catalina issue?
Does not run. Macro looks like this when opened:
which I'm guessing is uncompiled so I copied it as this (which looks compiled here as I added the code block formatting before and after):
try
# Screen dimensions
set display to NSDeviceSize of deviceDescription() of item 1 ¬
of NSScreen's screens() as record
# Mouse position relative to bottom-left of screen
set mouseLocation to NSEvent's mouseLocation as list of text or text
# Adjust mouse position coordinates to be relative to top-left of screen
set mouseLocation's y to (the display's height) - (mouseLocation's y)
--------------------------------------------------------
tell application "System Events"
set clickObjectRef to click at the mouseLocation's {x, y}
set objClass to class of clickObjectRef
set objParent to missing value
if objClass = row then
set childObjectList to UI elements of clickObjectRef's UI element 1
else if objClass ≠ UI element then
repeat while objClass ≠ UI element
set objParent to value of attribute "AXParent" of clickObjectRef
set objClass to class of objParent
end repeat
set childObjectList to objParent's UI elements
else
set childObjectList to clickObjectRef's UI elements
end if
set staticTextValueList to {}
repeat with i in childObjectList
if class of i is static text then set end of staticTextValueList to value of i
end repeat
set AppleScript's text item delimiters to linefeed
return staticTextValueList as text
end tell
on error e number n
set e to e & return & return & "Num: " & n
if n ≠ -128 then
try
tell application (path to frontmost application as text) to set ddButton to button returned of ¬
(display dialog e with title "ERROR!" buttons {"Copy Error Message", "Cancel", "OK"} ¬
default button "OK" giving up after 30)
if ddButton = "Copy Error Message" then set the clipboard to e
end try
end if
end try
and pasted into SD7 as new doc with these settings:
and got this:


