【问题标题】: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


【解决方案1】:

你要找的答案都在这里!

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

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

简而言之,Adobe 脚本论坛是您解决此类更具体问题的最佳参考。您可能已经从这个问题被围困的反对票中学到了艰难的方法,但他们不知道自己在做什么;他们无法真正理解你的痛苦。虽然在 Adob​​e 脚本论坛上,我只想说“我们有一些景点要向你展示”。

【讨论】:

  • 还有这个 github.com/ten-A/AiMenuObject - 它包含一个 executeMenuCommand 字符串列表并将它们包装在一个更好的对象语法中
【解决方案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.  |
---------------------------------------------------------------

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-10
    相关资源
    最近更新 更多