[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(DTPtechNote:491) InDesignでのExcelファイルを取り込むサンプル



tell application "Finder"
	set my_file to choose file "エクセルファイルを選んでください" of type {"XLS8"}
end tell

tell application "InDesign 2.0.2J"
	tell excel import preference 1
		set sheet name to "test"
		set range name to "A1:B4"
	end tell
	tell document 1
		tell page 1
			set my_frame to make text frame with properties {geometric bounds:{0, 0, 200, 200}}
			tell my_frame
				place my_file
			end tell
		end tell
	end tell
end tell