我正在使用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)
...
包含这些方法的参考在哪里?
你寻求的答案就在这里!
https://forums.adobe.com/message/6114502#6114502
https://forums.adobe.com/message/9323811#9323811
简而言之,Adobe脚本论坛是您提供此类更具体问题的最佳参考。你可能已经从这个问题被围攻的挫折中学到了很难,但他们不知道他们做了什么;他们无法真正理解你的痛苦。虽然Adobe脚本论坛,但我只想说'我们有一些景点可以向你展示'。
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. |
---------------------------------------------------------------