This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var doc = app.activeDocument, | |
lays = doc.layers, | |
WORK_LAY = lays.add(), | |
NUM_LAY = lays.add(), | |
i = lays.length - 1, | |
lay; | |
// main working loop | |
for (; i > 1; i--) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
抽出WORD中繁简转换的DLL,直接调用. | |
需要的文件: MSTR2TSC.DLL MSTR2TSC.LEX MSO.DLL | |
原文见:http://hyry.dip.jp:8000/code.py?id=105 | |
''' | |
import ctypes | |
import win32com.client | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************** | |
* 作为bridge启动脚本使用 | |
* 每15分钟弹出图片提示保存文件 | |
* 点击图片使弹窗关闭 | |
* 测试环境: AI CS5 Win7 | |
* ImageURL: http://cdn1.iconfinder.com/data/icons/pry_hardware/512/Time_Machine.png | |
***************************/ | |
#target bridge | |
var time = 15; //时间设定,分钟 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a Scriptographer script | |
document.getItems({ | |
type: Path, | |
hidden: false | |
}).each(function (path){ | |
var curves = path.curves, i = curves.length - 1, curve, curvePre; | |
for (; i > 0; i--){ | |
curve = curves[i]; | |
curvePre = curve.previous; | |
curve.isLinear() && curvePre.isLinear() && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
注:此脚本为 python3 版 | |
''' | |
import re | |
def selectFile(): | |
'''利用win32ui选择文件对话框 | |
如果未安装此模块则弹窗输入路径''' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menuCommandString,UI MenuString zh_CN | |
------------------------------------- | |
new,新建 | |
newFromTemplate,从模板新建 | |
open,打开 | |
saveacopy,存储副本 | |
Adobe AI Save For Web,存储为 Web 所用格式(W) | |
Adobe AI Save Selected Slices,存储选中的切片 | |
revert,恢复 | |
AI Place,置入(L) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Origin discussion: http://forums.adobe.com/message/4613051 | |
#target "estoolkit" | |
rasterizeFolder(); | |
/********************************************************************************************/ | |
function rasterizeFolder() { | |
//Get the source and destination folders. | |
//If either window is cancelled, end the script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GBKDecode(str) { | |
var f = File('gbk.txt'), gbk; | |
f.encoding = 'BINARY'; | |
f.open('w'), f.write(str), f.close(); | |
f.encoding = 'GBK'; | |
f.open('r'); | |
gbk = f.read(); | |
f.close(), f.remove(); | |
return gbk | |
} |
NewerOlder