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
/** | |
* sort printer preset | |
* | |
* Created by mg on 2010-09-10. | |
*/ | |
var pp = app.printerPresets; | |
var ppL = pp.length | |
var pp_count_arr = getSquence(ppL);//get array [1,2,3.....ppL] |
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
<plist version="1.0"><dict> | |
<key>content</key> | |
<string>colors.add({ | |
model:ColorModel.${1:Process/Spot/Registration/MixedInkmodel}, | |
space:ColorSpace.${2:CMYK/RGB/LAB/MixedInk}, | |
colorValue:[${3:0,0,0,0}], | |
name:"${4:}"});</string> | |
<key>name</key> | |
<string>colors.add</string> | |
<key>scope</key> |
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
#target "Illustrator" | |
var doc = app.documents[0]; | |
var topG = getTopGroup(doc.groupItems); | |
alert("top level group:"+topG.length+ "\r" + | |
"PageItems:" + doc.pageItems.length + "\r" + | |
"PathItems:" + doc.pathItems.length + "\r" + | |
"CompoundPathItems:" + doc.compoundPathItems.length + "\r" + | |
"GroupItems:" + doc.groupItems.length + "\r" + | |
"Selection:" + doc.selection.length); |
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
//inddドキュメント内の[段落スタイルなし]の段落にスタイルをあてる | |
var doc=app.documents[0]; | |
var storyObj=doc.stories; | |
for(var i=0; i < storyObj.length; i++){ | |
var paraObj=storyObj[i].paragraphs; | |
for(var ii=0; ii < paraObj.length; ii++){ | |
if(paraObj[ii].appliedParagraphStyle.name=="[段落スタイルなし]"){ | |
main(); | |
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
/** | |
飾り字形からパターンをつくる | |
"fill pattern to the frame" | |
使い方と注意: | |
テキストフレームまたはグラフィックフレームを1つ選択して実行。 | |
フレーム内を消去して飾り字形のパターンで埋め、最後にグラフィックス化します。 | |
オープンパスでもクローズドパスでも大丈夫のはず。 | |
動作確認:OS10.4.11 InDesign CS3 |
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
for(var i = 0; i < 150; i++){ | |
try{ | |
app.documents.add(false); | |
} | |
catch(e){ | |
alert("もうおなかいっぱい\n created " + app.documents.length + " docs"); | |
exit(); | |
}; | |
}; | |
f = Folder(new File("~/Desktop/test")).create(); |
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
/** | |
配置画像の情報収集 | |
"collect placed image infomation" | |
使い方: | |
Illustrator書類を開いて実行、複数ファイル可。 | |
開いている全てのIllustrator書類上の配置画像の変倍率とファイル名を別レイヤに表示、 | |
その後EPSで複製保存をして、オリジナルは保存せずに閉じます。 | |
グループ化したもの、複数画像をまとめてマスクしたものなどでは取りこぼしがあるかも | |
しれません。 | |
動作確認:OS10.4.11 Illustrator CS3 |
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
/* | |
黒以外のオーバープリント解除 | |
"turn off overprint setting for non black object " | |
使い方: | |
実行すると塗り、線ごとにダイアログを出すのでオーバープリント解除するか決める。 | |
動作確認:OS10.4.11 Illustrator CS3 | |
milligramme | |
www.milligramme.cc | |
*/ | |
var doc = documents[0]; |
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
/** | |
* InDesign Script Argument memo | |
*/ | |
app.scriptArgs.set("mori","girl"); | |
app.scriptArgs.set("hayashi","boy"); | |
alert("is valid?: " + app.scriptArgs.isValid); | |
app.scriptArgs.save(); |
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
#target "Illustrator" | |
/** | |
* compress and expand word | |
* | |
* 2010-10-26 mg | |
*/ | |
//check document. if not exitst, create it | |
if (app.documents.length === 0) { | |
var docObj = app.documents.add(); |
OlderNewer