画像フレームの作成

[JavaScript]

frame = myDoc.textFrames.add();
frame.contentType = ContentType.GRAPHIC_TYPE;

[VBScript]

Set app = CreateObject("InDesign.Application")
Const idGraphicType = 1735553140
Set myDoc = app.ActiveDocument
Set frame = myDoc.textFrames.add()
frame.contentType = idGraphicType

※テキストフレームを作って、それを画像フレームに変換します。


※参考
画像フレームに画像を貼り込む