How do I run a AOO macro from CommandLine in Mac

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
anand_k
Posts: 2
Joined: Thu Jul 04, 2019 4:13 pm

How do I run a AOO macro from CommandLine in Mac

Post by anand_k »

I tried running macro with below option but nothing happened can some one help me
./soffice -invisible --nofirststartwizard --norestore /Users/anand/Downloads/macro.ods "macro:///Standard.Module1:Main()"
macOS 10.14
Openoffice 4.1.6
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: How do I run a AOO macro from CommandLine in Mac

Post by robleyd »

Did you try a forum search? Searching for running macro from command line found a few likely results.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
anand_k
Posts: 2
Joined: Thu Jul 04, 2019 4:13 pm

Re: How do I run a AOO macro from CommandLine in Mac

Post by anand_k »

I couldn't see that works for Mac.
macOS 10.14
Openoffice 4.1.6
User avatar
robleyd
Moderator
Posts: 5086
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: How do I run a AOO macro from CommandLine in Mac

Post by robleyd »

Another post here suggests:
"See Pitonyak's "Useful Macro Information for OpenOffice.org" section 5.31.2 and 5.32.2 for discussion and examples of running macros from the command line."

This can be found at http://www.pitonyak.org/oo.php using the link, on that page, OpenOffice.org Macro document
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply