macroScript <*ToolName*>
category:"<*MacroCategory*>"
buttontext:"<*ToolName*>"
tooltip:"<*ToolName*> - <*ToolDesc*>"
icon:#("<*ToolName*>",1)
(

------------------------------------------------------------------------------------------
-- Contents:
--		<*ToolName*> - Description: <*ToolDesc*>
--
-- Requires:
--		jbFunctions.ms
------------------------------------------------------------------------------------------

if (
	if (jbFunctionsCurrentVersion == undefined) then (
		local str = "This script requires jbFunctions to run properly.\n\nYou can get the latest version at http://www.johnburnett.com/.\n\nWould you like to connect there now?"
		if (QueryBox str title:"Error") then ( try (ShellLaunch "http://www.johnburnett.com/" "") catch () )
		FALSE
	) else (
		jbFunctionsVersionCheck #( #("jbFunctions",<*JBFunctionsVersion*>) )
	)
) then (

	local thisTool = BFDtool	toolName:"<*ToolName*>"		\
								author:"<*AuthorName*>"		\
								createDate:<*CreateDate*>	\
								modifyDate:<*CreateDate*>	\
								version:1					\
								defFloaterSize:[200,300]	\
								autoLoadRolloutStates:<*LoadRollStates*>	\
								autoLoadFloaterSize:<*LoadFloaterSize*>

	rollout DLGaboutRollout "About" (
		label DLGAbout01 ""
		label DLGAbout02 ""
		label DLGAbout03 ""

		on DLGaboutRollout open do (
			DLGabout01.text = thisTool.toolName
			DLGabout02.text = thisTool.author
			DLGabout03.text =	(thisTool.modifyDate.x as integer) as string + "." +
								(thisTool.modifyDate.y as integer) as string + "." +
								(thisTool.modifyDate.z as integer) as string
		)

		on DLGaboutRollout close do ( thisTool.closeTool() )
	)

	rollout DLGmainRollout "Main Rollout" (
		-- EVERYTHING GOES IN HERE ---------------------------------------
		label DLGmain "MAIN"
		-- EVERYTHING GOES IN HERE ---------------------------------------
	)

	thisTool.addRoll #(DLGaboutRollout,DLGmainRollout) rolledUp:#(true,false)

	thisTool.openTool thisTool
)
)
