#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" revInspectPanel 2 --> all handlers on mouseUp put the short name of the target into tPick put "revPropertyPalette 1" into stackName -- open Inspector palette if it isn't already open if the openStacks contains stackName is false then send "revBuildPropertyPalette" to stack "revTemplatePalette" else send "revUpdateTabs" to stack stackName end if send mouseDown to btn "Section" of stack stackName put btn "Section" of stack stackName into tList put lineOffset(tPick, tList) into lineNum if lineNum > 0 then set the menuHistory of btn "Section" of stack stackName to lineNum else beep end if pass mouseUp end mouseUp on altShowMe end altShowMe W d ( cConsNoCompilesForArchive 3cConsNoSetPropsForSave 4 cTopLeft 255,87cREVLaunching falsecConsLastHandlerName mouseUpcConsNoSetPropsForArchive 4cConsNoCompilesForSave 1cConsLastHandlerScroll 107 InspectPanel U Verdana W Verdana U Lucida Grande uRIP creator Sarah Reichelt copyright Sarah Reichelt, TrozWare, 2005home http://www.troz.net/Rev/updateInfoUrl .http://www.troz.net/Rev/plugins/RipUpdates.txtdownloadUrl 0http://www.troz.net/Rev/plugins/InspectPanel.revdescription Plugin to allow one-click access to the Inspector's different panels. This is a workaround for the problem of the Inspector not always showing the panel that it thinks it is.date 2005,9,4version 1.0 cREVLoadInfo load startupinMenu truemode Modeless cREVGeneral scriptChecksum 9!-y}3U bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 104 to 103script
on mouseUp
put the short name of the target into tPick
put "revPropertyPalette 1" into stackName
-- open Inspector palette if it isn't already open
if the openStacks contains stackName is false then
send "revBuildPropertyPalette" to stack "revTemplatePalette"
else
send revUpdateTabs to stack stackName
end if
send mouseDown to btn "Section" of stack stackName
put btn "Section" of stack stackName into tList
put lineOffset(tPick, tList) into lineNum
if lineNum > 0 then
set the menuHistory of btn "Section" of stack stackName to lineNum
else
beep
end if
end mouseUp
P--> all handlers on preOpenStack set the style of this stack to palette end preOpenStack on openStack send setTopleft to me end openStack on moveStack set the cTopLeft of this stack to the topleft of this stack save this stack end moveStack on setTopLeft put the cTopLeft of this stack into newTopLeft set the topleft of this stack to newTopLeft end setTopLeft d ( cConsLastHandlerName setTopLeftcConsLastHandlerScroll 0 cREVGeneral scriptChecksum Y ;OWp bookmarks handlerList *openStack moveStack setTopLeft makePalettetempScript prevHandler openStackscriptSelection char 80 to 79script @on openStack
send setTopleft to me
send makePalette to me in 5 milliseconds
end openStack
on moveStack
set the cTopLeft of this stack to the topleft of this stack
save this stack
end moveStack
on setTopLeft
put the cTopLeft of this stack into newTopLeft
set the topleft of this stack to newTopLeft
end setTopLeft
on makePalette
lock messages
palette this stack
show this stack
end makePalette
Basic Properties eg cConsLastHandlerName cConsLastHandlerScroll 0 Basic Properties B cREVGeneral revUniqueID 1071613581071 Contents eg cConsLastHandlerName cConsLastHandlerScroll 0 Contents C cREVGeneral revUniqueID 1071613633139 Table eg ( cConsLastHandlerName cConsLastHandlerScroll 0 Table T cREVGeneral revUniqueID 1071613633140 bookmarks handlerList tempScript prevHandler scriptSelection char 1 to 0script Icons & Border eg <