[Solved] User defined path in macro

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

[Solved] User defined path in macro

Post by Ponny »

Meow

I searched in OpenOffice help, but not found.
Is there in OpenOffice Basic any function returns environment variable?
For example: Tools / Options / Path / Templates.
In one macro I need this data: path to user templates.

Thankyou in advance and wish you juicy day.


Ponny
Last edited by MrProgrammer on Tue Sep 08, 2020 4:53 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved]
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
JeJe
Volunteer
Posts: 2784
Joined: Wed Mar 09, 2016 2:40 pm

Re: User defined path in macro

Post by JeJe »

https://wiki.openoffice.org/wiki/Docume ... h_Settings

Code: Select all

	oPathSettings = CreateUnoService( "com.sun.star.util.PathSettings" )
	msgbox opathsettings.template

Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply