!!!! strange result !!!

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
msongz
Posts: 7
Joined: January 9th, 2011, 9:45 am

my ae project named "the project"

and run script :

app.project.file.name

the result is :

the%20project

now how can I fix this issue that result :

the project

?

April 10th update:

below is the part of render and email.jsx:

Code: Select all

var projectName = "Unsaved Project";
			if (app.project.file) {
				projectName = File.decode(app.project.file.name);
			}
			// Can't have bare LF in email, Always put \r before \n or some servers will die.
			var myMessage = "Rendering of " + "<"+ projectName + ">"+ " is complete.\r\n\r\n";
and email content is :

Rendering of <`}.aep> is complete.

what is problem cause?
Last edited by msongz on April 10th, 2012, 6:47 am, edited 1 time in total.
msongz
Posts: 7
Joined: January 9th, 2011, 9:45 am

somebody help?
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

This will fix it:

File.decode(app.project.file.name)
msongz
Posts: 7
Joined: January 9th, 2011, 9:45 am

Paul Tuersley wrote:This will fix it:

File.decode(app.project.file.name)

wow!that work!

and it also work in Chinese project name!!

thanks!!!
Post Reply