Script for Shortcut to Open Property Inspector
Roger Guay
irog at mac.com
Thu May 12 13:41:49 EDT 2016
Thank you, Klaus. Exactly what I needed!
> On May 12, 2016, at 9:51 AM, Klaus major-k <klaus at major-k.de> wrote:
>
> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list