FYI - Connection is invalid
FYI - Connection is invalid
- Subject: FYI - Connection is invalid
- From: Stan Cleveland <email@hidden>
- Date: Thu, 20 Mar 2008 17:38:05 -0700
- Thread-topic: FYI - Connection is invalid
I had a vexing problem today with InDesign CS3. Among other things, my
project places PDF images into the document. During testing, after I'd made
some changes and saved the code, InDesign would crash when trying to place
an image. The application instantly shut itself down and all that was left
behind was the error dialog:
AppleScript Error
Adobe InDesign CS3 got an error: Connection is invalid. (-609)
A web search turned up the problem, but no solutions. After a lot of
debugging (which isn't easy in AS Studio), I found what was causing the
error, at least in this case. I had inadvertently left out a tell to the
page and the document. In other words, my code looked like this:
tell application "Adobe InDesign CS3"
place imagePath on rectangle theBox
end tell
But it should have looked like this:
tell application "Adobe InDesign CS3"
tell page pgNum of document 1
place imagePath on rectangle theBox
end tell
end tell
This may not explain all cases of error -609, but it seems clear that trying
to address a page item using a faulty reference will do it. Take note all
you InDesign scripters!
Stan C.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden