Script works manually, but not at startup

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
cjones
Posts: 1
Joined: July 2nd, 2007, 4:33 pm

Hi everyone!

I am new to this site, but have a question already! I want a script that will automatically set the watch folder for After Effects 6.5 Rendering Engine upon startup. This is what I came up with:

//SetWatchFolder.jsx
//An After Effects 6.5 Render Engine Javascript

//Placed in the startup folder, sets the Render Engine
//Watch Folder to RenderWatch


var myWatchFolderName = "~/Desktop/RenderWatch";
var myWatchFolder = new Folder(myWatchFolderName);

while ( !Folder(myWatchFolderName).exists ) {
myWatchFolder = Folder.selectDialog("Select Watch Folder","~/Desktop");
}

app.watchFolder(myWatchFolder);


THE PROBLEM is that the script runs perfectly when launched manually (Run Scripts), but does not work when placed in the Startup folder (which is really the whole reason I want the script).

When launched during startup, the Watch Folder window opens, but the television set does not have any motion and projects placed in the watch folder do not trigger a render. The javascript debugger does not launch, nor do I receive any error messages.

Any ideas as to why this might be?

Thanks for the advice (and the site!)

Christopher Jones
Title Graphics
The New Post Group / iO Film
Post Reply