Here is what I’m trying to accomplish - Using the “as Three Panes” view, I want to select a group (triggering my script) in the leftmost of the three panes and have the script select a (fixed, or hard coded) file in the upper right pane (called “Default” in my example) causing it to be previewed in the lower right pane.
This is what I have so far -
on triggered(theRecord)
display dialog "Yup, I'm executing"
try
tell application id "com.devon-technologies.thinkpro2"
set theSelection to the children of theRecord
repeat with thisItem in theSelection
if the name of thisItem is "Default" then
display dialog "Found Default"
set selection to thisItem
end if
end repeat
end tell
end try
end triggered
This works perfectly with the exception that it does not select the file, which, of course, is the purpose. I’m thinking it is a window focus problem in that “selection” is relative to the active window. This is where I am out of ideas. I suspect this is really simple but my brain is empty.
Ideas are appreciated.
Thanks - Gary