Using Applescript, if I know the folder name, what is the way to show the folder records in the browser window? Nothing I have tried works and this is proving deceptively illusive
Cheers,
Using Applescript, if I know the folder name, what is the way to show the folder records in the browser window? Nothing I have tried works and this is proving deceptively illusive
Cheers,
tell application "EagleFiler"
tell library document 1
set _record to first library record where its name is "Folder Name"
end tell
-- Select the folder in the records list.
-- Can then open it with Command-Down Arrow if you want.
tell browser window 1 to set selected records to {_record}
-- Or:
-- There is currently no corresponding "selected sources" property.
-- To select in the source list you can do this:
get url _record's URL
end tell
Hi Michael,
Many thanks. Folder selection in the source list was the aim. Eventually figured my solution was being thwarted by the default preference RevealRecordInParent=No.
Solved it by getting the folder’s record and using x-eaglefiler://open?library=…&recordGUID=. That highlights the folder in the source list and its records in the browser.