IMGレイヤーが存在するか調べ、なければ作成します。
tell application "Adobe InDesign CS2_J" tell active document if not (exists (layers whose name is "IMG")) then --同じ名前のレイヤーがあればエラーになるのでまず調べる make layer with properties {name:"IMG"} --なければレイヤーをつくる end if end tell end tell
コメントする