• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Help with script issue

Community Beginner ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

The script below utilizing a “small list” .txt document works correctly. When utilizing a “big list” .txt document, the price changes are incorrect. Example (Using the BIG LIST):

$14.99 should change to $24.99, but changes to $36.99

$6.99 should change to $11.99, but changes to $19.99

What is strange is those column pairs don't even exist in the “big list” .txt file. The script seems to randomly change prices to whatever price.

Below the script are the two .txt files I'm using for testing. Anyone have any ideas what may be happening?

Array.prototype.unique = function() { 

        var res = [], k, i, loop; 

        loop: for (k = 0; k < this.length; k++) { 

                    for (i = 0; i < res.length; i++) 

                        if (this == res) continue loop; 

                    res.push(this);    

                    } 

        return res; 

        } 

    // 

    var 

        myDoc =app.documents[0], 

        myFile = File.openDialog("Select a TXT file to proceed","*.txt",false), 

        mySource = [], cLine, cCol1, cCol2; 

    //    

    if (!myFile) exit(); 

    /// 

    app.findTextPreferences = app.changeTextPreferences = null; 

    //    

    with (app.findChangeTextOptions){ 

        includeLockedLayersForFind = true;  

        includeLockedStoriesForFind = true;  

        includeHiddenLayers = false;  

        includeMasterPages = true;  

        includeFootnotes = true;  

        caseSensitive = false;  

        wholeWord = true;  

        } 

    // 

    myFile.open('r'); 

    do 

        mySource.push(myFile.readln()); 

        while (!myFile.eof); 

    myFile.close(); 

    // 

    mySource = mySource.unique(); 

    // 

    while (cLine = mySource.pop()) { 

        cCol1 = cLine.split("\t")[0]; 

        cCol2 = cLine.split("\t")[1]; 

        app.findTextPreferences.findWhat = cCol1; 

        app.changeTextPreferences.changeTo = cCol2; 

       var myChanges = myDoc.changeText(); 

        } 

SMALL LIST (WORKS):

$14.99

$24.99

$6.99

$11.99

BIG LIST (DOESN’T WORK CORRECTLY):

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$2.29

$4.50

$24.99

$36.99

$14.99

$24.99

$14.99

$24.99

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$18.99

$29.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$14.99

$24.99

$14.99

$24.99

$59.95

$89.99

$59.95

$89.99

$64.95

$99.99

$64.95

$99.99

$64.95

$99.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$11.99

$19.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$3.99

$6.99

$3.99

$6.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$4.59

$7.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$6.29

$9.99

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$3.69

$6.99

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$2.99

$4.99

$3.49

$6.99

$3.49

$6.99

$4.99

$8.99

$5.99

$9.99

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$11.49

$19.99

$11.49

$19.99

$11.49

$19.99

$11.49

$19.99

$12.49

$19.99

$12.49

$19.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$21.99

$34.99

$21.99

$34.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$12.49

$19.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$17.49

$27.99

$17.49

$27.99

$17.49

$27.99

$17.49

$27.99

$17.49

$27.99

$7.99

$13.50

$7.99

$13.50

$9.99

$15.99

$9.99

$15.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$10.99

$16.99

$21.99

$34.99

$39.99

$59.99

$19.99

$32.99

$19.99

$32.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$3.29

$6.99

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$4.29

$7.50

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$8.49

$13.99

$11.49

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$1.79

$3.50

$1.99

$3.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$7.29

$12.50

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$6.29

$9.99

$6.29

$9.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$7.29

$12.50

$7.29

$12.50

$7.49

$12.50

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$9.99

$15.99

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$4.49

$7.50

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.49

$8.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.49

$10.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.99

$13.50

$7.99

$13.50

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$24.99

$36.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$8.99

$14.99

$8.99

$14.99

$8.99

$14.99

$8.99

$14.99

$8.99

$14.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$9.99

$15.99

$13.99

$22.99

$9.99

$15.99

$9.99

$15.99

$6.99

$11.99

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$7.99

$13.50

$8.99

$14.99

$8.99

$14.99

$8.99

$14.99

$8.99

$14.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$13.99

$22.99

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$1.99

$3.50

$24.99

$36.99

$8.99

$14.99

$8.99

$14.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$12.99

$19.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$5.99

$9.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$32.49

$49.99

$33.49

$49.99

$33.99

$49.99

$34.99

$52.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.59

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$8.49

$13.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$24.99

$36.99

$7.49

$12.50

$7.49

$12.50

$14.99

$24.99

$8.49

$13.99

$8.49

$13.99

$8.49

$13.99

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.49

$4.75

$2.59

$4.75

$2.49

$4.75

$2.49

$4.75

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$7.49

$12.50

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$6.99

$11.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$2.99

$4.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$2.99

$4.99

$13.99

$22.99

$13.99

$22.99

$14.99

$24.99

$14.99

$24.99

$14.99

$24.99

$15.99

$25.99

$15.99

$25.99

$15.99

