Article View: adobe.scripting.indesign
Article #15532Re: Undefined Object Blues
From: Dave_Saunders
Date: Sun, 23 Nov 2003 23:12
Date: Sun, 23 Nov 2003 23:12
15 lines
1951 bytes
1951 bytes
Peter, It's nice to know that someone cares enough to chime in! I've been trying to stay with JavaScript to solve these kinds of problems, but when things become really intractable, the best approach is to turn to AppleScript Debugger. And that has resulted in my discovering that the source of the problem is that the item labeled "FormatsFrame" in the case I'm dealing with is actually a rectangle into which I've pasted a group that contains the text frame I'm actually trying to reach. About three weeks ago, I wrote the scripts to create this lot. I needed to have a rounded rectangle look, but I couldn't afford the huge impact that has on a the first and last lines of a text frame, so I pasted them into a rectangle. So, the problem above is that JavaScript cheerfully handed off a text frame to me when one didn't actually exist. It was only when I called its bluff and tried to investigate the details of the frame that it gave in and gave me an error. Odd behavior, but it probably stems fro the JavaScript philosophy of "continue at all costs" that derives from its original purpose of enhancing the serving of web pages. The big question is, have I made a big enough impression on myself with this fiasco that the next time it happens, I'll recognize it and know what to do? Dave
Technical Details
Message-ID:
<2cce8972.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce8972.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5572ac4b7c018113 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-23 15:37:50 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Undefined Object Blues Message-ID: <2cce8972.5@webx.la2eafNXanI> Date: Sun, 23 Nov 2003 15:12:48 -0800 References: <2cce8972.-1@webx.la2eafNXanI> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit