2009-12-10
IllustratorでScript-透明の分割設定-
Illustrator ファイルをScript を使ってEPS形式保存する際に、「透明の分割・統合設定」を指定する方法を誰か知っていたら、教えてください。
今、Illustrator ファイルをEPS形式で保存するスクリプトを書いているのだけど、EPS保存時のオプション「透明の分割・統合設定」を設定する項目が見当たらないのです。
AppleScriptでファイルをEPS保存しようとするとこんな感じになるのだけど
tell application "Adobe Illustrator"
tell document 1
save in file Eps_save_path as eps with options {class:EPS save options, compatibility:Illustrator 12, preview:color Macintosh, embed linked files:true, include document thumbnails:true, embed all fonts:true, CMYK PostScript:false, PostScript:level 2, overprint:discard, flatten output:preserve appearance}
end tell
end tell
この中で透明の分割・統合に関連する項目はオプションのflatten outputなのだけど、この設定は、透明効果の使われたドキュメントをIllustrator8以下のバージョンに保存する際の「パスを保持」「アピアランスとオーバープリントを保持」の設定であって、透明の分割・統合に関する設定ではないのです。
マニュアルを読むと、Flattening optionsという透明の分割・統合設定オプションの項目はあるのだけど、これが使えるのはPrintやPDF saveの時のみのようで、EPS saveの時にこのオプションをいれても実行時にエラーになるのです。
入れてみたけどエラーになる。
tell document 1
save in file Eps_save_path as eps with options {class:EPS save options, compatibility:Illustrator 12, preview:color Macintosh, embed linked files:true, include document thumbnails:true, embed all fonts:true, CMYK PostScript:false, PostScript:level 2, overprint:discard, flatten output:preserve appearance, flattener preset:"高解像度"}
end tell
end tell
これはマニュアルにあった例文。プリント時に透明の分割統合設定を指定してる
tell application "Adobe Illustrator"
activate
set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360}
set printOpts to {class:print options, flattener settings:flatOpts}
if not (exists document 1) then error "There is no document available to print."
print document 1 options printOpts
end tell
まぁなんか、いまさらEPSなんて使うなよっていわれてる気がしますが。
- 48 http://www.dtp-transit.jp/adobe/illustrator/post_968.html
- 20 http://intra.prost.co.jp/cgi-bin/cbag/ag.cgi?page=MyFolderMessageView&mDBID=8&mEID=7573&mDID=3465&cp=mu&sp=&tp=
- 18 http://d.hatena.ne.jp/
- 17 http://www.google.co.jp/search?hl=ja&client=firefox-a&rls=org.mozilla:ja-JP-mac:official&hs=1jI&q=JPEGマーカー+osx&btnG=検索&lr=lang_ja&aq=f&oq=
- 13 http://dtpwiki.jp/planet/
- 13 http://twitter.com/akane_neko
- 9 http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GFRE_jaJP322JP323&q=ちくちく日記
- 7 http://www.google.co.jp/search?hl=ja&lr=lang_ja&client=firefox-a&rlz=1R1GGGL_ja___JP353&hs=iCD&ei=mTArS4fnIc6IkAW90c3tCA&sa=X&oi=spell&resnum=0&ct=result&cd=1&ved=0CAYQBSgA&q=illustrator+10+snow+leopard&spell=1
- 6 http://ime.nu/d.hatena.ne.jp/akane_neko/20091116/1258348282
- 6 http://intra.prost.co.jp/cgi-bin/cbag/ag.cgi?page=BulletinView&bid=839&gid=280&cid=0&cp=blc&postsp=&dummy=58&
