View Single Post
Originally Posted by whpalmer4 View Post
The included Applescript will close all but the front window and apply the desired perspective to the front window. You can use it with the application running or not, as the application will be launched if it isn't running.

property DefaultPerspective : "All"

tell application "OmniFocus"
	set mainWindow to front window
	set frontID to id of mainWindow
	set background to (every window whose id is not frontID)
	repeat with thisWindow in background
		close thisWindow
	end repeat
	set perspective name of mainWindow to DefaultPerspective
end tell
sorry for dumb question, but I couldn;t find a way to run the script, please advise