adobe illustrator脚本完美参考在哪里?

Where is the perfect reference of adobe illustrator script?

我正在 Javascript(真正在 TypeScript 中)开发 Illustrator 脚本。
我已经知道 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)
...

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

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


执行菜单命令

使用菜单快捷方式字符串执行菜单命令。

---------------------------------------------------------------
|  Parameter          |   Type     |  Description             |
|---------------------+------------+--------------------------|
|  menuCommandString  |   string   |  Menu command shortcut.  |
---------------------------------------------------------------

你要的答案都在这里!

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

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

简而言之,Adobe 脚本论坛是解决此类更具体问题的最佳参考。您可能已经从这个问题被围困的否决票中学到了艰难的方法,但是他们不知道自己在做什么;他们无法真正理解您的痛苦。不过,Adobe 脚本论坛,我只想说 'we have some sights to show you'.