为标准InDesign面板的脚本提供了哪些方法和属性供使用?

问题描述 投票:0回答:1

例如,我可以引用“脚本”面板;但是,尽管其构造函数的名称为'Panel',但似乎没有showhide方法,例如通过脚本创建的面板或window属性等。]]

var scriptsPanel = app.panels.item('$ID/Scripts')    
scriptsPanel.window // → “Object does not support the property or method 'window'”
scriptsPanel.show(); // → “scriptsPanel.show is not a function”

尽管它确实具有一些脚本创建的面板的属性:

scriptsPanel.visible // → true or false

什么是标准面板的方法和属性

,它们在哪里记录?

例如,我可以引用“脚本”面板;但是,尽管其构造函数的名称为“ Panel”,但似乎没有显示和隐藏方法,例如通过...

adobe-indesign extendscript
1个回答
1
投票

在某些地方记录了DOM对象,Adobe的官方方法是使用ExtendScript工具包浏览对象及其方法和属性(在ExtendScript工具包中,转到“帮助”>“对象模型查看器”。

© www.soinside.com 2019 - 2024. All rights reserved.