【问题标题】:Where is the perfect reference of adobe illustrator script?adobe illustrator脚本的完美参考在哪里?
【发布时间】:2018-09-11 03:02:01
【问题描述】:
我正在使用 Javascript 开发 Illustrator 脚本(真正使用 TypeScript)。
我已经知道official Illustrator Scripting reference。
但是没有这些方法的文档。
// app is an instance of Application class
app.loadAction(f: File)
app.doScript(s: string, s: string)
app.executeMenuCommand(s: string)
...
包含这些方法的引用在哪里?
【问题讨论】:
标签:
javascript
reference
adobe-illustrator
【解决方案2】:
loadAction
将动作加载到动作调色板中。
-------------------------------------------------------------------------------------------
| Parameter | Type | Description |
|------------------+----------+-----------------------------------------------------------|
| actionFilePath | File | The path on the system of the action file to be loaded. |
-------------------------------------------------------------------------------------------
doScript
从动作面板播放动作。
------------------------------------------------------------------------------------------------
| Parameter | Type | Description |
|---------------+----------+-------------------------------------------------------------------|
| action | string | The name of the action to play* |
|---------------+----------+-------------------------------------------------------------------|
| from | string | The name of the action set containing the action being played** |
|---------------+----------+-------------------------------------------------------------------|
| dialogs | bool | Are dialog boxes associated with the action to be presented? |
------------------------------------------------------------------------------------------------
*note that the case of letters in the Action name is important and must match the case of the name in the Actions palette
**note that the case of letters in the Action Set name is important and must match the case of the name in the Actions palette
executeMenuCommand
使用菜单快捷方式字符串执行菜单命令。
---------------------------------------------------------------
| Parameter | Type | Description |
|---------------------+------------+--------------------------|
| menuCommandString | string | Menu command shortcut. |
---------------------------------------------------------------