#!/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 "$@" |revAltuithtml3*on openStack if exists(stack "revCorral") then send "openStack" to stack "revCorral" end if end openStack on preOpenStack set the width of stack "revAltuitHTML" to 60 set the height of stack "revAltuitHTML" to 44 end preOpenStack on closeStack end closeStack on OpenCard end OpenCard Y<, revstackfalse HTML BuilderBJUms sans serifWms sans serifUSmillyUTelegraphic Light UTelegraphic Light WTelegraphic Light U Small Fonts W Small FontsU Small FontsW Small FontsUArial UArial Ums sans serif Wms sans serif Ums sans serif Wms sans serif Wms sans serifWms sans serif Wms sans serif Ums sans serifWms sans serifUms sans serifUms sans serifWms sans serif @Ums sans serif@Ums sans serif@Ums sans serifUms sans serif Ums sans serif Ums sans serif Wms sans serif UMS Sans serifUms sans serifUms sans serifU Small Fonts U Small Fonts U Small FontsU Small Fonts UVerdanaUVerdana UVerdanaUms sans serifWVerdana WVerdana WVerdana UarialWVerdanaUVerdanaUms sans serifUms sans serifWms sans serifWms sans serif UverdanaUverdanaUverdanaUArial UArialUArialUArial WArial WArial @UArialWArial @UArialUArial UArial WArial WArial @UVerdana UArialUms sans serifWms sans serifUScript UArial cREVLoadInfoloadstartup cREVGeneralscriptChecksumo}tg% bookmarks handlerList*openStack preOpenStack closeStack OpenCardscriptSelection char 98 to 97 prevHandler openStack tempScriptscripta

on openStack

if exists(stack "revCorral") then

send "openStack" to stack "revCorral"

end if

end openStack

on preOpenStack

set the width of stack "revAltuitHTML" to 60

set the height of stack "revAltuitHTML" to 44

end preOpenStack

on closeStack

end closeStack

on OpenCard

end OpenCard

tfirstCd @<, cREVGeneral bookmarks handlerListscriptSelection char 1 to 0 prevHandler tempScriptscriptu card id 1022 P on resizeStack lock screen get the rect of this card put 1 into fldLborder put -1 into fldRborder put 113 into fldTborder put -17 into fldBborder put -3 into tabLborder put 1 into tabRborder put 44 into tabTborder put 1 into tabBborder set the rect of fld "theText" to \ fldLborder,fldTborder,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of fld "html" to \ fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of fld "htmlText" to \ fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of btn "theTabs" to \ tabLborder,tabTborder,item 3 of it + tabRborder,item 4 of it + tabBborder set the rect of btn "Divider" to \ 0,110,item 3 of it,87 set the rect of graphic "blueend" to \ 204,0,the right of this card,42 set the loc of btn id 1146 to 136,item 4 of it -9 set the loc of btn "Copy to Clipboard" to item 3 of it - 55,18 set the loc of btn "tgLbl" to item 3 of it -66, item 4 of it - 9 unlock screen end resizeStack on mouseEnter if "toolbarButton" is in the customKeys of the target then set the colors of btn "border" to empty set the rect of btn "border" to the rect of the target set the textColor of the target to 51,51,255 end if end mouseEnter on mouseDown if "toolbarButton" is in the customKeys of the target then set the topColor of btn "border" to 128,128,128 set the bottomColor of btn "border" to white end if end mouseDown on mouseUp if "toolbarButton" is in the customKeys of the target then --set the defaultStack to "revMenuBar" set the colors of btn "border" to empty set the loc of btn "border" to -100,-100 --set the loc of the target to lOrigLoc set the textColor of the target to empty end if end mouseUp on mouseRelease if "toolbarButton" is in the customKeys of the target then set the loc of btn "border" to -100,-100 set the colors of btn "border" to empty -- set the loc of the target to lOrigLoc set the textColor of the target to empty end if end mouseRelease on mouseLeave if "toolbarButton" is in the customKeys of the target then set the loc of btn "border" to -100,-100 set the textColor of the target to empty end if end mouseLeave function validSelChunck theSelChunk put itemDel into oldItemDel set itemDel to " " if item 2 of theSelChunk > item 4 of theSelChunk then set itemDel to oldItemDel return false else set itemDel to oldItemDel return true end if end validSelChunck on resetBtns set the loc of btn "Bold Inverted" to -100,-100 set the loc of btn "Italic Inverted" to -100,-100 set the loc of btn "Link Inverted" to -100,-100 end resetBtns on linkClicked pLink revGoURL pLink end linkClicked B cREVGeneralscriptChecksum F. 8 *p) bookmarks handlerListeresizeStack mouseEnter mouseDown mouseUp mouseRelease mouseLeave validSelChunck resetBtns linkClicked tempScript prevHandler resizeStackscriptSelectionchar 1048 to 1047scriptE

on resizeStack

lock screen

get the rect of this card

put 1 into fldLborder

put -1 into fldRborder

put 113 into fldTborder

put -17 into fldBborder

put -3 into tabLborder

put 1 into tabRborder

put 44 into tabTborder

put 1 into tabBborder

set the rect of fld "theText" to \

fldLborder,fldTborder,item 3 of it + fldRborder,item 4 of it + fldBborder

set the rect of fld "html" to \

fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder

set the rect of fld "htmlText" to \

fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder

set the rect of btn "theTabs" to \

tabLborder,tabTborder,item 3 of it + tabRborder,item 4 of it + tabBborder

set the rect of btn "Divider" to \

0,110,item 3 of it,87

set the rect of graphic "blueend" to \

204,0,the right of this card,42

set the loc of btn id 1146 to 136,item 4 of it -9

set the loc of btn "Copy to Clipboard" to item 3 of it - 55,18

set the loc of btn "tgLbl" to item 3 of it -66, item 4 of it - 9

unlock screen

end resizeStack

on mouseEnter

if "toolbarButton" is in the customKeys of the target then

set the colors of btn "border" to empty