$25.99

$15.99

$25.99

$15.99

$25.99

$20.49

$32.99

$20.99

$32.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$11.99

$19.99

$15.99

$25.99

$15.99

$25.99

$15.99

$25.99

$15.99

$25.99

$19.99

$32.99

$9.99

$15.99

$9.99

$15.99

$7.99

$13.50

$7.99

$13.50

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$4.99

$8.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.49

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$3.99

$6.99

$19.99

$32.99

$19.99

$32.99

$19.99

$32.99

$19.99

$32.99

$19.99

$32.99

$3.29

$6.99

$4.49

$7.50

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$5.99

$9.99

$6.49

$10.99

$6.49

$10.99

$3.99

$6.99

$4.49

$7.50

$5.99

$9.99

$6.99

$11.99

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

I guess you didn't not need to fill the whole list here

Anyway here is an attemps given that the prices are tabbed separated

i.e.

[initial price][tab][new price][carriage return]

[initial price][tab][new price][carriage return]

etc.

var main = function() {

  var doc = app.properties.activeDocument,

  mac = $.os[0]=="M",

  macFilter = function(f){

  return (f instanceof Folder) || /\.txt$/i.test(f.name);

  },

  winFilter = "Text files : *.txt;",

  filter = mac? macFilter : winFilter,

  txt = File.openDialog("Please choose TXT file", filter ),

  ftp  = app.findTextPreferences.properties,

  ctp = app.changeTextPreferences.properties,

  fctOpts = app.findChangeTextOptions.properties;

  if ( !doc ) {

  alert("you need an open document");

  return;

  }

  if ( !txt ) return;

  var data = getData ( txt );

  if ( !data.__count__ ) {

  alert("no data");

  return;

  }

  setFCPrefs();

  for ( prop in data ) {

  app.findTextPreferences.findWhat = prop;

  app.changeTextPreferences.changeTo = data[prop];

  doc.changeText();

  }

  app.findTextPreferences.properties = ftp;

  app.changeTextPreferences.properties = ctp;

  app.findChangeTextOptions.properties = fctOpts;

}

var setFCPrefs = function() {

  app.findTextPreferences = app.changeTextPreferences = null;

    //   

    app.findChangeTextOptions.properties = {

        includeLockedLayersForFind : true,

        includeLockedStoriesForFind : true, 

        includeHiddenLayers : false,

        includeMasterPages : true,

        includeFootnotes : true,

        caseSensitive : false,

        wholeWord : true, 

  }

}

var getData = function ( file ) {

  var ln, data = {}, sp, bp, a;

  file .open('r');

  while ( !file.eof ) {

  ln = file.readln();

  sp = ln.split("\t");

  bp = sp[0];

  ap = sp[1];

  !data[bp] && data[bp] =ap;

  }

  return data;

}

var u;

app.doScript ( "main();", u, u, UndoModes.ENTIRE_SCRIPT, "Change prices" );

HTH

Loic

http://www.ozalto.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Loic,

Your script changes some prices correctly, but other prices are randomly changed to a price that isn't even in the list .txt file.

Example: $4.99 should change to $8.99, but it changed to $14.99

I set up the .txt file like you requested:

[initial price][tab][new price][carriage return]

Here is a Dropbox link to the PriceList.txt file I'm using:

Dropbox - PriceList.txt

Any ideas?

Thanks, Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Have you considered that "$" is character that is being interpreted by InDesign GREP as the "End of paragraph" ?

Thanks Stefan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Stefan,

Not sure what your reply means. Should I drop the $ from the .txt file and then run the script?

Thanks,

MIke

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Stefan is probably right.

Replace

!data[bp] && data[bp] =ap; 

with

!data[bp] && data[bp] =ap.replace(/\$/g, "\\$"); 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Loic,

I did your change to the script:

Replace

!data[bp] && data[bp] =ap;

with

!data[bp] && data[bp] =ap.replace(/\$/g, "\\$");

The result example:

$21.99 should have changed to $34.99, but the script changed it to \\$52.99 (wrong price and added two back slashes before the price)

Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

I see the problem you have falttening instructions.

A > B

B > C

So once A is turner into B, it's later considered as being a B to be changed, not a former A not to change anymore. So I guess the script is just working fine conceptually. But you may have to help him by refining the search with text find options such a used style or whatever.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2017 May 12, 2017

Copy link to clipboard

Copied

LATEST

Hi Loic,

why not building the concept on a GREP find action looking for a $ followed by a number followed by a dot followed by a number?

Just an example that should be refined:

app.findGrepPreferences.findWhat= /\$\d{1,}\.\d{1,}/.source;

Then we loop the array of found texts and look up old and change to new price.

If the pairs old/new are unique we could do an associative array.

EDIT: Added (hit reply too soon):

if(found.contents in uniquePairsArray)

{

found.contents = uniquePairsArray[found.contents]

}

And we could also build a control structure, if a price could not be found.

Perhaps apply a character style for visually pointing this out.

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines