Sg2.9
illegal character at Scriptog...
Recent RSS
illegal character at Scriptographer\Line.js:1
From:  Matt Pleasant
Date:  4. February 2012, 14:35

I created a new script as the instructions showed. I then took your message prompt tutorial and copied it Verbatim to a new script in the Myscript section that Scriptographer created.

When I run your code that is installed in the standard Scriptographer folders, it works fine.

However, after I copied and pasted the same exact code into a new script, I get the following error.

illegal character at Scriptographer\Line.js:1

I've only come across this question about 3 times in your help section, but no answer. I'm using CS5 and Windows 7 32bit.

Here's the code:

// First we define the dialog components
var components = {
firstName: { type: 'string', label: 'First Name' },
lastName: { type: 'string', label: 'Last Name' },
email: { type: 'string', label: 'Email Address' }
};

// Now we bring up the dialog
var values = Dialog.prompt('Please Enter Your Contact Details', components);

if (values) {
// Results were returned, so let's say hello to the user:
Dialog.alert('Hello ' + values.firstName + ' ' + values.lastName
+ ', your email address is: ' + values.email);
}

Re: illegal character at Scriptographer\Line.js:1
Date:  4. February 2012, 16:13

I've experienced that sometimes copy/paste text into a script from a webpage will mysteriously cause errors. I once copied a bunch of numbers and had to manually re-type them in order to get it to work EVEN if there wasn't ANY wrong with them. I guess the formatting of the text somehow screws it up.

Re: illegal character at Scriptographer\Line.js:1
From:  Matt Pleasant
Date:  4. February 2012, 16:32

One user had suggested not using the ESTK to edit the script. I started editing it in Notepad and it started working. Must be something with the communication between Scriptographer and ESTK. Althout it would be nice to get them to work, as I'm new to Javascript and I need the debugging tool.

Thanks for the response,
Matt

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
The Allineatorium 15.05.14