Linux: read files created on OsX using Pages
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
#!/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}.pdfat line 2 insert the full path of your favorite pdf viewer - make executable the newly created file ( chmod +x /usr/local/bin/pages )