Page 1 of 1

Obtaining the currently selected items in Applescript

Posted: Tue Jun 04, 2019 7:34 am
by lyndondrake
Hi,

I've just tried this in Applescript:

Code: Select all

tell application "Bookends"
	tell front library window
		set theRefs to selected publication items
as a way to obtain the currently selected publication items. theRefs ends up being a list with the same number of items as I have currently selected in the front library window, but the items in the list are different items from the ones I've selected. I can't see any pattern to which items come through.

Is there another way to obtain the selected items?

Re: Obtaining the currently selected items in Applescript

Posted: Tue Jun 04, 2019 8:36 am
by Jon
There's another thread on this somewhere -- it was fixed by Rebuilding the library.

Jon
Sonny Software

Re: Obtaining the currently selected items in Applescript

Posted: Tue Jun 04, 2019 4:48 pm
by lyndondrake
Cool, that fixed it. (Though is that something I'll have to do regularly in Bookends?)

Re: Obtaining the currently selected items in Applescript

Posted: Tue Jun 04, 2019 4:56 pm
by Jon
I have no way of knowing.

Jon
Sonny Software

Re: Obtaining the currently selected items in Applescript

Posted: Wed Jun 05, 2019 1:25 pm
by Jon
We've isolated the problem and it's fixed in the next update.

Jon
Sonny Software

Re: Obtaining the currently selected items in Applescript

Posted: Thu Jun 06, 2019 1:47 pm
by lyndondrake
Thank you!