set the rect of btn "border" to the rect of the target

set the textColor of the target to 51,51,255

end if

end mouseEnter

on mouseDown

if "toolbarButton" is in the customKeys of the target then

set the topColor of btn "border" to 128,128,128

set the bottomColor of btn "border" to white

end if

end mouseDown

on mouseUp

if "toolbarButton" is in the customKeys of the target then

--set the defaultStack to "revMenuBar"

set the colors of btn "border" to empty

set the loc of btn "border" to -100,-100

--set the loc of the target to lOrigLoc

set the textColor of the target to empty

end if

end mouseUp

on mouseRelease

if "toolbarButton" is in the customKeys of the target then

set the loc of btn "border" to -100,-100

set the colors of btn "border" to empty

-- set the loc of the target to lOrigLoc

set the textColor of the target to empty

end if

end mouseRelease

on mouseLeave

if "toolbarButton" is in the customKeys of the target then

set the loc of btn "border" to -100,-100

set the textColor of the target to empty

end if

end mouseLeave

function validSelChunck theSelChunk

put itemDel into oldItemDel

set itemDel to " "

if item 2 of theSelChunk > item 4 of theSelChunk then

set itemDel to oldItemDel

return false

else

set itemDel to oldItemDel

return true

end if

end validSelChunck

on resetBtns

set the loc of btn "Bold Inverted" to -100,-100

set the loc of btn "Italic Inverted" to -100,-100

set the loc of btn "Link Inverted" to -100,-100

end resetBtns

on linkClicked pLink

revGoURL pLink

end linkClicked

