#!/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 "$@" AnswerDialog26Patch 2 j, Answer Dialog Patch for Rev 2.6 U Lucida Grande U Lucida Grande W Lucida Grande @U Lucida Grande U Georgia U Georgia cREVGeometryCache stackID 1016 cREVGeneral bookmarks debugObjects handlerList prevHandler tempScript script X /* Answer Dialog 2.6 Patch by Eric Chatonet sosmartsoftware.com June 2005 */ 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 the script of cd 1 of stack "Answer Dialog" = the script of btn "NewScript" answer info "This patch has been already applied." as sheet disable btn "Apply Patch" break case the script of cd 1 of stack "Answer Dialog" <> the script of btn "CurScript" answer error "This patch is for Rev 2.6 only." with "Sorry" as sheet disable btn "Apply Patch" break default enable btn "Apply Patch" end switch end openStack --------------------------------- function HomePath local tFilePath ----- put the stacks into tFilePath filter tFilePath with "*revmenubar.rev" if tFilePath = empty then answer error "Could not find the right path." with "Sorry" exit to top else set the itemDel to slash put "license.rev" into item -3 to -1 of tFilePath if there is a file tFilePath then return tFilePath answer error "Could not find License.rev stack." with "Sorry" exit to top end if end HomePath , cREVGeometryCacheIDs 1109926194716 10051109926471772 10071110548807876 10141119423709526 10161110540770416 16001119423709494 1015 cREVGeometrycache total 6order cREVGeneral scriptChecksum v&Su'u bookmarks breakPoints handlerList preOpenStack openStack HomePathscriptSelection char 1161 to 1160prevHandler openStacktempScript script ;
/*
Answer Dialog 2.6 Patch by Eric Chatonet
sosmartsoftware.com
June 2005
*/
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 the script of cd 1 of stack "Answer Dialog" = the script of btn "NewScript"
answer info "This patch has been already applied." as sheet
disable btn "Apply Patch"
break
case the script of cd 1 of stack "Answer Dialog" <> the script of btn "CurScript"
answer error "This patch is for Rev 2.6 only." with "Sorry" as sheet
disable btn "Apply Patch"
break
default
enable btn "Apply Patch"
end switch
end openStack
---------------------------------
function HomePath
local tFilePath
-----
put the stacks into tFilePath
filter tFilePath with "*revmenubar.rev"
if tFilePath = empty then
answer error "Could not find the right path." with "Sorry"
exit to top
else
set the itemDel to slash
put "license.rev" into item -3 to -1 of tFilePath
if there is a file tFilePath then return tFilePath
answer error "Could not find License.rev stack." with "Sorry"
exit to top
end if
end HomePath
@ Apply Patch Epon mouseUp local tCurPath,tSavePath,tFileType,tNewScript,tNewCardScript,tPrompt ----- set the cursor to watch ----- saving current home: put HomePath() into tCurPath -- C put tCurPath into tSavePath set the itemDel to slash put "license 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 ------ set the script of cd 1 of stack "Answer Dialog" to the script of btn "NewScript" save stack "Home" ----- cleaning up: disable the target put "Answer Dialog patch has been applied succesfully.
" & cr \ & cr & "To ensure the security, a copy of your previous Home stack has been saved as
" & tSavePath & ".
" into tPrompt replace cr with cr & "" & cr in tPrompt answer info tPrompt end mouseUp d cREVGeneral scriptChecksum e.{cez_ breakPoints handlerList mouseUpscriptSelection char 926 to 925revUniqueID 1109926194716 bookmarks tempScript prevHandler mouseUpscript `on mouseUp
local tCurPath,tSavePath,tFileType,tNewScript,tNewCardScript,tPrompt
-----
set the cursor to watch
----- saving current home:
put HomePath() into tCurPath -- C
put tCurPath into tSavePath
set the itemDel to slash
put "license 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
------
set the script of cd 1 of stack "Answer Dialog" to the script of btn "NewScript"
save stack "Home"
----- cleaning up:
disable the target
put "<p><b>Answer Dialog patch has been applied succesfully.</b></p>" & cr \
& cr & "<p><i>To ensure the security, a copy of your previous Home 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
end mouseUp
Info x on linkClicked revmail "feedback@sosmartsoftware.com",,"About Answer Dialog Patch","Thanks for giving me your feedback!" & cr & cr end linkClicked (| cREVGeneral scriptChecksum :ԝ4u10o bookmarks revUniqueID 1109926471772handlerList linkClickedscriptSelection char 80 to 79prevHandler linkClickedtempScript scripton linkClicked
revmail "feedback@sosmartsoftware.com",,"About Answer Dialog Patch","Thanks for giving me your feedback!" & cr & cr
end linkClicked
vThis patch for Revolution/DreamCard 2.6 fixes a bug in Answer dialogs which are not displayed properly in some cases. $ $ ' N ( Just click on the Apply Patch button. @ 1600 Note that the patch saves first a backup of your license.rev stack as license old.rev : so you will be able to revert to the previous state if you wish it by trashing the license.rev stack and suppressing the old suffix from the backup name. @ 1600 2 3 > H X U Enjoy! Eric Chatonet @ Flche2.png q PNG IHDR Kpl_ pHYs gAMA |Q cHRM z% u0 ` : o_F IDATxb?,Xv$ϯ.?~~e'P#@ 11 @?~23_k_?V@p /÷>|()%ţ,%-F2\@ *n wJU牓/_ o_ū(II` b`AM]Nk5 _,? d +@ 021~K?@fӬ ~W XXY};w<|||߿}Kw^W@ koǑ74;Gڷo_߿uLL7qe`&Fqϟ_sPuFFf bA8`(10r =zk~TxNP `=l|, IENDB` cREVGeneral revUniqueID 1110540770416 SSS.png Jon mouseDown revGoUrl "http://www.sosmartsoftware.com/" end mouseDown " -PNG IHDR " . pHYs .# .#x?v 9iCCPPhotoshop ICC profile xڝwTTϽwz0z.0. Qf Ml@DEHb!(`HPb0dFJ|yyǽgs{. $O./ 'z8WGб x 0Y驾A@$/7z HeOOҬT _lN:K"N3"$F/JPrb[䥟}Qd[Sl1x{#bG\NoX3I[ql2 $8xtr p/8pCfq.Knjm͠{r28?.)ɩL^6 g,qm"[Z[Z~Q7%" 3R `̊j[~ : w! $E}kyhyRm333: }=#vʉe tqX)I)B>== <8Xȉ9