View Single Post
PS, as properties in .scpt files conserve their state between runs, you can, of course, get a toggle script by flipping the value of the flag at the end of the run:

Code:
property pblnHide : false

on run
	tell application id "OFOC" to activate
	
	-- Click hide or show menus, as indicated by by the pblnHide flag
	tell application id "sevs"
		if pblnHide then
			set mnuHideToolBar to my GetMenuItem("OFOC", {"View", "Hide Toolbar"})
			if mnuHideToolBar is not missing value then click mnuHideToolBar
			
			set mnuHideViewBar to my GetMenuItem("OFOC", {"View", "Hide View Bar"})
			if mnuHideViewBar is not missing value then click mnuHideViewBar
		else
			set mnuShowToolBar to my GetMenuItem("OFOC", {"View", "Show Toolbar"})
			if mnuShowToolBar is not missing value then click mnuShowToolBar
			
			set mnuShowViewBar to my GetMenuItem("OFOC", {"View", "Show View Bar"})
			if mnuShowViewBar is not missing value then click mnuShowViewBar
		end if
	end tell
	
	-- TOGGLE for next run
	set pblnHide to not pblnHide
end run
(Assumes the GetMenuItem() function in the previous post)