• 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
INDESGN CS3: Still AfterOpen Event Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

INDESGN CS3: Still AfterOpen Event Problem


  • Subject: INDESGN CS3: Still AfterOpen Event Problem
  • From: Rick Gordon <email@hidden>
  • Date: Fri, 22 Aug 2008 13:47:23 -0700

I know that there has been some discussion here and in Adobe's forum, but I continue to have a problem addressing a layout window in a script run through an AfterOpen event listener.

I am addressing document 1 rather than active document, and I am setting up wait loops to delay the script. I still get errors that layout window 1 (or window 1) of document 1 can't be accessed.

The same script runs fine on a pre-opened document.

This script errors in the tell layout window 1 statement, even if I set the count increment to numbers high enough to cause long delays (like 100000000):

tell application "Adobe InDesign CS3"
	tell document 1
		set vCount to 0
		repeat while vCount < 10000
			set vCount to (vCount + 1)
		end repeat
		set show rulers of view preferences to true --This works.
		--if not (exists layout window 1) then make new window
		tell layout window 1
			set overprint preview to true
		end tell
	end tell
end tell

If I uncomment the line "if not (exists layout window 1) then make new window", then it sometimes works correctly, but makes InDesign unstable, and If I run a script where I open documents invisibly, it crashes.
--

___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com
 _______________________________________________
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: INDESGN CS3: Still AfterOpen Event Problem
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: MacOS 10.5 odditie
  • Next by Date: Hdiutil broken for me
  • Previous by thread: Mark as Podcast in iTunes?
  • Next by thread: Re: INDESGN CS3: Still AfterOpen Event Problem
  • Index(es):
    • Date
    • Thread