removing quotation marks from old import

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
User avatar
teacher24_70
Addicted to Bruji
Addicted to Bruji
Posts: 93
Joined: Sun Nov 21, 2004 12:51 am
Location: Kansas
Contact:

removing quotation marks from old import

Post by teacher24_70 »

At one point, when I first started using Bookpedia, I imported a tab-delimited file from Word. When it imported the authors, it placed the author names in quotation marks. So, when I sort by author, all of the quotation marked authors are listed first.

Is there a quick, easy way to remove these quotation marks or will I need to do them manually one at a time?
User avatar
Conor
Top Dog
Posts: 5335
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Post by Conor »

I wouldn't say easy, but there is a way (possibly two). :)

Without Bookpedia running, make a backup copy of the info.xml file located in the data folder (~/Library/Application Support/Bookpedia) and then open the original info.xml file in a text editor that can handle regular expressions such as TextWrangler with "Use Grep" checked in the find panel.

Look for:

Code: Select all

<key>Author</key>\r\t\t\t<string>"(.*)"</string>
replace with:

Code: Select all

<key>Author</key>\r\t\t\t<string>\1</string>
Post Reply