Hi there! I don't use ID hence I don't script ID, but can't address either spread or page? If so, you could target say the last page of spread 2, or page 2 of spread 17. Does this make sense? Another possible way (to me) would be to add the width of the page to the measures so that the new object to be created falls on the right hand page. Are you with me? Then you'd need to test the page number and detect wether you're on a odd or even page. HTH.

I have a script that measures text frames and places those measurements as text inside the text frame. The only problem I'm having is that InDesign wants to put the measurements for page 2 of the spread on page 1. What do I need to change to convince InDesign to put the measurements for page 2 on page 2?

-------------------------------------------------------------------------------------------------------------- --CREATING SEPARATE NEW LAYER FOR THE MEASURMENTS AND TEXT BOXES IF IT DOESN'T EXIST --------------------------------------------------------------------------------------------------------------

--Telling script to use existing measure layer if it already exists on error set measuringLayer to layer "Measure" end try

-------------------------------------------------------------------------------------------------------------- --GETTING MEASUREMENTS AND ADDING THEM AS TEXT TO THE MEASURED TEXT FRAME --------------------------------------------------------------------------------------------------------------

--Displaying a message to the user if there are no text frames on the measure layer if (count of every text frame of measuringLayer) is 0 then -->Beginning of if statement set boxesDontExist to true -->Using this to display a dialog further down in the script, after the repeat loop ends.

--Getting the measurements of every text frame on the measure layer else

set my_pages to every page repeat with a_page in my_pages set page_name to get the name of a_page

set boxesExist to true -->Using this to display a dialog further down in the script, after the repeat loop ends. set measuringTextFrames to (every text frame of page page_name whose item layer is measuringLayer) repeat with measuringTextFrame in measuringTextFrames -->Beginning of second repeat loop

--Geometric bounds are {top side, left side, bottom side, right side}, also referred to as {y1, x1, y2, x2} set y2 to item 3 of geometric bounds of measuringTextFrame -->y2 is the bottom side of the frame set y1 to item 1 of geometric bounds of measuringTextFrame -->y1 is the top side of the frame set x1 to item 2 of geometric bounds of measuringTextFrame -->x1 is the left side of the frame set x2 to item 4 of geometric bounds of measuringTextFrame -->x2 is the right side of the frame

--Doing some math with those measurements to figure out the square inches of each frame set frameHeight to y2 - y1 -->bottom of frame - top of frame = height of the frame set frameWidth to x2 - x1 -->right side of frame - left side of frame = width of the frame set frameSquareInchesLong to frameHeight * frameWidth -->multiplying height time width to get square inches set frameSquareInches to my roundThis(frameSquareInchesLong, 2) -->making the number round to only 2 decimal points instead of a gazillion set inchMarks to {"''"} -->Adding the inch marks in between quotes set measurementText to frameSquareInches & inchMarks as string -->Final result followed by the inch marks (example: 3.08")

I have this script that combines word files into one file. I then drop that Word file onto Quark and drag it off to the side. The problem I'm having is that the imported text cuts off after the first paragraph and the rest of the text is overflowing.I'm trying to figure out how to replace the paragraph break in the code with something that won't cut off in Quark; either by changing something in this script in Word or by making a second script that changes it in Quark.

on open of droppedfiles with timeout of 1500 seconds tell application "Microsoft Word" set new_document to make new document repeat with afile in droppedfiles set file_path to afile as string set filename to name of afile set paste_range to text object of new_document set collapsed_range to collapse range paste_range direction collapse end insert file file name file_path at collapsed_range end repeat end tell end timeoutend open

Most of the time if a script crashes the app other people won't necessary test the code Then it would be helpful to be a bit more accurate: at what stage does it crash? What script editor do you use? You'd need to add some log reports along the code as to see what happens and when does the crash occurs.Does this make sense?