I having issues where when I click on a file it launches illustrator but then I get prompted with file not found. I then open illustrator and browse to the file and am to open it....any ideas? This one has me stumped.![]()
What operating system? If it's Windows, you may simply need to adjust your file associations. In most such cases a file extension is assigned to 2 or more programs and the file handler operation can't make sense of it. So open a folder, go to Extras --> Folder options --> File Types and check. also note, that sometimes spaces, special characters or long file names can cause such issues, so naming your files differently in the future may also acvoid the problem.
Mylenium
It's not weird. In fact the file may be tied to AI in multiple ways, once with the "Open" command, once with "Edit". Since they are basically the same, the program may still confuse them. In addition, the underlying DDE strings could be different from the actual command so Illustrator.exe %1 in fact may be Illustrator.exe %1 %2 -o under the hood, which likewise could throw things of track. Your mail program may simply call the correct procedure directly. Anyway, these things should be possible to fix.
Mylenium
I think I found the problem. I am using Illustrator CS5 (15.0.02) running on MacOS (10.7.5).
In my script, Folder.selectDialog function was returning "file:///Users/alex/Apps/temp", when I selected the temp folder from the dialog box. I want the function to return "/Users/alex/Apps/temp". If I hardcode the path (as shown below), the javascript runs fine.
// Select the source folder.
//sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files', '~' );
sourceFolder = Folder("/Users/alex/Apps/temp");
North America
Europe, Middle East and Africa
Asia Pacific