"Place Cursor" Scripting Indesign CS3/CS4

Hey Everyone:

I am trying to find a way to add images to the "Place Cursor via Applescript. Placing one item is no problem, however the “Place Cursor” should be activated in two instances:

  1. You have more than one item selected and the place command doesn’t know where to put it

  2. You have multiple images to place.

Is this scriptable? Here is what I have so far…


set fileList to {"Users:ryan:Desktop:Picture 18.png", "Users:ryan:Desktop:Picture 16.png"}

set totalFiles to (count every text item of fileList)


if totalFiles is equal to 1 then
	
	set theFilePathAlias to (item i of fileList)
	tell application "Adobe InDesign CS3"
		
		set myDocument to active document
		set myPage to page 1 of myDocument
		set mySelection to selection
		
		if (count mySelection) is equal to 1 then
			tell myPage
				set myPage to place theFilePathAlias on mySelection
			end tell
		else if (count mySelection) is greater than 1 then
			--Send to Place Cursor
		else if (count mySelection) is less than 1 then
			tell myPage
				set myPage to place theFilePathAlias
			end tell
		end if
	end tell
	
else if totalFiles is greater than 1 then
	
	tell application "Adobe InDesign CS3"
		set myDocument to active document
		
		repeat with i from 1 to totalFiles
			set myPage to place theFilePathAlias
			--Send to Place Cursor
		end repeat
	end tell
	
else
	
	--Error no files selected
	
end if




Thanks

Hello,

Preloading the cursor is a method for speeding up manual placement; per my browse of ID’s dictionary, that feature doesn’t appear scriptable.

Yes, I’ve looked through the dictionary as well, just seeing if anyone has come across this.

Thanks