Article View: adobe.scripting.indesign
Article #18840(AS) make a text frame in a cell - how?
From: Armin.Egginger
Date: Wed, 12 Feb 2003 10:59
Date: Wed, 12 Feb 2003 10:59
36 lines
2103 bytes
2103 bytes
Hi,
I try to make a new text frame in the cell. I place a picture in the cell and wants to place also a text frame with the picture name in it - without extra text frame (only text in cell) functions. But if the width of the picture is not big enough, the text is placed on the right side, I need it under the picture.
--myScript
tell application "InDesign 2.0.2"
set myDocument to active document
tell table 1 of text frame 1 of page 1 of myDocument
tell insertion point 1 of cell 1
set myimageframe to place "HD:user:yourname:pict.eps"
end tell
tell cell 1
tell paragraph 1 to set justification to center
set properties of text frame 1 to {geometric bounds:{0, 0, (10 as number), (10 as number)}}
set myframe to text frame 1
tell myframe
fit myframe given content to frame
fit myframe given proportionally
fit myframe given center content
fit myframe given frame to content
end tell
tell insertion point -1
set myTextFrame to make text frame --with properties {geometric bounds:{0, 0, (5 as number), (8 as number)}}
set text of myTextFrame to ("pictname" as string)
-- set text to (thename as string) (*this functions!*)
end tell
end tell
end tell
end tell
Pls help - what do I wrong? With the "place" command from the image functions, but why not for a new text frame?
Many thanks
Armin
the beginnger
Technical Details
Message-ID:
<1de7d199.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,f4c636a2ee91d8b8,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-12 03:08:05 PST From: Armin.Egginger <armin.egginger@gmx.de> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: (AS) make a text frame in a cell - how? Message-ID: <1de7d199.-1@WebX.la2eafNXanI> Date: Wed, 12 Feb 2003 02:59:07 -0800 Lines: 43 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit