Thread View: adobe.scripting.indesign
6 messages
6 total messages
Started by Dmitry1776
Sun, 22 Mar 2009 14:52
give line, pls
Author: Dmitry1776
Date: Sun, 22 Mar 2009 14:52
Date: Sun, 22 Mar 2009 14:52
14 lines
969 bytes
969 bytes
help, please, to get refer for inside my selection: var myDoc = app.documents.item(0); then a make "paste" and: var MyFrame = app.selection //.item[0] and i got inside pasted/selected frame table, which sould be worked ///var myTable = MyFrame.textframes.item[1].paragraphs.item[1] --doesn work How to get into my table? Many thanks P.s. a can't find this trough ESTK, besause of permanent suspendig of ESTK immediately after it starts.
Re: give line, pls
Author: jongware
Date: Sun, 22 Mar 2009 16:09
Date: Sun, 22 Mar 2009 16:09
18 lines
1089 bytes
1089 bytes
A table is part of a collection of 'Tables', not items inside a paragraph.
So, presumably,
myTable = MyFrame.textframes.tables.item(0)
should work.
You don't have to 'item' everything,
tables[1]
should work as well. Also notice the difference between [0] and (0). [0] is the first item in an array (not [1]!), as in tables[0] -- since 'tables' is an array. item, on the other hand, is a function, and its argument should therefore be inbetween parentheses.
Re: give line, pls
Author: Dave_Saunders
Date: Sun, 22 Mar 2009 16:15
Date: Sun, 22 Mar 2009 16:15
5 lines
838 bytes
838 bytes
If we're talking CS3 or CS4, that looks for the first table inside the first anchored text frame of myFrame. Is that's what's needed? What exactly is selected after the paste? Why are you doing the paste after starting the script? Dave
Re: give line, pls
Author: Dmitry1776
Date: Sun, 22 Mar 2009 19:54
Date: Sun, 22 Mar 2009 19:54
10 lines
1061 bytes
1061 bytes
work in CS3 what i do: 1. Copy range of cell from Excell sheet 2. Paste in new page in pub in any plase 3. Place text cursor into got table and format table with specifying params 4. Enlarge frame up to Table boundaries (this is big enough, much more than page boundaries) 5. last - rotate on 90 degree and ajust this big frame to page boundaries. All these items (but #3) i could automate. Now i need just to change selection from textframe to inner table (or may be to cell in table).
Re: give line, pls
Author: Dave_Saunders
Date: Sun, 22 Mar 2009 20:35
Date: Sun, 22 Mar 2009 20:35
7 lines
699 bytes
699 bytes
var myPage = app.activeWindow.activePage; var myTF = myPage.textFrames[0]; var myTable = myTF.tables[0]; Does this help? Dave
Re: give line, pls
Author: Dmitry1776
Date: Sun, 22 Mar 2009 21:12
Date: Sun, 22 Mar 2009 21:12
2 lines
638 bytes
638 bytes
Yes! This does work. Thanks for help, Dave.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads