Help with script please
I am trying to get my write to file script to number each entry by increments of 1 starting at a number I give it.
I have gone over the addToVariable documentation, with no success.
It will look something like this:
Instead of:
NAME ADDRESS CITY STATE
NAME ADDRESS CITY STATE
It will write to file:
1 NAME ADDRESS CITY STATE
2 NAME ADDRESS CITY STATE
..and so forth, but depending on what number I would like it to start at.
This is probably very simple, and probably something I am completely looking over like the rest of the problems I have had lol.
I very much appreciate any help given. Also, so far this product is wonderful. Good work!
Thanks in advance!
Help with script please
I guess was the captial "A"... got it working now.
Help with script please
Ok this is what I have.
First off, in my script that defines variables and invokes the scraping process, I have added the line:
runnableScrapingSession.setVariable( "ENTRY_NUM", "1" );
Next, I created a small script with the line:
session.AddToVariable( "ENTRY_NUM", 1 );
This script I made with the above code is ran after my write to file script has ran, after each pattern application.
I have tried doing this many different ways, and I keep getting this same error:
[quote]An error occurred while processing the script: Add to variable
The error message was: Error in method invocation: Method AddToVariable( java.lang.String, int ) not found in class'com.screenscraper.scraper.ScrapingSession' : at Line: 2.[/quote]
What can I be doing wrong here?
Thanks in advance!