xwv^I\_`qy{ @BMNOPQR[jrs icons groupid(3 cREVGeneral bookmarks revUniqueID 971717392786 handlerListscriptSelection prevHandler tempScriptscript SaveB Non mouseUp send "menuPick" && quote&"Save""e to btn "File" end mouseUp Nl## cTopLeft71,23cREVtoolbarButtonSave cREVGeneral handlerListmouseUp tempScriptscript  CutB Mon mouseUp send "menuPick" && quote&"Cut""e to btn "Edit" end mouseUp pl)# cTopLeft105,23cREVtoolbarButtonCut cREVGeneral handlerListmouseUp tempScriptscript  Edit ScriptB' 4on mouseUp edit script of the selobj end mouseUp Nl)# cTopLeft327,23cREVtoolbarButton Edit ScriptScript cREVGeneral bookmarks handlerListmouseUpscriptSelection char 1 to 10 prevHandlermouseUp tempScriptscript  Message Box' Zon mouseUp send "menuPick" && quote & "Message box" & quote to btn "Tools" end mouseUp l## cTopLeft450,23cREVtoolbarButton Message BoxMsg cREVGeneralscriptChecksumci4X(W&+V handlerListmouseUp tempScriptscript  Edit Group"& Pon mouseUp send "mouseDown" to group 1 of stack "revMenuBar" set the defaultStack to the topStack if word 1 of (the selObj) is "group" then if revMenuManagerGroup(the selobj) then answer error "Can't edit group that is in use by the Menu Manager. To edit this group close the Menu Manager." exit mouseUp end if start editing the selobj else if the editBg then set the editBg to false if the mode of stack "revApplicationOverview" is not 0 and "group" is in the cREVMode of stack "revApplicationOverview" then --update AO edit group toggle btns send "revUpdatePalette" to this cd of stack "revApplicationOverview" set the cREVDisabled of btn "Edit 2" of this cd of stack "revApplicationOverview" to the cREVDisabled of btn "Edit 2" of this cd of stack "revApplicationOverview" end if end mouseUp l9#cREVHilitedText0edit group - stop editing this background cTopLeft485,23 revButtonfalsecREVUnHilitedTextBedit group - edit the currently selected group (background) revbasicfalsecREVtoolbarButton Edit Group Edit Group cREVGeneralscriptChecksumWyog*j bookmarks handlerListmouseUpscriptSelectionchar 339 to 338 prevHandlermouseUp tempScriptscriptGroup Controls' ?on mouseUp send "mouseDown" to group 1 of this stack if the number of lines in (the selObj) > 1 or word 1 of (the selObj) is not "group" then send menuPick && quote & "Group selected" & quote to btn "Object" else send "menuPick" && quote & "Ungroup selected" & quote to btn "Object" end if end mouseUp #l)#cREVHilitedText:ungroup - ungroup controls in the current selection cTopLeft540,23 revButtonfalsecREVUnHilitedText6group - group controls in the current selectioncREVtoolbarButton revbasicfalse(Un)Group ControlsGroup cREVGeneralscriptChecksum@u L+Y̺# bookmarks handlerListmouseUpscriptSelectionchar 142 to 141 prevHandlermouseUp tempScriptscript Select Grouped Controlsb' on mouseUp set the selectGroupedControls to not (the selectGroupedControls) if not the selectGroupedControls then set the loc of btn "SGC Inverted" to -100,-100 else set the rect of btn "SGC Inverted" to the rect of btn "Select Grouped Controls" --if not the selectGroupedControls then set the icon of btn "select grouped controls" to 200875 --else set the icon of btn "select grouped controls" to 201230 end mouseUp Ll##cREVHilitedTextSselect grouped controls - select owner groups instead of individual controls cTopLeft581,23cREVUnHilitedTextYselect grouped controls - select individual controls instead of their owner groups cREVHelpTextSselect grouped controls - select owner groups instead of individual controlscREVtoolbarButtonSelect Grouped ControlsSGC cREVGeneralscriptChecksumPi*O bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionchar 428 to 427script Suppress Messages"& on mouseUp set the hilite of me to not the hilite of me send menuPick && quote & "Suppress Messages" & quote to btn "Development" pass mouseUp end mouseUp ol0# cTopLeft616,23cREVtoolbarButtonSuppress Messages" Messages cREVGeneralscriptChecksumӝy=xVJ0~$ bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionchar 161 to 160scriptToggle Palettes& con mouseUp send menuPick && quote & "Palettes" & quote to btn "View" pass mouseUp end mouseUp l0#cREVHilitedText+toggle palettes - show tool palettes cTopLeft705,23cREVUnHilitedText+toggle palettes - hide tool palettescREVtoolbarButtonShow/Hide Palettes Palettes cREVGeneralscriptChecksum}m{5;a bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 99 to 98scriptCopyB Aon mouseUp send "menuPick" && "Copy" to btn "Edit" end mouseUp l)# cTopLeft145,23cREVtoolbarButtonCopy cREVGeneralscriptChecksumQ3*3}#J(\, bookmarks handlerListmouseUpscriptSelection char 15 to 14 prevHandlermouseUp tempScriptscript PasteBDon mouseUp send "menuPick" && "Paste" to btn "Edit" end mouseUp l)# cTopLeft186,23cREVtoolbarButtonPaste cREVGeneralscriptChecksumw dcVL7+=3 handlerListmouseUp tempScriptscript UndoBZon mouseUp select pointer tool --send "menuPick" && "Undo" to btn "Edit" end mouseUp l)# cTopLeft226,23 revbasicfalsecREVtoolbarButtonUndo cREVGeneralscriptChecksumHon mouseUp

select pointer tool

--send "menuPick" && "Undo" to btn "Edit"

end mouseUp

help1B' 5on mouseup modeless "revDocs" end mouseup l+# cTopLeft754,23cREVtoolbarButton"Revolution Documentation ContentsDocs cREVGeneralscriptChecksum7U bookmarks handlerListmouseupscriptSelection char 35 to 34 prevHandlermouseup tempScriptscriptQ

on mouseup

modeless "revDocs"

end mouseup

Suppress Errors"' on mouseUp set the hilite of me to not the hilite of me send menuPick && quote & "Suppress Errors" & quote to btn "Development" pass mouseUp end mouseUp l)# cTopLeft664,23cREVtoolbarButtonSuppress Errors#Errors cREVGeneralscriptChecksum%J send "revBuildPropertyPalette" to stack "revPropertiesShell"

end mouseUp

prevHandlermouseUpscriptSelection char 87 to 86 ColorsB son mouseUp send "menuPick" && quote & "Colors And Patterns" & quote to btn "Object" pass mouseUp end mouseUp wl)# cTopLeft368,23cREVtoolbarButtonColor Properties cREVGeneralscriptChecksumm۩;ny7 ' revUniqueID 963110710621 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 71 to 70script Text1B' Non mouseUp send "menuPick Text" to btn "Object" pass mouseUp end mouseUp l)# cTopLeft409,23cREVtoolbarButtonText PropertiesText cREVGeneralscriptChecksum *7.o bookmarks revUniqueID 963110745807 handlerListmouseUpscriptSelection char 53 to 64 prevHandlermouseUp tempScriptYon mouseUp

send "menuPick Text" to btn "Object"

pass mouseUp

end mouseUp

script i h ) cREVGeneral revUniqueID 963112594618New Graphic 3KFl!m cREVGeneral revUniqueID 963112444904New Graphic 3KFwhitel!m cREVGeneral revUniqueID 963112444943ih ) cREVGeneral revUniqueID 963112625636 New Graphic 3KFl!m cREVGeneral revUniqueID 963112444904!New Graphic 3KFwhitel!m cREVGeneral revUniqueID 963112444943"ih ) cREVGeneral revUniqueID 963112650865#New Graphic 3KFl!m cREVGeneral revUniqueID 963112444904$New Graphic 3KFwhitel!m cREVGeneral revUniqueID 963112444943%iih ) cREVGeneral revUniqueID 963112665862&New Graphic 3KFml!nmn cREVGeneral revUniqueID 963112444904'New Graphic 3KFwhitenl!omo cREVGeneral revUniqueID 963112444943(ih ) cREVGeneral revUniqueID 963112673097)New Graphic 3KFl!m cREVGeneral revUniqueID 963112444904*New Graphic 3KFwhitel!m cREVGeneral revUniqueID 963112444943+ikh ) cREVGeneral revUniqueID 963115595759,New Graphic 3KFol!pmp cREVGeneral revUniqueID 963112444904-New Graphic 3KFwhitepl!qmq cREVGeneral revUniqueID 963112444943.OpenB Won mouseUp send "menuPick" && quote&"Open Stack...""e to btn "File" end mouseUp ,l## cTopLeft37,23cREVtoolbarButton Open Stack| cREVGeneralscriptChecksumLJh~ ,Hg bookmarks revUniqueID 971379307721 handlerListmouseUpscriptSelection char 53 to 52 prevHandlermouseUp tempScriptscript /ih++ cREVGeneral revUniqueID 1008656538568 NewB 6on mouseUp global gREVStackStatus if the icon of me is 201212 then --new stack send "menuPick" && quote & "New mainStack" & quote to btn "file" else set the defaultStack to the topStack create card put "edited" into gREVStackStatus[the short name of this stack] end if end mouseUp l## cTopLeft1,23 revButtonfalsecREVtoolbarButton revbasicfalse New Card cREVGeneralscriptChecksumjR}쪠 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 11 to 10script IBorder@'*( cREVGeneral bookmarks handlerListscriptSelection char 1 to 0 prevHandler tempScriptscript M lgTXT.gif @&GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁQ`0()3F.#3!;osĢ8 `3dҥ,|jRjƖJ:֫TZO]~EUZe{2(M`Ӗ[w/_&(È\̘@@; cREVGeneral revUniqueID 1008754666000N mdTXT.gif @(GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0eĆ 3rlY1@6Ȓ: :qό;qFYύDe: 'MU^uTLnע MhmXcUZ=*Wmܺf5 oÞLp჈; cREVGeneral revUniqueID 1008754666041O smTXT.gif @(GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0ʌ[\)"C,  @B`gA+ ygMM>TNUNݨUfݸtUfc~5;Q-ڙnjٰnݜ˷o߃; cREVGeneral revUniqueID 1008754666080P bold.gif @*GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0eÅ9@a +$2͍ 'Y1asOF:eZMTFLIz% Vө_51ZQۦ}iS*ZoknSc^vp`(ǐ!L@@; cREVGeneral revUniqueID 1008754666122Q italic.gif @n*GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0Ɔ9@aYpΘ:yFrf̄4TPIM=곤̥:Uў?bPƩo JnNjV.ݲx(߿L@@; cREVGeneral revUniqueID 1008754666162R plain.gif @N*GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0eĆ+[f MY2ƌeٳNjn$ShE5Be:4U:il vӱ[<4-F^c^Rt+ޒ~ |SÈ+V|c; cREVGeneral revUniqueID 1008757006766\Copy to ClipboardEpon mouseUp if the vis of group "htmltext" then select the text of fld "htmltext" else select the text of fld "theText" end if copy select empty end mouseUp d cREVGeneralscriptChecksum+1 üw(O bookmarks revUniqueID 1008833103958 handlerListmouseUpscriptSelection char 35 to 34 prevHandlermouseUp tempScriptscriptX

