Script for Shortcut to Open Property Inspector
Klaus major-k
klaus at major-k.de
Thu May 12 12:51:41 EDT 2016
Hi Roger,
> Am 12.05.2016 um 18:41 schrieb Roger Guay <irog at mac.com>:
>
> 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
klaus at major-k.de
More information about the use-livecode
mailing list