#!/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 "$@" PropPalettePatch 2 A E Properties Palette Refresh U Lucida Grande U Lucida Grande W Lucida Grande @U Lucida Grande U Georgia U Georgia U Lucida Grande W Lucida Grande cREVGeometryCache stackID 1016 cREVGeneral bookmarks debugObjects handlerList prevHandler tempScript stackfileversion 2.4script X on preOpenStack set the loc of this stack to the screenloc set the style of this stack to "modeless" end preOpenStack --------------------------------- on openStack switch case "revUpdatePalette" is in the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette" answer info "This patch has been already applied." as sheet disable btn "Apply Patch" break default enable btn "Apply Patch" end switch end openStack cREVGeometryCacheIDs 1110548807876 10141109926471772 10071109926194716 10051119423709526 10161110540770416 16001119423709494 1015 cREVGeometrycache total 6order cREVGeneral scriptChecksum =IͅQ\ bookmarks breakPoints handlerList preOpenStack openStackscriptSelection char 222 to 283prevHandler openStacktempScript script p
on preOpenStack
set the loc of this stack to the screenloc
set the style of this stack to "modeless"
end preOpenStack
---------------------------------
on openStack
switch
case "revUpdatePalette" is in the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette"
answer info "This patch has been already applied." as sheet
disable btn "Apply Patch"
break
default
enable btn "Apply Patch"
end switch
end openStack
@ Apply Patch Epon mouseUp local tCurPath,tSavePath,tFileType,tScript,tLineNo,tPrompt,tResult ----- set the cursor to watch ----- saving current RevTemplatePalette: put the filename of stack "RevTemplatePalette" into tCurPath put tCurPath into tSavePath set the itemDel to slash put "RevPalette old.rev" into item -1 of tSavePath if the platform = "MacOS" then put the fileType into tFileType set the fileType to "revoRSTK" end if put url("binfile:" & tCurPath) into url("binfile:" & tSavePath) put the result into tResult if the platform = "MacOS" then set the fileType to tFileType if tResult <> empty then answer error "An error occured when saving a backup of your current home stack." \ & cr & cr & "Process has been stopped." with "Sorry" as sheet exit mouseUp end if ------ put the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette" into tScript put lineOffset("resizeStack",tScript) into tLineNo disable the target if tLineNo <> 0 then put cr & " revUpdatePalette" after line tLineNo of tScript set the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette" to tScript save stack "RevTemplatePalette" ----- cleaning up: put "Properties palette patch has been succesfully applied.
" & cr \ & cr & "To ensure security, a copy of the standard properties palette stack has been saved as
" & tSavePath & ".
" into tPrompt replace cr with cr & "" & cr in tPrompt answer info tPrompt as sheet else put "Properties palette patch could not be applied for un unknown reason.
" into tPrompt answer info tPrompt with "Sorry" as sheet end if end mouseUp b d cREVGeneral scriptChecksum \ЌQ{[GbreakPoints handlerList mouseUpscriptSelection char 1701 to 1700revUniqueID 1109926194716 bookmarks tempScript prevHandler mouseUpscripton mouseUp
local tCurPath,tSavePath,tFileType,tScript,tLineNo,tPrompt,tResult
-----
set the cursor to watch
----- saving current RevTemplatePalette:
put the filename of stack "RevTemplatePalette" into tCurPath
put tCurPath into tSavePath
set the itemDel to slash
put "RevPalette old.rev" into item -1 of tSavePath
if the platform = "MacOS" then
put the fileType into tFileType
set the fileType to "revoRSTK"
end if
put url("binfile:" & tCurPath) into url("binfile:" & tSavePath)
put the result into tResult
if the platform = "MacOS" then set the fileType to tFileType
if tResult <> empty then
answer error "An error occured when saving a backup of your current home stack." \
& cr & cr & "Process has been stopped." with "Sorry" as sheet
exit mouseUp
end if
------
put the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette" into tScript
put lineOffset("resizeStack",tScript) into tLineNo
disable the target
if tLineNo <> 0 then
put cr & " revUpdatePalette" after line tLineNo of tScript
set the script of btn "section" of cd "RevCard" of stack "RevTemplatePalette" to tScript
save stack "RevTemplatePalette"
----- cleaning up:
put "<p><b>Properties palette patch has been succesfully applied.</b></p>" & cr \
& cr & "<p><i>To ensure security, a copy of the standard properties palette stack has been saved as</i></p><p><i>" & tSavePath & ".</i></p>" into tPrompt
replace cr with cr & "<p></p>" & cr in tPrompt
answer info tPrompt as sheet
else
put "<p><b>Properties palette patch could not be applied for un unknown reason.</b></p>" into tPrompt
answer info tPrompt with "Sorry" as sheet
end if
end mouseUp
Info x on linkClicked revmail "feedback@sosmartsoftware.com",,"About Answer Dialog Patch","Thanks for giving me your feedback!" & cr & cr end linkClicked (|&