View Single Post
I don't believe you can directly create a perspective from Applescript, except by using GUI scripting, where you essentially tell the System Events process which menu items to select, buttons to click, etc.

What are you trying to do? Not sure I understand why you would want a perspective that focuses on your active projects you could just make one that uses the sidebar filter to select only active projects and get the same effect, no? Is there something I'm missing, besides sleep? :-)