Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Split text files for iPod Notes usage via Perl' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Split text files for iPod Notes usage via Perl
Authored by: windrag on Tue, Jul 22 2008 at 3:10PM PDT
Actually, I just tried to run this script with the instructions given and I get the following error:

<code>-bash: ./makenotes.pl: /usr/bin/perl^M: bad interpreter: No such file or directory</code>

---
windrag | 2.4GHz MacBook Pro Core 2 Duo | 160GB HD | 2GB RAM | OS X 10.5.4

[ Reply to This | # ]
Split text files for iPod Notes usage via Perl
Authored by: windrag on Tue, Jul 22 2008 at 8:30PM PDT
OK, so I figured out the problem (the command perl is what runs the script, like this:

perl ./makenotes.pl colourofmagic.txt

Probably obvious to most, but I'm not a regular perl user. So, I got it to work, but I'm used to using UTF-8 text files, and this script returns a bunch of improperly translated characters. I changed my text file encoding to Western (Mac OS Roman) and the output looks great, except that the first page is just one character. Anyway, thanks again!

---
windrag | 2.4GHz MacBook Pro Core 2 Duo | 160GB HD | 2GB RAM | OS X 10.5.4

[ Reply to This | # ]