Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'YES! It DOES WORK... Now!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
YES! It DOES WORK... Now!
Authored by: EatingPie on Jun 14, '05 04:17:24PM

Take my original...


     (format "/usr/bin/plutil -convert xml1 -o /dev/stdout %s"
             (shell-quote-argument (buffer-file-name)))

And after the close of the "when" statement, add:


  (save-excursion
    (goto-char (point-max))
    (previous-line 1)
    (if (looking-at "/dev/stdout: Operation not supported")
        (kill-line 1)))

Like I said, the temp file is not necessary! :)

---
-Pie


[ Reply to This | # ]