I'm working on a script for XML based catalogue production. Currently working on MAC OsX 10.3, AS and tested the script with ID 2.0. It doesn't run with CS due the changes in the object modell.
The script imports a 2.4 MB XML file and generates about 160 pages with mainly text and some logos. All text is copied in a linked text frame. Yesterday I have tested the script on a dual G5, 1.8 GHz, 1.5 MB Ram with ID 2. I'm disappointed about the performance. The G5 is only 30-40% faster than my PB G4, 1.25 GHz 1 GB RAM.
The script runs about 5-6 hours (well it crashes after the import if I leave the XML data in one file, if I split it in two, it works)
Today I made two tests with ID CS on MAC and PC.
- My PB G4, 1.25 GHz 1 GB RAM takes more than 30 minutes to import only the XML data.
- The 2.4 Ghz P4, Win XP 512 MB RAM does the same JOB in 5 minutes!
The question is: Does the script (after I rewrite it to VB or JS) runs faster on PC? Does anybody have a performance comparison (XML Import and scripting) with both platforms?
Thanks,
Gunnar
re: "It doesn't run with CS due the changes in the object model."
Where are the problems?
re: performance
It's hard to say whether the script will run faster in Windows or not. If it involves a lot of iteration or trigonometric calculation, then it probably would, but other than that it's really hard to predict.
It should run faster in InDesign CS, in any case, as there were significant performance imrpovements between versions.
Thanks,
Ole
thanks for your comment.
I will first check the script with CS on Mac, if this doesn't work fast enough I will try it on PC. After trying to import the XML Data and this went so much faster on PC I wanted to dump the script on Mac...
Concerning the changes in the object model:
set myStoryId to id of parent story of text frame of item 1 of all page items of page 1 of myDocument
This worked in 2.0 and doesn't in CS. Maybe you have a fast fix for that. I just saw today that the guide for CS (trial) scripting in finally online!
Thanks,
Gunnar
> Concerning the changes in the object model:
>
> set myStoryId to id of parent story of text frame of item 1 of all
> page items of page 1 of myDocument
>
> This worked in 2.0 and doesn't in CS.
I'm not sure it should have worked in v2. You're asking for "text frame
of item 1..." -- which text frame? That should be either "text frame n"
or "every text frame".
--
Shane Stanley <ssta...@myriad-com.com.au>
My intention is to import a XML-file from using the command line or a script.
It would help a lot if you could shoot a mail with a principle example.
THX in advance
Mike
If you give me a call i certainly call you back!
+49 2304 / 97 34 85 (Schwerte/Germany)