Welcome to NeoOffice Forums
NeoOffice
 
Official online support site for NeoOffice and NeoOffice Mobile

Trinity
· Home
· News
· Private Messages
· Stories Archive
· Your Account


RSS Feeds
· Headlines
· Forum Posts
· NeoOffice Releases
· Beta Releases
· NeoOffice Mobile


Twitter Feeds
· @NeoOffice


Download NeoOffice
· Get NeoOffice
· Get the Latest Patch
· Language Packs
· User Guide
· User Guide Volume 2


Other Websites
· NeoOffice.org
· NeoWiki


Who's Online
There are currently, 105 guest(s) and 13 member(s) that are online.

You are Anonymous user. You can register for free by clicking here


Languages
Select Interface Language:



  
trinity.neooffice.org :: View topic - Scripting NeoOffice with AppleScript
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Private MessagesPrivate Messages   Log inLog in 

Scripting NeoOffice with AppleScript
Users who have paid US$100.00 within the last year can post

 
Post new topic   Reply to topic    trinity.neooffice.org Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
ArticleResearch
Guest





PostPosted: Thu Jan 26, 2006 1:45 pm    Post subject: Scripting NeoOffice with AppleScript Reply with quote

I have an applescript that while admitedly a hack, will open a .doc document in MS Word, send it to Preview and save it as a PDF. It uses OS X 10.4 UI scripting to do it thing via the programs' menus.

I was hoping to be able to replace this directly with NeoOffice's "Export to PDF' functions but none of the UI element finding programs I have can find the hierarchical path to NeoOffice's menu bar. They all do find the main NeoOffice menu but they can't find the menu for the Document editor program tha appears with an open text document.

Can anybody help with this? Alternatively (or perhaps better) is there some other code that an external program (the actual program driving all this is a very large document indexing research system written in Java and running across 20 computers) can use to push a .doc document through NeoOffice and get back a PDF?

Please don't suggest any of the Doc2pdf programs that abound in free and commercial versions. None of them are robust enough to deal with complex Word documents. The only two programs that are (after years of on an off experimentation) are MS Word itself and OOo (hence neooffice).

Thanks

AR

Thanks for any help.
Back to top
Guest






PostPosted: Thu Jan 26, 2006 2:14 pm    Post subject: Reply with quote

Maybe NeoO can be controlled via some *nixy commands. these can be excecuted via AppleScript. Something to look for in OOo forums?

Direct AppleScript support is not really available of course...
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4576

PostPosted: Thu Jan 26, 2006 4:31 pm    Post subject: Reply with quote

Are you using Neo 1.2 Beta? I ask because Apple hooked Java up to all of its Accessibility APIs in Java 1.4, and Neo 1.2 is the first version to use 1.4. (I'm also assuming that the Acessibility stuff should be enough to let UI scripting work, at least as far as the menu bar is concerned.)

It may be, however, that the way in which the menus are constructed--OOo menus are ugly, and the code to make them native seems sometimes like it's tricky and fragile--prevents UI scripting from finding the rest of the menus.

As the previous poster mentioned, either an OOo macro or some sort of UNIX-y script (OOo includes a copy of Python, so it must be accessible at least to Python if not other languages--I forget what other languages have UNO bindings) might offer a solution, and the latter should definitely be able to integrated into the AppleScript workflow.

Smokey
(who wishes there were an AppleScript bridge for UNO)

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
View user's profile Send private message Visit poster's website
ronchet
Blue Pill


Joined: May 26, 2008
Posts: 1

PostPosted: Mon May 26, 2008 1:14 pm    Post subject: Re: Scripting NeoOffice with AppleScript Reply with quote

Did you ever find the solution? I'm interested in the very same task...
bests

MR

ArticleResearch wrote:
I have an applescript that while admitedly a hack, will open a .doc document in MS Word, send it to Preview and save it as a PDF. It uses OS X 10.4 UI scripting to do it thing via the programs' menus.

I was hoping to be able to replace this directly with NeoOffice's "Export to PDF' functions but none of the UI element finding programs I have can find the hierarchical path to NeoOffice's menu bar. They all do find the main NeoOffice menu but they can't find the menu for the Document editor program tha appears with an open text document.

Can anybody help with this? Alternatively (or perhaps better) is there some other code that an external program (the actual program driving all this is a very large document indexing research system written in Java and running across 20 computers) can use to push a .doc document through NeoOffice and get back a PDF?

Please don't suggest any of the Doc2pdf programs that abound in free and commercial versions. None of them are robust enough to deal with complex Word documents. The only two programs that are (after years of on an off experimentation) are MS Word itself and OOo (hence neooffice).

Thanks

AR

Thanks for any help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    trinity.neooffice.org Forum Index -> NeoOffice Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.03 Seconds