View Single Post
We intend to add more AppleScript support for perspectives, but it was a lower priority than synchronization so we decided it should wait.

I thought you could set a perspective on a window by setting its "perspective name" attribute, but that doesn't seem to be working for me. What does work is to open a perspective file directly:

Code:
tell application "OmniFocus" to tell default document
	open "Disk:Users:kc:Library:Application Support:OmniFocus:Perspectives:Due.ofocus-perspective"
end tell
(Sorry about the slashes in my previous example: those work for me on Leopard, but that must be a new Leopard AppleScript feature.)

Hope this helps!