• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FYI - Connection is invalid
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: FYI - Connection is invalid
      • From: Jeff Jungblut <email@hidden>
  • Prev by Date: Re: Re: applications launch invisibly in 10.5?
  • Next by Date: Re: FYI - Connection is invalid
  • Previous by thread: Re: Mail rule applescript and displaying alert
  • Next by thread: Re: FYI - Connection is invalid
  • Index(es):
    • Date
    • Thread