January 18, 201312 yr I've got a library with 1000's of books so to make it easier I have placed letters A - Z for the user to click on and bring up only those books starting with that letter. I really don't want to write 26 different scripts to do a Perform Find for A, B, etc..., so each of the text letters which have the script button attached to them, I gave an object Name A, B etc. and used the script; Set Variable [ $abc; Value:Get(ActiveLayoutObjectName)] and then used the variable $abc in my Perform Find.....But it doesn't work! I did some tests but it seems that Get(ActiveLayoutObjectName) doesn't work when clicking on buttons. Am I mistaken? Is there another easier way to do this other than write 26 seperate scripts for each letter? Thanks so much for your help in advance.... and have a great weekend
January 18, 201312 yr You could also just use a script parameter on the button - not as slick as having the button tell the script which it is, but it accomplishes the same thing. Your Set Variable would then be Set Variable [$abc; Value:Get(ScriptParameter)]
January 18, 201312 yr Pressing a button doesn't let it became active. You could pass each letter as a script parameter.
January 22, 201312 yr Author Never Used a script parameter, but I see it now. Yes, easy solution. Thanks again and have a great day!
Create an account or sign in to comment