🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17926

Re: More discussion on memory

#17926
From: Shane Stanley
Date: Wed, 07 May 2003 23:17
31 lines
1833 bytes
in article 1de908fa.-1@WebX.la2eafNXanI, John Darnell wrote:

> The potential problem with this is that the average size of these files are
> between 15 and 20Kb, with some getting as fat as 126Kb.

I've regularly read multi-megabyte files into memory in applets (under OS 9
you have to increase the memory partition accordingly). And I just did a
test with ID 2.0.2 (under OS X):

tell application "InDesign 2.0.2"
 set x to "1234567890"
 repeat 20 times
  set x to x & x
 end repeat
 
 set fileref to (open for access file "Macintosh HD:Test" with write
permission)
 write x to fileref
 close access fileref
 
 set fileref to (open for access file "Macintosh HD:Test")
 set y to read fileref
 close access fileref
 display dialog (length of y) as text
end tell

This runs fine from the Script Palette, and as you can see, it deals with
some reasonable size chunks of data.

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BADFD110.5925A%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de908fa.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,91a288daf42dd97b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-07 16:38:07 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: More discussion on memory
Message-ID: <BADFD110.5925A%sstanley@myriad-com.com.au>
Date: Wed, 7 May 2003 16:17:05 -0700
References: <1de908fa.-1@WebX.la2eafNXanI>
Lines: 36
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit