Javascript 在Illustrator cs5.1的脚本菜单下放置脚本的位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27013800/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where to put the script to appear under scripts menu in Illustrator cs5.1
提问by Lukasz 'Severiaan' Grela
I have a script for Illustrator CS5.1that I would like to be part of the scripts menu. I've tried to put it under:
我有一个适用于 Illustrator CS5.1的脚本,我希望它成为脚本菜单的一部分。我试着把它放在下面:
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\myFolder
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\myFolder
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\myFolder
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\
- C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\myFolder
but all of those attempts failed, I have restarted Illustrator, what can be wrong? This is for Windows 7.
但所有这些尝试都失败了,我重新启动了 Illustrator,有什么问题?这适用于Windows 7。
回答by Lukasz 'Severiaan' Grela
I don't know why, but the solution is to NOT USE *.jsxbut *.jsas script extension. When I've changed it to jsand placed into C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\it appeared under scripts menu.
我不知道为什么,但解决方案是不使用,*.jsx而是*.js作为脚本扩展。当我将它更改为js并放入C:\Program Files\Adobe\Adobe Illustrator CS5.1\Presets\en_GB\Scripts\它时,它出现在脚本菜单下。
With 64bit CS6 Illustrator the path looks like this: C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\en_GB\Scriptsand it accepts JSXor JSextensions.
使用 64 位 CS6 Illustrator,路径如下所示:C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\en_GB\Scripts它接受JSX或JS扩展。
回答by Mentalist
And just for good measure, here's
只是为了更好的衡量,这里是
a Mac solution
Mac 解决方案
(Yes, OP asked for Windows, but many Mac users will find this page too)
(是的,OP 要求使用 Windows,但许多 Mac 用户也会找到此页面)
See the elegantly explained answer on Xinrong's blog.
Or if the link ever rots, read the summary below:
或者,如果链接失效,请阅读以下摘要:
Step 1.
第1步。
Navigate to
导航
Applications/Adobe Illustrator CC/Presets/en_GB/Scripts
应用程序/Adobe Illustrator CC/预设/en_GB/脚本
and copy the .js or .jsx files there.
并将 .js 或 .jsx 文件复制到那里。
The file path may differ depending on your version of Illustrator (could be CS6 instead of CC, for example), and also your language (could be ja_JP instead of en_GB, for example).
根据您的 Illustrator 版本(例如,可能是 CS6 而不是 CC)以及您的语言(例如,可能是 ja_JP 而不是 en_GB),文件路径可能会有所不同。
Step 2.
第2步。
Relaunch Illustrator.
重新启动 Illustrator。
The scripts will then be accessible in Illustrator's menu under File > Scripts
然后可以在 Illustrator 菜单中的File > Scripts下访问这些脚本
回答by Tyrona5aurusRex
I know this is a super old question, but since this is the first thing that comes up when I googled it...
我知道这是一个非常古老的问题,但是因为这是我在谷歌上搜索它时出现的第一件事......
The directory is still similar
目录还是一样的
C:\Program Files\Adobe\Adobe Illustrator CC 2018\Presets\en_US\Scripts
C:\Program Files\Adobe\Adobe Illustrator CC 2018\Presets\en_US\Scripts
回答by fabianmoronzirfas
In my localized version of Illustrator CC 2014 it is:
在我的 Illustrator CC 2014 本地化版本中,它是:
/Applications/Adobe Illustrator CC 2014/Presets.localized/de_DE/Skripten
/应用程序/Adobe Illustrator CC 2014/Presets.localized/de_DE/Skripten
should something similar to for you.
应该类似于你的东西。
In Illustrator CC (v17) it also is this folder.
在 Illustrator CC (v17) 中,它也是这个文件夹。
/Applications/Adobe Illustrator CC/Presets.localized/de_DE/Skripten
From the Illustrator CS5 Scripting guide link
来自 Illustrator CS5 脚本指南链接
Chapter 1 / Page 10
第 1 章 / 第 10 页
Installing scripts in the Scripts menu
To include a script in the Scripts menu (File > Scripts), save the script in the Scripts folder, located in the /Illustrator CS5/Presets folder in your Illustrator CS5 installation directory. The script's filename, minus the file extension, appears in the Scripts menu.
在脚本菜单中安装脚本
要将脚本包含在脚本菜单(文件 > 脚本)中,请将脚本保存在 Scripts 文件夹中,该文件夹位于 Illustrator CS5 安装目录中的 /Illustrator CS5/Presets 文件夹中。脚本的文件名,减去文件扩展名,出现在脚本菜单中。

