Dean Allen Provins, P. Geoph. wrote:
On Tue, Feb 03, 2009 at 11:17:43PM -0500, Andrew Douglas Pitonyak wrote:
Dean Allen Provins, P. Geoph. wrote:
Hello:

I cannot get OO 3 to find my python macros.

The FAQ for macros says to set the security setting to medium (done) and
to add the paths to your macros (also done).

Alas, asking OO Tools -> macros -> organize macros to see what I have
results in failure (even after restarting OO).

Any ideas?

Dean

Thanks for the reply Andrew.

Are you able to see Basic Macros?

Yes - They appear when I go to 'organize macros -> basic'.

Are you able to see the Python macros included with OOo?

Yes - They appear when I go to 'organize macros -> python' and look at
'Openoffice.org Macros': Capitalize, HelloWorld and pythonSamples all
appear.

Was the python component installed when you installed OOo?

It must have been as the CreatTable.py macro runs in a Writer document.


It seems that the path to my test python macros (which are visible using
the 2.4 version of OOo in ~/.openoffice.org2/user/Scripts/python/) is
incorrect.  I've tried ~/.openoffice.org/3/user/Scripts/python/ but OOo
version 3 cannot see them.  Apparently that path is incorrect, and I do
not know wat it should be,

Dean
So the problem is that your personal Python macros are not visible. I have never written a Python script, so I have no experience working with Python and OOo. Off hand, it sounds like you do have some experience. My point is simply that although I have some questions that I could ask, my guess is that I know so little that I would probably ask the wrong questions. For example, it sounds like you have macros external to OOo and are attempting to run them from inside OOo. This is not how it works for Basic. As such, it sounds a bit like you are not doing this as you should. I expected that you would have to import the library into OOo first.

I see no ability to do the import thing with Python Macros, and, I do not see how to specify a macro of my own for running using the GUI ....

Given that there have been no other replies, may I suggest the dev mailing list? If you like, I am more than happy to help get the question out if you desire. Feel free to email me off list.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to