Adobe Illustrator脚本的完美参考在哪里?

时间:2018-09-06 12:22:34

标签: javascript reference adobe-illustrator

我正在用Javascript开发Types脚本(在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)
...

包含这些方法的参考在哪里?

2 个答案:

答案 0 :(得分:1)

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.  |
---------------------------------------------------------------

答案 1 :(得分:1)

您正在寻找的答案就在这里!

https://forums.adobe.com/message/6114502#6114502

https://forums.adobe.com/message/9323811#9323811

简而言之,对于此类更具体的问题,Adobe脚本论坛是您的最佳参考。您可能已经从困扰这个问题的不赞成票中学到了很难的方法,但是他们不知道他们做什么。他们根本无法真正理解您的痛苦。.但是,在Adobe脚本论坛上,我只想说“我们有一些展示对象”。