I think this is a new feature but I am trying to use the "Interact with UI Element" action. The apps I want to use it with have the file name in the Window Title bar so when I choose the element to interact with it is specific to the file that is open and I cannot use it with any other file. Is there some kind of wildcard I can use in the code "AXWindows[0]Window{"Untitled 17"} -> " where the Untitled 17 would refer to any file? Most of the files I use are temporary files so it is useless to set up a bunch of code just to use once.
This is the complete code for the UI Element (in this case but if I can figure out this one I think I can figure it out for other apps):
Application{"Pages"} ->
AXWindows[0]Window{"Untitled 17"} -> {this is the code I want to refer to ALL files)
AXChildren[8]Sheet{""} ->
AXChildren[2]RadioGroup{"_NS:152"} ->
AXChildren[1]RadioButton{"Spreadsheet"}
This element is in the Mail Merge dialogue box in Pages but even though it is its own dialogue box it still pulls the file name from the Window Title Bar.