CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 02:31:35 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110812015923
location: https://web.archive.org/web/20110812015923/https://wiki.python.org/moin/MacPython/InDesign
server-timing: captures_list;dur=0.796447, exclusion.robots;dur=0.027439, exclusion.robots.policy;dur=0.013836, esindex;dur=0.053382, cdx.remote;dur=43.260660, LoadShardBlock;dur=182.974804, PetaboxLoader3.resolve;dur=100.627886, PetaboxLoader3.datanode;dur=50.281430
x-app-server: wwwb-app213
x-ts: 302
x-tr: 262
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app213; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 02:31:36 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Fri, 12 Aug 2011 01:59:24 GMT
x-archive-orig-server: Apache/2.2.16 (Debian)
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-set-cookie: MOIN_SESSION_80_ROOT_moin=49f4b9f95ab2fcbe3e0f5c7e0f9bae76df955ab8; expires=Fri, 12-Aug-2011 02:59:00 GMT; Max-Age=3600; Path=/
x-archive-orig-content-length: 9688
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 12 Aug 2011 01:59:23 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 12 Aug 2011 01:59:23 GMT", ; rel="memento"; datetime="Fri, 12 Aug 2011 01:59:23 GMT", ; rel="next memento"; datetime="Tue, 05 Jul 2022 22:28:50 GMT", ; rel="last memento"; datetime="Thu, 07 Jul 2022 06:44:43 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: WPO-20110812015310-crawl438/WPO-20110812015310-01660.warc.gz
server-timing: captures_list;dur=1.076140, exclusion.robots;dur=0.018956, exclusion.robots.policy;dur=0.010453, esindex;dur=0.010654, cdx.remote;dur=22.056874, LoadShardBlock;dur=44.338815, PetaboxLoader3.datanode;dur=63.549869, load_resource;dur=295.572495, PetaboxLoader3.resolve;dur=195.238443
x-app-server: wwwb-app213
x-ts: 200
x-tr: 404
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
MacPython/InDesign - PythonInfo Wiki
User
Only some snippets from a simple InDesign automator...
inD = app('Adobe InDesign CS2') inD.script_preferences.user_interaction_level = k.never_interact finder = app('Finder') doc = inD.open(mactypes.Alias(u'/Users/user/Documents/test.indd')) if doc.pages[page].side() == k.right_hand: print "page %d is on the righthand side" % page
How to place a text file and delete the first 2 lines:
story = doc.place(macpath, on=doc.pages[page], showing_options=False) story.lines[1:2].delete()
Fix the size of the new text frame:
rect = [76, 12, 284, 65] # left, top, height, width in default unit (e.g. mm) frame = story.text_frames[1].get() frame.geometric_bounds.set(rect) if frame.overflows(): # too much text -> increase size
MacPython/InDesign (last edited 2008-11-15 14:00:31 by localhost)