InDesign を終了し、InDesign スクリプトを使用して Illustrator を開くにはどうすればよいですか? これは私のコードです:
// closing the InDesign document here
myDocument.close(SaveOptions.NO);
// change the script's target to Illustrator
#target illustrator
app.documents.add(DocumentColorSpace.CMYK, width = 1024, height = 768);
しかし、ここではスクリプトは InDesign を終了せず、Illustrator を開くだけです。どうすればこれを解決できますか?