on mouseUp

if the vis of group "htmltext" then

select the text of fld "htmltext"

else

select the text of fld "theText"

end if

copy

select empty

end mouseUp

^theTABSu on mouseUp if the shiftKey is down then if the number of lines in me is 3 then delete last line of me else put "htmlText" into line 3 of me end if end if end mouseUp on menuPick newTab, oldTab lock screen hide group oldTab show group newTab switch newTab case "htmlText" convert2HTMLtext break case "Normal" convert2Normal break case "HTML" convert2HTML break end switch unlock screen end menuPick on convert2Normal set the htmlText of field "theText" to fld "htmlText" resetBtns end convert2Normal on convert2HTMLtext put the htmltext of fld "theText" into fld "htmlText" resetBtns end convert2HTMLtext --on convert2HTML -- resetBtns -- convert2HTMLtext -- put the text of fld "htmlText" into newHTM -- replace quote with "" in newHTM -- replace "" with "" in newHTM -- replace "" with "" in newHTM -- replace "" with "" in newHTM -- -- put true into BeginList -- repeat with X = 1 to the num lines in newHTM -- --if line X of newHTM contains "" then replace -- if line X of newHTM contains "

·" then -- --make List Item -- if line X+1 on newHTM contains "

·" then -- --next line is still part of list -- put false into tEndList -- else -- put true into tEndList -- end if -- if BeginList then -- --start the ul tag -- replace "

·" with "

  • " in line X of newHTM -- if tEndList then -- --close the ul tag -- replace "

    " with "
" in line X of newHTM -- put true into BeginList -- else -- replace "

" with "" in line X of newHTM -- put false into BeginList -- end if -- else -- -- already inside the UL tag -- replace "

