To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=113481 Issue #|113481 Summary|Cannot call Python macro from the command line using U |RI syntax Component|framework Version|OOO320m18 Platform|Unknown URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P2 Subcomponent|scripting Assigned to|ab Reported by|shrib
------- Additional comments from [email protected] Tue Jul 27 20:51:10 +0000 2010 ------- I have an Impress presentation file called mydoc.odp. It has a Python script file called myscript.py with a function foo in it. I can run the foo function by doing Tools | Run Macro. However, I am not able to figure out how to invoke the macro from the command line. I am using Impress 3.2.1 on Ubuntu. These are the command lines I tried: soffice mydoc.odp "macro://mydoc/myscript.foo" soffice mydoc.odp "macro://mydoc.odp/myscript.foo" soffice mydoc.odp "macro://mydoc/myscript.foo()" soffice mydoc.odp "vnd.sun.star.script:myscript.py$foo?language=Python&location=document" soffice mydoc.odp "vnd.sun.star.script:mydoc/myscript.py\$foo?language=Python&location=document" soffice mydoc.odp "vnd.sun.star.script:mydoc.myscript.foo?language=Python&location=document" I am able to launch a VB macro in the document using: soffice mydoc.odp "macro://mydoc/Standard,Module1.Test" The reply at http://www.oooforum.org/forum/viewtopic.phtml?t=103034 implied that this is not supported. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
