This is a long shot, but is there a possible way to store a JavaScript (or any sort of executable code) within an Adobe Illustrator file?
The reason I'm asking this is because I'm currently trying to automate the process of importing render results from Autodesk Maya. The concept is that as soon Maya is done rendering all frames/layers, a MEL script could generate a file that Illustrator could open and run commands found in it, directing illustrator to the render results and start importing them.
The original idea was to give a system command via MEL script to launch Illustrator straight away after rendering completion and somehow start the process. But since this automation is for not-so-tech-savvy people, an application calling for the launch of another one would be rather frustrating and maybe confusing.
Having Maya generate a file that can complete the task when the user opens it is a much preferred solution. Give more control to the user and does not overload a system that is already busy with more application calls.
Think of it like a .mel file, where upon opening, it launches the needed application (Maya) and when the application is ready, carries out the commands included (MEL). Is there a way to do that with Adobe applications, Illustrator in particular, where a file automatically is recognized as an Illustrator file (eg. .ai), launches application and then runs code contained in it (eg. JS)?
ANY help is welcomed, but I would like to avoid applescripts/VBS as they are platform specific and can be difficult to manage between Mac/Windows.
Thanks.