• 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
Re: AS Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS Problem


  • Subject: Re: AS Problem
  • From: Ehsan Saffari <email@hidden>
  • Date: Fri, 20 Jul 2001 04:38:44 -0600

On Thu, 19 Jul 2001 22:41:24 -0700, John W Baxter <email@hidden>
wrote:

>At 13:47 +1200 7/20/2001, kim wrote:
>>All,
>>
>>apologies in advance for cross posting to both FMP/AS lists
>>
>>I'm looking for someone (Ehsan, Jimmy J?) to confirm something for me
>>FMP 5/5.5, Mac OS 9.1, AS 1.6
>>
>>the test db has only a single field and a single record. The field has
>>only three words in it.
>>
>>tell application "FileMaker Pro"
>>set thetext to cell "Field1" of current record as styled text
>>end tell
>>
>>Running results in an out of memory error in Script Editor (and a hard
>>crash in Script Debugger). After re-starting Script Debugger the script
>>may run once or twice but will then revert to quitting or timing out. It
>>seems impossibly unreliable.
>>
>>_however_,
>>
>>if I apply _any_ style to _any_ character of the text it runs flawlessly.
>>
>>Runs fine in FMP 4.
>
>As a hunch, this looks like FileMaker trying to access a style block
>through a nil handle, and sending garbage (overlength?) back in the result
>Apple event.
>
>It would be interesting to run this code on a machine with Even Better Bus
>Error installed (eg, a machine with the current MacsBug installed). If my
>hunch is right, that should stop somewhere within FileMaker or a system
>call FileMaker makes. [I presently lack FMP 5 *and* the current MacsBug,
>so while I think this test would be interesting, I can't run it.]

This script, when run from within TE+ works, (cell "text" contains plain
text):

tell application "FileMaker Pro 4.0v3 or 5.5"
set x to cell "text" of current record as styled text
end tell
tell application "Tex-Edit Plus"
make new window
set contents of window 1 to x
end tell

But TE+ reports: AppleScript Error, The script is flawed or AppleScript
is installed improperly, buttons (OK, Edit)
And Window 1 now contains the contents of cell "text"!

Same script run from within FMP 4.0v3 or 5.5 reports error -1702 from TE+
or FMP quits unexpectedly. But window 1 of TE+ now contains the contents
of cell "text"!

Same script run from SD generates error -1702, Some data could not be
read.

MacOS 8.6

cheers
ehsan


  • Prev by Date: Re: Selecting and deleting text in QuarkXPress
  • Next by Date: Re: Selecting and deleting text in QuarkXPress
  • Previous by thread: Re: AS Problem
  • Next by thread: Re: AS Problem
  • Index(es):
    • Date
    • Thread