🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by Ryan_Nosek Tue, 17 Feb 2009 18:34
"Place Cursor" Scripting Indesign CS3/CS4
#1124
Author: Ryan_Nosek
Date: Tue, 17 Feb 2009 18:34
54 lines
2135 bytes
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 script and the place command doesn't know where to put it

2) You have multiple images selected.

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
Re: "Place Cursor" Scripting Indesign CS3/CS4
#1133
Author: Shane_Stanley
Date: Tue, 17 Feb 2009 22:03
5 lines
1405 bytes
I don't think what you want can be done.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Re: "Place Cursor" Scripting Indesign CS3/CS4
#1138
Author: Ryan_Nosek
Date: Tue, 17 Feb 2009 22:37
3 lines
639 bytes
Dang....

Thanks for your time
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads