View Single Post
Old 05-08-2013, 02:29 PM   #516
SimpleText
Junior Member
SimpleText began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2013
Device: Kindle PW
For Mac users:

0. Download the original plugin.
1. Unzip "Count Pages.zip", a folder named "Count Pages" will be created.
2. Inside that folder locate and open the file "statistics.py" (TextWrangler -free- works fine).
3. Find and replace the line 108:

Code:
Find:    "            internal_path = os.path.relpath(spath, iterator.base).replace('\\','/')"
Replace: "            internal_path = os.path.relpath(spath.replace('/private',''), iterator.base).replace('\\','/')"
(without quotes, of course)
4. Save "statistics.py"
5. Zip the contents of the folder "Count Pages". Note that is the contents (12 items), not the folder "Count Pages". Rename if neccesary the new zipped archive to "Count Pages.zip"
6. That's all, install and enjoy the plugin.

Have a nice day.

Edit: Fixed in the v1.6.6 release.

Last edited by SimpleText; 05-09-2013 at 11:09 AM.
SimpleText is offline   Reply With Quote