FJCC wrote: ↑Tue Oct 10, 2023 6:43 pm
There is no editing interface from OpenOffice to the python scripts.
I wouldn't need an editing interface since I am quite familiar with edit tools on my Mac. Even for Basic I normally write the program with a MacOS editor and then just paste it into the Tools → Macros → Organize Macros → OpenOffice Basic dialog. I could also use the Import feature of the dialog .
FJCC wrote: ↑Tue Oct 10, 2023 6:43 pm
You can run python scripts through … Tools -> Macros -> Run or Tools -> Macros -> Organize Macros -> Python .
I
should be able to, but no. My choices in Tools → Macros are limited:
✓ Record Macro
x Run Macro
✓ Organize Macros → OpenOffice Basic
x Organize Macros → Python
x Organze Macros → BeanShell
x Organize Macros → Javascript
✓ Organize Dialogs
✓ means the feature works. ✗ means the feature is not available to me because OpenOffice never responds and I have to kill the application with the
Force Quit dialog of MacOS. So my
only choice for macros is OpenOffice Basic. Since the Tools → Macros → Run dialog isn't available, my only way to run macros is from the Organize Macros → OpenOffice Basic dialog or by creating shortcuts to them. This isn't a problem for me since I don't do much with macros, except some recorded macros that have shortcuts since they are used often.
I believe the Python problem is due to
OpenOffice issue 123975 which says (comment 31):
Since MacOS 12.3, Apple don't provide Python 2.7 anymore. So, unable to run any Python scripts.
karolus wrote: ↑Tue Oct 10, 2023 8:19 pm
Sorry for nitpicking, but the path need to be exactly …/Scripts/python
That is the path I created, but I have determined that can't use Python.
karolus wrote: ↑Tue Oct 10, 2023 8:19 pm
… it is not in scope of this topic to provide a full Addin.oxt nor to explain how to invoke python from Basic.
Fair enough. And I can't use Python anyway so I can't help with creating examples of those methods.
FJCC wrote: ↑Tue Oct 10, 2023 6:43 pm
… excuse the Windows menus. Is it OpenOffice/Preferences on Mac?
Macros is under Tools on MacOS, just as it is on Linux and Windoze. It's only the options dialog which was moved to the standard place for that on MacOS: OpenOffice → Preferences. I will emphasize that the dialog is accessed with OpenOffice → Preferences,
not with OpenOffice → Preferences → Options. However, usually I use
⌘, (Command+Comma) which is the normal keyboard shortcut for the options/settings/preferences dialog in any MacOS application. This is standard, just like
⌘C,
⌘X,
⌘V,
⌘O,
⌘S, ⌘F, ⌘P, etc.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).