View Single Post
Hi,

I want to save a perspective with my (focused) active projects. How can I save a perspective with AppleScript? I got as far as focusing my active projects:

Code:
tell application "OmniFocus"
	set oDoc to default document
	tell default document
		set active_projects to flattened projects where its status is active
		tell front document window
			set perspective name to "Active Projects"
			set focus of front document window of oDoc to active_projects
			-- HERE--> save perspective name to "Project List"
		end tell
	end tell
end tell