When exploring UI elements in AS Editor, the result typically comes back as something like this:
{menu bar item "Apple" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Scrivener" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "File" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Edit" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "View" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Project" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Documents" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Format" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Window" of menu bar 1 of application process "Scrivener" of application "System Events", menu bar item "Help" of menu bar 1 of application process "Scrivener" of application "System Events"}
Is there some trick handler I can throw in the script so that what appears in the result window formats each comma delimited result on a new line, i.e, like this:
{menu bar item "Apple" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Scrivener" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "File" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Edit" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "View" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Project" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Documents" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Format" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Window" of menu bar 1 of application process "Scrivener" of application "System Events”,
menu bar item "Help" of menu bar 1 of application process "Scrivener" of application "System Events”}
Whenever I try the usual tricks, I always get back the error that I can’t coerce this result into a list, string, text, etc.
Thanks in advance!