applying a custom table style via applescript

N

noah.leaman

I am creating a bunch of table with an applescript. I can apply a
standard "built-in" table style to them, but I really would rather
apply the customized style that I can bring in from a saves dot. Any
thoughts on how to do this?

Also, I cannot for the life of me set the table/row/colums/cells
border padding via the script. Could someone paste a simple example of
this?
 
N

Noah

I am creating a bunch of table with an applescript. I can apply a
standard "built-in" table style to them, but I really would rather
apply the customized style that I can bring in from a saves dot. Any
thoughts on how to do this?

Also, I cannot for the life of me set the table/row/colums/cells
border padding via the script. Could someone paste a simple example of
this?

Forgot the version: Word 2004 (version 11.3.4)
 
C

Clive Huggan

Hello Noah,

Since no-one has replied yet (our Applescript uber-guru is away) and since
Applescript it isn't my field: a way to insert a pre-formatted table with a
keyboard shortcut, via AutoText, is described on pages 126 and 127 of some
notes on the way I use Word for the Mac, titled "Bend Word to Your Will",
which are available as a free download from the Word MVPs' website
(http://word.mvps.org/Mac/Bend/BendWordToYourWill.html).

[Note: "Bend Word to your will" is designed to be used electronically and
most subjects are self-contained dictionary-style entries. If you decide to
read more widely than the item I've referred to, it's important to read the
front end of the document -- especially pages 3 and 5 -- so you can select
some Word settings that will allow you to use the document effectively.]

Cheers,

Clive Huggan
Canberra, Australia
(My time zone is 5-11 hours different from North America and Europe, so my
follow-on responses to those regions can be delayed)
============================================================
* SUGGESTION -- KEEP REVISITING AFTER YOU POST: If you post a question, keep
re-visiting the newsgroup for several days after the first response comes
in. Sometimes it takes a few responses before the best or complete solution
is provided; sometimes you'll be asked for further information. Good tips
about getting the best out of posting are at
http://word.mvps.org/Mac/AccessNewsgroups.html and
http://word.mvps.org/FindHelp/Posting.htm (if you use Safari you may see a
blank page and have to hit the circular arrow icon -- "Reload the current
page" -- two or more times).
============================================================
 
N

Noah

Thanks Clive. "Bend Word to Your Will" is a fantastic resource!

The tables I'm creating in this document (about 55 of them in one doc)
all contain data that is stored in a FileMaker Pro database. I am
creating the tables just fine with the AppleScript and also auto
formatting them with one of the built-in table styles using the "auto
format table canTable table format (table format professional)"
command in the script.

I am also loading in a .dot that has my customized styles but I don't
see a way to "pick" any of these custom styles with an Applescript.


HelloNoah,

Since no-one has replied yet (our Applescript uber-guru is away) and since
Applescript it isn't my field: a way to insert a pre-formatted table with a
keyboard shortcut, via AutoText, is described on pages 126 and 127 of some
notes on the way I use Word for the Mac, titled "Bend Word to Your Will",
which are available as a free download from the Word MVPs' website
(http://word.mvps.org/Mac/Bend/BendWordToYourWill.html).

[Note: "Bend Word to your will" is designed to be used electronically and
most subjects are self-contained dictionary-style entries. If you decide to
read more widely than the item I've referred to, it's important to read the
front end of the document -- especially pages 3 and 5 -- so you can select
some Word settings that will allow you to use the document effectively.]

Cheers,

Clive Huggan
Canberra, Australia
(My time zone is 5-11 hours different from North America and Europe, so my
follow-on responses to those regions can be delayed)
============================================================
* SUGGESTION -- KEEP REVISITING AFTER YOU POST: If you post a question, keep
re-visiting the newsgroup for several days after the first response comes
in. Sometimes it takes a few responses before the best or complete solution
is provided; sometimes you'll be asked for further information. Good tips
about getting the best out of posting are athttp://word.mvps.org/Mac/AccessNewsgroups.htmlandhttp://word.mvps.org/FindHelp/Posting.htm(if you use Safari you may see a
blank page and have to hit the circular arrow icon -- "Reload the current
page" -- two or more times).
============================================================

Forgot the version: Word 2004 (version 11.3.4)
 
C

Clive Huggan

Sorry, Noah -- I think they are on the busy side and haven't been visiting.
I've flagged your post, so maybe they will come by soon.

Cheers,

Clive
=====
 
C

Clive Huggan

Noah,

I've asked on one of my private networks for someone with knowledge in this
area to look at your post. However, I can only assume that none of them has
the expertise to help, although I find it strange that no-one has said "I
don't think it can be done" or whatever.

It may not help, or you may already have it: MacTech's VBA-to-Applescript
transition guide at www.mactech.com/vba-transition-guide/index-001.html

Cheers,

Clive Huggan
Canberra, Australia
(My time zone is 5-11 hours different from North America and Europe, so my
follow-on responses to those regions can be delayed)
============================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top