make new custom document property with properties
but Applescript tells me "Microsoft Word got an error: Can�t make class
custom document property". Is that because it /is/ impossible to create
a new custom document property in Applescript, or is it because I simply
have not worked out exactly how to tell Applescript how to do it? At the
moment I cannot find a single example on the web that shows how to do
it, which leaves me with the strong impression that it cannot be done.
With any luck, now I've said that, someone will pop up and tell us how
to do it :-)
Without that, part of your existing design probably isn't going to be
feasible. As for the Shapes and updates, sorry, can't tell you that
either off the top of my head, but I already know that dealing with
headers and footers in Applescript is not much like the same as doing it
in VBA and that some things do not appear to work at all. If you want to
pursue that part a bit further, we can but try, and perhaps someone with
more Applescript experience will chip in.
That said, I have found the following 4 things either essential or
extremely useful for working with Applescript and Word:
a. a good applescript book. I use the Hanaan Rosenthal book by Apress.
b. Microsoft's developer information at
http://www.microsoft.com/mac/developers/default.mspx
c. a transition guide at
http://www.mactech.com/vba-transition-guide/index-001.html
d. Apple's web-based Applescript materials
Peter Jamieson
Cheers
On 21/02/10 5:49 PM, in article 59bb3...@webcrossing.JaKIaxP2ac0,
"Numu...@officeformac.com" <Numu...@officeformac.com> wrote:
This email is my business email -- Please do not email me about forum
matters unless you intend to pay!
--
John McGhie, Microsoft MVP (Word, Mac Word); Consultant Technical Writer,
McGhie Information Engineering Pty Ltd, Sydney, Australia.
Ph: +61 (0)4 1209 1410; mailto:jo...@mcghie.name
The problem is primarily in the difference in approach between
applescript and VBA and the resulting differences between the
applescript dictionary for Word and the object model that VBA works with.
Other than that, applescript is certainly "different" but learning it is
like learning any other language, and I have found that even a small
amount of time spent learning its basics has paid dividends.
Peter Jamieson
This was one of those "Faster, Cheaper, Better, Sooner: pick any three!"
decisions. Every software project is. For any software project, you choose
how much of each of those four things you can bake into the recipe.
With any large and complex piece of software, the software company does not
have complete control over any of those four things. Generally, the
customers will tell you what the maximum price can be, Sales will tell you
how much "Better" they need, and Marketing will tell you what date "Sooner"
is. "Faster" can always be had at the expense of one of the others: in this
case, a performance improvement of about 50% was possible if they removed
support for the Power PC.
I was among the customers Microsoft discussed the impact of this decision
with before they made it. They knew, very clearly, what the impact would
be. They made the best decision they could under the circumstances.
Office 2008 has been the best-selling version of Mac Office ever, so I guess
the people have voted and the result shows that Microsoft got the decision
right.
Personally, I derive a large part of my income from VBA customisation in
Word, so you can imagine the impact this had on my business. But the other
alternatives were even more unpalatable.
Cheers
On 23/02/10 9:13 PM, in article 59bb3...@webcrossing.JaKIaxP2ac0,
"Numu...@officeformac.com" <Numu...@officeformac.com> wrote:
This email is my business email -- Please do not email me about forum