Do you need to open and read on your Linux box files generated on Mac OsX using Pages? Below how i’m doing it. create file /usr/local/bin/pages edit /usr/local/bin/pages and inserte the following code
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/sh PDFV=evince # your favorite pdf viewer FILEP="$1" FILET=$(mktemp) mv $FILET ${FILET}.pdf DIRP=$(dirname $FILEP) cd $DIRP unzip -jp "$1" QuickLook/Preview.pdf > ${FILET}.pdf $PDFV ${FILET}.pdf cd - rm -f ${FILET}.pdf |
at line 2 insert the full path of your favorite pdf viewer make executable the newly created file ( chmod +x …
Continue reading “Linux: read files created on OsX using Pages”