Re: driving LibreOffice.
Re: driving LibreOffice.
- Subject: Re: driving LibreOffice.
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 22 Aug 2016 10:36:30 +0200
If all documents are in the same folder (e.g. /Users/name/Documents/docs_cwk ), you can use this in Terminal (change name by you user name):
$ cd /Applications/LibreOffice.app/Contents/MacOS $ ./soffice --headless --convert-to pdf --outdir /Users/name/Documents/docs_cwk /Users/name/Document/docs_cwk/*.cwk
(here, the option --outdir /Users/name/Documents/docs_cwk give the destination folder for the .pdf created. The last argument of the command give the file(s) to converting.)
If you prefer by AppleScript :
do shell script "cd /Applications/LibreOffice.app/Contents/MacOS; ./soffice --headless --convert-to pdf --outdir /Users/name/Documents/docs_cwk /Users/name/Document/docs_cwk/*.cwk"
This create .pdf files. Hope this will create PDF/A file as needed.
Le 21 août 2016 à 20:55, Yvan KOENIG < email@hidden> a écrit :
Le 21 août 2016 à 19:26, Iurista GmbH <email@hidden> a écrit :
I just made a check: I still own 4361 Applework files. I use two methods for converting them (if I find the time):
1. Files of which I still would like to access their content will be converted to Pages, which opens Applework files directly. 2. I still run 10.6.8 on a Mac Mini, and therefore Appleworks 6. Files which are kept only for memory will be printed to PDF, also by means of a script
If you have no access to AppleWorks, there's also the possibility to convert to Pages and then print to PDF. No big scripting effort.
Rudolf
Thanks False hope. I know the syntax able to save as PDF (no need for the Print dialog) but Pages doesn't save as PDF/A which is required to fit the user's needs.
Thanks
The files aren't in a single folder. They are stored in a hierarchy based upon year + month -day. Of course, I may build a script treating the subfolder recursively - at this time it treats the files recursively.
PDF/A isn't the default format used by LibreOffice
If I understand well the different answers, there is no other way than cliclick to trigger the important checkbox so I will continue to use it.
Yvan KOENIG running El Capitan 10.11.6 in French (VALLAURIS, France) lundi 22 août 2016 10:36:25
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden