Tabbed Panels/Tabs via Resource Strings
is not possible create tabbed panels , tabs using resource string?
on both cs5 , cs6 works:
var win = new window ("dialog","tab test"); win.matchtabs=win.add("tabbedpanel"); win.matchtabs.taba=win.matchtabs.add("tab",undefined,"match #1"); win.matchtabs.tabb=win.matchtabs.add("tab",undefined,"match #2"); win.show();
but this:
var res= "dialog { matchtabs: tabbedpanel { taba: tab { text: 'match #1' }, tabb: tab { text: 'match #2' } } }"; var win = new window (res,"tab test"); win.show();
fails "error 19: ... tabbedpanel not object" , again both on cs5 , cs6.
thanks insight.
you can this:
"res = mytabbedpanel: panel{type:'tabbedpanel' \ mytab: panel{type: 'tab', text: 'tab title'}, \ }";
fyi, i'm 1 more script righting angry post terrible documentation , lack of instruction when comes scripting.
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment