Article View: adobe.scripting.indesign
Article #9699Re: [AppleScript] the allTables issue
From: Shane_Stanley
Date: Thu, 20 Jul 2006 23:39
Date: Thu, 20 Jul 2006 23:39
35 lines
2771 bytes
2771 bytes
Try this:
tell application "InDesign CS"
tell active document
set BlackColor to color "Black"
set SolidStroke to stroke style "Solid"
end tell
set allTables to every table of every story of document 1
repeat with i from 1 to count of allTables
set myTable to item i of allTables
set properties of myTable to �
{inner column stroke weight:0.25 �
, inner row stroke weight:0.25 �
, top edge stroke weight:0.25 �
, bottom edge stroke weight:0.25 �
, left edge stroke weight:0.25 �
, right edge stroke weight:0.25 �
, inner column stroke color:BlackColor �
, inner row stroke color:BlackColor �
, left edge stroke color:color BlackColor �
, right edge stroke color:color BlackColor �
, bottom edge stroke color:BlackColor �
, top edge stroke color:BlackColor �
, inner column stroke type:SolidStroke �
, inner row stroke type:SolidStroke �
, left edge stroke type:SolidStroke �
, right edge stroke type:SolidStroke �
, bottom edge stroke type:SolidStroke �
, top edge stroke type:SolidStroke �
, left inset:1, right inset:1, top inset:1, bottom inset:1}
end repeat
end tell
--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID:
<C0E6516B.2D52C%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc0fa5c.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,298c2d190edc36d X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII From: Shane_Stanley@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: [AppleScript] the allTables issue Message-ID: <C0E6516B.2D52C%sstanley@myriad-com.com.au> Date: Thu, 20 Jul 2006 16:39:55 -0700 References: <3bc0fa5c.-1@webcrossing.la2eafNXanI> Lines: 38 Received: from bld-mail02.adl2.internode.on.net [203.16.214.66] by adobeforums.com; Thu, 20 Jul 2006 16:39:59 -0700 Received: from [192.168.1.3] (unverified [59.167.68.55]) by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 227519401 for <adobe.scripting.indesign@adobeforums.com>; Fri, 21 Jul 2006 09:09:57 +0930 (CST) Return-Path: <sstanley@myriad-com.com.au> User-Agent: Microsoft-Entourage/11.2.5.060620 Thread-Topic: [AppleScript] the allTables issue Thread-Index: AcasVc20DFJrNBhJEduhEwARJHm3nA== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing