Can I write to Perspective Page Configuration via script?

Other than editing the resource file on the filesystem, is there a way to add page configuration programmatically? I have like 15 pages to add urls for and that's far too much work to do it manually... (I only slightly jest)

Related, is there any way to get a list of Views given a path? e.g.

#pseudo-code
viewPaths = system.perspective.getViewList('Site/AreaA/Folder')
print viewPaths
>>('Site/AreaA/Folder/View1', 'Site/AreaA/Folder/View2')

~~
Edit: Yes to the 2nd question, system.perspective.getProjectInfo()
Edit2: system.perspective.getProjectInfo() returns the views and also has the current page config, however it doesn't include the docks definitions!

1 Like