Hi Roger,

> Am 12.05.2016 um 18:41 schrieb Roger Guay <[email protected]>:
> 
> I have a custom plugin palette of shortcut buttons. For example, one  is to 
> open the Stack Property Inspector which has this script:
> send "revBuildPropertyPalette" to stack  “revTemplatePalette"
> This worked fine until LC 8. In LC 8, it generates a “can’t find stack” 
> error. Can anyone tell me how to fix this?

yep, this has changed in LC 8.

Here a script that I use in my „Tools2“ palette to open the inspector for a 
stack or current card:
########################################################
on mouseUp
   select the topStack
   set itemdel to "."
   if item 1 of the version < 8 then
      send "revBuildPropertyPalette" to stack "revTemplatePalette"
   else
     ## Inspector for stack:
      revIDEOpenInspectorForObjects the long id of the topstack

       ## Inspector for current card:
      ##  revIDEOpenInspectorForObjects the long id of this cd of the topstack
   end if
end mouseUp
########################################################

No idea for the selected object, always doubleclick the objects, but maybe:
…
revIDEOpenInspectorForObjects the long id of the the selectedObject
…
?

> Thanks,
> 
> Roger

Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to