·" with "

  • " in line X of newHTM -- if tEndList then -- replace "

    " with "
  • " in line X of newHTM -- put true into BeginList -- else -- replace "

    " with "" in line X of newHTM -- put false into BeginList -- end if -- -- end if -- -- else -- --parse as usual -- replace "

    " with "" in line X of newHTM -- replace "

    " with "
    " in line X of newHTM -- end if -- end repeat -- replace "
    " with "" in last line of newHTM -- replace return with "" in newHTM -- -- put newHTM into field "HTML" --end convert2HTML ,FNormal htmlText cREVGeneralscriptChecksum1z&KX bookmarks revUniqueID 1008835943530 handlerList0mouseUp menuPick convert2Normal convert2HTMLtextscriptSelectionchar 196 to 195 prevHandler convert2HTML tempScriptscript

    on mouseUp

    if the shiftKey is down then

    if the number of lines in me is 3 then

    delete last line of me

    else

    put "htmlText" into line 3 of me

    end if

    end if

    end mouseUp

    on menuPick newTab, oldTab

    lock screen

    hide group oldTab

    show group newTab

    switch newTab

    case "htmlText"

    convert2HTMLtext

    break

    case "Normal"

    convert2Normal

    break

    case "HTML"

    convert2HTML

    break

    end switch

    unlock screen

    end menuPick

    on convert2Normal

    set the htmlText of field "theText" to fld "htmlText"

    resetBtns

    end convert2Normal

    on convert2HTMLtext

    put the htmltext of fld "theText" into fld "htmlText"

    resetBtns

    end convert2HTMLtext

    --on convert2HTML

    -- resetBtns

    -- convert2HTMLtext

    -- put the text of fld "htmlText" into newHTM

    -- replace quote with "" in newHTM

    -- replace "<font size=15>" with "<font size=2>" in newHTM

    -- replace "<font size=18>" with "<font size=3>" in newHTM

    -- replace "<font size=10>" with "<font size=0>" in newHTM

    --

    -- put true into BeginList

    -- repeat with X = 1 to the num lines in newHTM

    -- --if line X of newHTM contains "<font size=14>" then replace

    -- if line X of newHTM contains "<p>&#9;&middot;" then

    -- --make List Item

    -- if line X+1 on newHTM contains "<p>&#9;&middot;" then

    -- --next line is still part of list

    -- put false into tEndList

    -- else

    -- put true into tEndList

    -- end if

    -- if BeginList then

    -- --start the ul tag

    -- replace "<p>&#9;&middot;" with "<ul><li>" in line X of newHTM

    -- if tEndList then

    -- --close the ul tag

    -- replace "</p>" with "</li></ul>" in line X of newHTM

    -- put true into BeginList

    -- else

    -- replace "</p>" with "</li>" in line X of newHTM

    -- put false into BeginList

    -- end if

    -- else

    -- -- already inside the UL tag

    -- replace "<p>&#9;&middot;" with "<li>" in line X of newHTM

    -- if tEndList then

    -- replace "</p>" with "</li></ul>" in line X of newHTM

    -- put true into BeginList

    -- else

    -- replace "</p>" with "</li>" in line X of newHTM

    -- put false into BeginList

    -- end if

    --

    -- end if

    --

    -- else

    -- --parse as usual

    -- replace "<p>" with "" in line X of newHTM

    -- replace "</p>" with "</br>" in line X of newHTM

    -- end if

    -- end repeat

    -- replace "</br>" with "" in last line of newHTM

    -- replace return with "" in newHTM

    --

    -- put newHTM into field "HTML"

    --end convert2HTML

    _NormaliL cREVGeneral revUniqueID 1008836744857 bookmarks handlerList tempScript prevHandlerscriptSelection char 1 to 0scriptgBold Inverted@'0white*( cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 963360387374 handlerListscriptSelection char 1 to 0 prevHandlermouseUp tempScriptscript hItalic Inverted@'0white*( cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 963360387374 handlerListscriptSelection char 1 to 0 prevHandlermouseUp tempScriptscript lLink Inverted@'0white*( cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 963360387374 handlerListscriptSelection char 1 to 0 prevHandlermouseUp tempScriptscript CDividerAgnB DItalic ( on mouseUp if validSelChunck(the selectedChunk) then if the loc of btn "Italic Inverted" is the loc of me then put "plain" into tStyle set the loc of btn "Italic Inverted" to -100,-100 else put "italic" into tStyle set the loc of btn "Italic Inverted" to the loc of me end if if the textStyle of the selectedChunk contains "bold" then set the textStyle of the selectedChunk to tStyle & ",bold" else set the textStyle of the selectedChunk to tStyle end if end if end mouseUp F*(toolbarButtonQ cREVGeneralscriptChecksum>mcpމ revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandler mouseEnterscriptSelectionchar 372 to 371script

    on mouseUp

    if validSelChunck(the selectedChunk) then

    if the loc of btn "Italic Inverted" is the loc of me then

    put "plain" into tStyle

    set the loc of btn "Italic Inverted" to -100,-100

    else

    put "italic" into tStyle

    set the loc of btn "Italic Inverted" to the loc of me

    end if

    if the textStyle of the selectedChunk contains "bold" then

    set the textStyle of the selectedChunk to tStyle & ",bold"

    else

    set the textStyle of the selectedChunk to tStyle

    end if

    end if

    end mouseUp

    EBold ( on mouseUp if validSelChunck(the selectedChunk) then if the loc of btn "Bold Inverted" is the loc of me then put "plain" into tStyle set the loc of btn "Bold Inverted" to -100,-100 else put "bold" into tStyle set the loc of btn "Bold Inverted" to the loc of me end if if the textStyle of the selectedChunk contains "italic" then set the textStyle of the selectedChunk to tStyle & ",italic" else set the textStyle of the selectedChunk to tStyle end if end if end mouseUp F*(toolbarButtonP cREVGeneralscriptChecksumg KQ  revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 18 to 31script

    on mouseUp

    if validSelChunck(the selectedChunk) then

    if the loc of btn "Bold Inverted" is the loc of me then

    put "plain" into tStyle

    set the loc of btn "Bold Inverted" to -100,-100

    else

    put "bold" into tStyle

    set the loc of btn "Bold Inverted" to the loc of me

    end if

    if the textStyle of the selectedChunk contains "italic" then

    set the textStyle of the selectedChunk to tStyle & ",italic"

    else

    set the textStyle of the selectedChunk to tStyle

    end if

    end if

    end mouseUp

    KtheText)pon selectionChanged repeat with x =1 to the number of lines in fld "theText" if line x of fld "theText" contains tab and "" is not in line x of fld "theText" then replace tab with "" in line x of fld "theText" if line x of fld "theText" contains "" and tab is not in line x of fld "theText" then replace "" with "" in line x of fld "theText" end repeat checkSelection end selectionChanged on checkSelection if validSelChunck(the selectedChunk) then if the textstyle of the selectedChunk contains "bold" then set the rect of btn "Bold Inverted" to the rect of btn "Bold" else set the loc of btn "Bold Inverted" to -100,-100 end if if the textstyle of the selectedChunk contains "italic" then set the rect of btn "Italic Inverted" to the rect of btn "Italic" else set the loc of btn "Italic Inverted" to -100,-100 end if if the textstyle of the selectedChunk contains "link" then set the rect of btn "Link Inverted" to the rect of btn "Link" else set the loc of btn "Link Inverted" to -100,-100 end if else set the loc of btn "Bold Inverted" to -100,-100 set the loc of btn "Italic Inverted" to -100,-100 set the loc of btn "Link Inverted" to -100,-100 end if end checkSelection q@K cREVGeneralscriptChecksumt<r$Ě bookmarks revUniqueID 1008663558642 handlerListselectionChanged checkSelectionscriptSelectionchar 378 to 377 prevHandlerselectionChanged tempScriptscript 

    on selectionChanged

    repeat with x =1 to the number of lines in fld "theText"

    if line x of fld "theText" contains tab and "·" is not in line x of fld "theText" then replace tab with "" in line x of fld "theText"

    if line x of fld "theText" contains "·" and tab is not in line x of fld "theText" then replace "·" with "" in line x of fld "theText"

    end repeat

    checkSelection

    end selectionChanged

    on checkSelection

    if validSelChunck(the selectedChunk) then

    if the textstyle of the selectedChunk contains "bold" then

    set the rect of btn "Bold Inverted" to the rect of btn "Bold"

    else

    set the loc of btn "Bold Inverted" to -100,-100

    end if

    if the textstyle of the selectedChunk contains "italic" then

    set the rect of btn "Italic Inverted" to the rect of btn "Italic"

    else

    set the loc of btn "Italic Inverted" to -100,-100

    end if

    if the textstyle of the selectedChunk contains "link" then

    set the rect of btn "Link Inverted" to the rect of btn "Link"

    else

    set the loc of btn "Link Inverted" to -100,-100

    end if

    else

    set the loc of btn "Bold Inverted" to -100,-100

    set the loc of btn "Italic Inverted" to -100,-100

    set the loc of btn "Link Inverted" to -100,-100

    end if

    end checkSelection

     L`@0rISPlain ( on mouseUp if validSelChunck(the selectedChunk) is false then if fld "theText" is empty then set the textStyle of fld "theText" to empty set the textSize of fld "theText" to empty end if else put the selectedChunk into tSelectChunk put value (tSelectChunk) into tString --GO AHEAD AND SET STYLE PROPERTIES BEFORE DELETING set the textSize of the selectedChunk to empty set the textStyle of the selectedChunk to empty set the linkText of the selectedChunk to empty --GET THE START POSITION set itemDel to " " put item 2 of the selectedChunk - 1 into tStartChar --GET RID OF THE LIST FORMAT replace tab with "" in tString replace "" with "" in tString --DELETE THE OLD SELECTED TEXT select tSelectChunk delete --INSERT THE NEW put tString after char tStartChar of fld "theText" put tStartChar + 1 into x put tStartChar + the length of tString into y select char x to y of fld "theText" set the textSize of the selectedChunk to empty set the textStyle of the selectedChunk to empty set the linkText of the selectedChunk to empty resetBtns end if end mouseUp F*(toolbarButtonR cREVGeneralscriptChecksumt%7M?<3Uj* revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionchar 1163 to 1162script

    on mouseUp

    if validSelChunck(the selectedChunk) is false then

    if fld "theText" is empty then

    set the textStyle of fld "theText" to empty

    set the textSize of fld "theText" to empty

    end if

    else

    put the selectedChunk into tSelectChunk

    put value (tSelectChunk) into tString

    --GO AHEAD AND SET STYLE PROPERTIES BEFORE DELETING

    set the textSize of the selectedChunk to empty

    set the textStyle of the selectedChunk to empty

    set the linkText of the selectedChunk to empty

    --GET THE START POSITION

    set itemDel to " "

    put item 2 of the selectedChunk - 1 into tStartChar

    --GET RID OF THE LIST FORMAT

    replace tab with "" in tString

    replace "·" with "" in tString

    --DELETE THE OLD SELECTED TEXT

    select tSelectChunk

    delete

    --INSERT THE NEW

    put tString after char tStartChar of fld "theText"

    put tStartChar + 1 into x

    put tStartChar + the length of tString into y

    select char x to y of fld "theText"

    set the textSize of the selectedChunk to empty

    set the textStyle of the selectedChunk to empty

    set the linkText of the selectedChunk to empty

    resetBtns

    end if

    end mouseUp

    ZLink ( ton mouseUp if validSelChunck(the selectedChunk) is false then answer warning "Please, First select some text for the link" exit mouseUp else put the selectedChunk into tSelectChunk -- if the loc of btn "Link Inverted" is the loc of me then -- set the textStyle of tSelectChunk to empty -- set the linkText of tSelectChunk to empty -- set the loc of btn "Link Inverted" to -100,-100 -- exit mouseUp -- end if if the textStyle of tSelectChunk contains "link" then put the linkText of tSelectChunk into tLink end if put "Please enter the URL you wish to link to" & return & "ex. http://www.ibm.com/test.htm" & return & "Use the Plain button to remove link." into themsg if tLink is not empty then ask themsg with tLink else ask themsg with "http://" end if if it is not empty then -- set the textStyle of tSelectChunk to empty -- set the linkText of tSelectChunk to empty -- else set the textStyle of tSelectChunk to "link" set the linkText of tSelectChunk to it end if end if end mouseUp F*(toolbarButton[ cREVGeneralscriptChecksum*@{}>'(9 revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionchar 1014 to 1013script .

    on mouseUp

    if validSelChunck(the selectedChunk) is false then

    answer warning "Please, First select some text for the link"

    exit mouseUp

    else

    put the selectedChunk into tSelectChunk

    -- if the loc of btn "Link Inverted" is the loc of me then

    -- set the textStyle of tSelectChunk to empty

    -- set the linkText of tSelectChunk to empty

    -- set the loc of btn "Link Inverted" to -100,-100

    -- exit mouseUp

    -- end if

    if the textStyle of tSelectChunk contains "link" then

    put the linkText of tSelectChunk into tLink

    end if

    put "Please enter the URL you wish to link to" & return & "ex. http://www.ibm.com/test.htm" & return & "Use the Plain button to remove link." into themsg

    if tLink is not empty then

    ask themsg with tLink

    else

    ask themsg with "http://"

    end if

    if it is not empty then

    -- set the textStyle of tSelectChunk to empty

    -- set the linkText of tSelectChunk to empty

    -- else

    set the textStyle of tSelectChunk to "link"

    set the linkText of tSelectChunk to it

    end if

    end if

    end mouseUp

    FLarge ( |on mouseUp if validSelChunck(the selectedChunk) then set the textSize of the selectedChunk to 18 end if end mouseUp F*(toolbarButtonM cREVGeneralscriptChecksum0Dʤ4M@2+$ revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandler mouseEnterscriptSelection char 12 to 55script

    on mouseUp

    if validSelChunck(the selectedChunk) then

    set the textSize of the selectedChunk to 18

    end if

    end mouseUp

    GMedium ( ~on mouseUp if validSelChunck(the selectedChunk) then set the textSize of the selectedChunk to 15 end if end mouseUp +F*(toolbarButtonN cREVGeneralscriptChecksumHB revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandler mouseEnterscriptSelectionchar 104 to 103script

    on mouseUp

    if validSelChunck(the selectedChunk) then

    set the textSize of the selectedChunk to 15

    end if

    end mouseUp

    HSmall ( ~on mouseUp if validSelChunck(the selectedChunk) then set the textSize of the selectedChunk to 10 end if end mouseUp UF*(toolbarButtonO cREVGeneralscriptChecksumYΉţVF revUniqueID 1008640598870 bookmarks handlerListmouseUp tempScript prevHandler mouseEnterscriptSelectionchar 104 to 103script0

    on mouseUp

    if validSelChunck(the selectedChunk) then

    set the textSize of the selectedChunk to 10

    end if

    end mouseUp

    z%Lock Field (for testing Linked Text)`E( on mouseUp if the hilited of me is false then set the locktext of field "theText" to false else set the locktext of field "theText" to true end if end mouseUp   cREVGeneralscriptChecksumQJ>-y}G revUniqueID 1009575646273 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 11 to 10script

    on mouseUp

    if the hilited of me is false then

    set the locktext of field "theText" to false

    else

    set the locktext of field "theText" to true

    end if

    end mouseUp

    ` htmlTexta=H cREVGeneral revUniqueID 1008836836589 U htmlText)`A@{ cREVGeneral revUniqueID 1008640919786  

    V`@0Byj list.gif @>(GIF89a!, HA*\0A"JHaA3J E 9vDR#ÁK 0BYp0@Ä9Xs@@)(:g5)fJIڼ)O|51DP.()Σ^ּ4YZfZ6.ںc_2 La+&; cREVGeneral revUniqueID 1008840387173qHTMLa=H cREVGeneral revUniqueID 1008846031370 ehtml)`A@{ cREVGeneral revUniqueID 1008640919786 bookmarks handlerList tempScript prevHandlerscriptSelection char 1 to 0script  f`@0Byr html.png @2b<,PNG  IHDR<,HLgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb|?c1`d.? ."("~ X޾|ÿ2܊pF*8a7ɮE83ۭE$7:ZA$`ecc  h` &*3 v0!t*$ @?_3003spss01ab`?Y 4йc_@ \m3XY2L䧋cw^xOa~A?3LL?0,cݟP~ N5X.vXXCo>aef` ^FF ?~fa>"j(@ mϿ@62"AO'Cq/?$ˠS0 \,8OGBR[l߹젰Z jbL?__'z*}̐ 2h(C 4 P?贿}3GiÁ|,1c:نX ]_FOU8H!"2 78X L!U@@C\r~?B??r ِŚY""(_8ف ge QV`J^kcI8r68USN!eE[b7}Q@_8 "蟼} JdO`1AKA!00F= 3#% L@_dy_Js<_f(M+.`ߙ! Pea!(-w#a'R3 ~I4l{:=}/טβniV' !u }׀o;LueK&OJ9<*D233a Mq}qѷB%3/A l~gn|/,o|af_ˏW[R?o)66V ^~6`~hCl@hf0K`d*rБ+/}@럔DY9q<{ς<"l$&b4@(fgcp+,_}&Us\AU ]x[ߟEx_}x-pB"vs?oޔڛ}PfbbabJ @ 8FpÍO3yj+pn^~fd~6Ȧ  r1Ɣ@K9@d]u? X`@, 9]2Ҟ,fW~?|M?>`bdD[as( U>Ȋ+J{Ą oh{;=y_?f|``gE RN>Na6.~lo2}`ٙ~{`{0@1D8c~)ng/~"wnvv`Pll<f4`:VGo7`]_  @8P˙ӳI@$+?~ی\L">34Q~ lPUcd7# ;#(MSOL1ce.'S_;3ӿ39@ @`e2?;d<gcL089X;Z ɏ S @@KL^0Ycrd7'Az_L @~ U&f? X899wPw4JQ  1 Xm\`?^FR4@ a2Q^j&x|`4-=, zU>An+=_JeuFgd\=ȿ{@,ܼ\?}`Uf NߠF$#5f?ï f70AXf6`k X . o× W{xX w7Kp9Lh5K-NL W($IENDB` cREVGeneral revUniqueID 1009571918222s html_dn.png @b<,PNG  IHDR<,HLgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb|?c1`d.? ."("~ X޾|ÿ2܊pF*8a7ɮE83ۭE$7:ZA$`ecc  h` &*3 v0!t*$ @_ T&?L @ebbOpJ)@ \" R719dhi%a:PyFG[xءf2O70ohn[q/0?xmYI 4÷37w?xXA60 h2URsk=PϿGJR4qq {|)  )FPDj @Lǟ_ܬ[{Ix4?ШwgG3'6H bL@2g {~b" #|LL VY`VONKm_pcLHBv P ?~MG/ r(C &Z <`Zr%?@ tz,?+(\rF߿l,oho,0`bB Zxl L <?*ĂT_~/a j2#(J9 b,ןl,HO^rhiD8`w ax\d~ $nmfBqI+I G;4r([ Uԩ]pSArDEvEwĂhjL\z23S<0A?4YX y@/Kx[?D'н$D,L9ـG_f jbr!\-,@x(`iiu%Ke iyD1*o PH) CA~i u2Ay;F䠤 EH|yXV8VBw4¢ aVio>}?sf/ _~x{!Pʭ%3a`cac5a552`PZDL`ϟO^2n| '_SzF`y" ַKgʭh 7_~\S0 03|Kiif/~1{_`eeggdfWkt*;d\+|Oͻ66Yp`%럿~(Kq 0K qGX͏_ *`*K6yU|? |+tK_} */b'E1f~6n篿=xSEZ v4@;؋p ++0xAEY54 ]x[Xx}}᝶P/< nL` DzShmAYYO?8ٙv4@a)#٘%3fl-GqnFNߙ^agJl:P i]h1%,PR YU~#+ #3.SzcKob~Q(@?ןtA|'d&':,GYq [CNT؃;4@1i|H ᝞<3x?MP2x)͗ABbw7s)NG"N+N?f?3? |Y;7;;??WvZ@)Ks2q2H@4 ( ib@]0VY?<:(P_'ܚKKECo3rq0r< HD0~*2b?MIHrP&+KB@`:2s,0AQ1` 1l A_R_~@Tꆔ0 ?;@=Wva-9/_? ИxP/x8`rJ[ 0hJK~- *$ f/L~Ȉ÷! 0`P~pVΠFf֟@+FP  a?|)k+P__?99xA%Y8*h6eBȜ T03s# 4V '&R  P0鎙nN?>𙟋X7.?|l,L 2]j hY_`o<\ڀM`X i`\c n^>qF)4,cNP8lX`5 q& 7@ځ={l$7#":2jH~c pAHV XՉj)TIENDB` cREVGeneral revUniqueID 1009571924549u New Button*CPon mouseUp if the altKey is down then if the style of this stack is palette then set the style of this stack to topLevel else set the style of this stack to palette end if exit mouseUp end if lock screen go next set the rect of this stack to the topLeft of this stack, the left of this stack + 322, the top of this stack + 205 unlock screen end mouseUp @<,sr cREVGeneralscriptChecksumU=I0eNg@D tN bookmarks revUniqueID 1009572038197 handlerListmouseUpscriptSelectionchar 223 to 222 prevHandlermouseUp tempScriptscript

    on mouseUp

    if the altKey is down then

    if the style of this stack is palette then

    set the style of this stack to topLevel

    else

    set the style of this stack to palette

    end if

    exit mouseUp

    end if

    lock screen

    go next

    set the rect of this stack to the topLeft of this stack, the left of this stack + 322, the top of this stack + 205

    unlock screen

    end mouseUp

    v New Button*CPon mouseUp lock screen set the loc of btn "Win Style Stack Resizer" to 315,199 set the textsize of fld "theText" to empty put "" into fld "theText" set the textStyle of fld "theText" to empty set the textFont of fld "theText" to empty go first set the rect of this stack to the topLeft of this stack, the left of this stack + 60, the top of this stack + 44 unlock screen end mouseUp @<, revScriptfalsesr cREVGeneralscriptChecksumK\8&*^i bookmarks revUniqueID 1009572038197 handlerListmouseUpscriptSelectionchar 402 to 401 prevHandlermouseUp tempScriptscript

    on mouseUp

    lock screen

    set the loc of btn "Win Style Stack Resizer" to 315,199

    set the textsize of fld "theText" to empty

    put "" into fld "theText"

    set the textStyle of fld "theText" to empty

    set the textFont of fld "theText" to empty

    go first

    set the rect of this stack to the topLeft of this stack, the left of this stack + 60, the top of this stack + 44

    unlock screen

    end mouseUp

    w New Field 1X 7on linkClicked pLink revGoURL pLink end linkClicked aaFFuu<* cREVGeneralscriptChecksum%3zlo%4 revUniqueID 1008746424778 bookmarks handlerList linkClicked tempScript prevHandler linkClickedscriptSelection char 21 to 20scriptJ

    on linkClicked pLink

    revGoURL pLink

    end linkClicked

     AHTMLbuilder allows you create/edit text and htmlText. V1.2 (@xblueendK`FFuuv* cREVGeneral revUniqueID 1009572913637yWin Style Stack Resizer"BPlocal lMoving, lDistance on mouseDown put true into lMoving put the right of this stack - item 1 of the screenMouseloc,the bottom of this stack - item 2 of the screenMouseLoc into lDistance end mouseDown on mouseUp put false into lMoving unlock cursor end mouseUp on mouseRelease put false into lMoving unlock Cursor end mouseRelease on mouseMove if lMoving then put item 1 to 2 of the rect of this stack,item 1 of the screenMouseloc+item 1 of lDistance,item 2 of the screenMouseloc+item 2 of lDistance into tRect if item 3 of tRect < (the minWidth of this stack+the left of this stack) then put (the minWidth of this stack+the left of this stack) into item 3 of tRect if item 4 of tRect < (the minHeight of this stack+the top of this stack) then put (the minHeight of this stack+the top of this stack) into item 4 of tRect if item 3 of tRect > (the maxWidth of this stack+the left of this stack) then put (the maxWidth of this stack+the left of this stack) into item 3 of tRect if item 4 of tRect > (the maxHeight of this stack+the top of this stack) then put (the maxHeight of this stack+the top of this stack) into item 4 of tRect lock screen set the rect of this stack to tRect set the bottomRight of me to the width of this stack, the height of this stack unlock screen end if end mouseMove on mouseEnter if the platform is not "MacOS" then lock cursor set cursor to the cWinCursor of me end if end mouseEnter on mouseLeave put false into lMoving unlock cursor end mouseLeave 5  cWinCursor200308p cREVGeneral revUniqueID 1009573865166 bookmarks handlerList>mouseDown mouseUp mouseRelease mouseMove mouseEnter mouseLeave tempScript prevHandler mouseDownscriptSelectionchar 1061 to 1060script {tgLblex on mouseUp put the selectedObject into PropObj if PropObj contains "field" then toggleProperties PropObj choose browse tool exit mouseUp end if if the selectedField is not empty then put the long name of the selectedField into PropObj put PropObj if PropObj contains "field" then if PropObj contains "theText" then exit mouseUp toggleProperties PropObj choose browse tool end if end if end mouseUp on toggleProperties PropObj if the lockText of PropObj then set the traversalOn of PropObj to true set the lockText of PropObj to false set the autoHilite of PropObj to true else set the traversalOn of PropObj to false set the lockText of PropObj to true end if end toggleProperties @X Sets Label Field to Edit modeToggle Label Text cREVGeneralscriptChecksum7쌿Y=B,m revUniqueID 1017296406438 bookmarks handlerListmouseUp toggleProperties tempScript prevHandlermouseUpscriptSelectionchar 366 to 365script

    on mouseUp

    put the selectedObject into PropObj

    if PropObj contains "field" then

    toggleProperties PropObj

    choose browse tool

    exit mouseUp

    end if

    if the selectedField is not empty then

    put the long name of the selectedField into PropObj

    put PropObj

    if PropObj contains "field" then

    if PropObj contains "theText" then exit mouseUp

    toggleProperties PropObj

    choose browse tool

    end if

    end if

    end mouseUp

    on toggleProperties PropObj

    if the lockText of PropObj then

    set the traversalOn of PropObj to true

    set the lockText of PropObj to false

    set the autoHilite of PropObj to true

    else

    set the traversalOn of PropObj to false

    set the lockText of PropObj to true

    end if

    end toggleProperties