want to open .ai file in illustrator using javascript
Hi.
i want to open a .ai file in illustrator using javascript.
1.my file structure is like this.
2.added script in main.js
the code above the function open_image is developed before and i have added this function atlast.
3. code inserted in hostscript.jsx
in the above file i have inserted the function openfile
4. now in html
<img ng-src="data:image/png;base64,{{item.imageByte}}" onclick="open_image({{item.aIimagePath}});" class="hover" alt="..." data-toggle="tooltip" data-placement="top" title={{item.aIimagePath}}>
that is a image and upon clicking the image i need to open that ai file. and the item.alimagepath contains the path of the .ai file.
upon executing this an error occured stating that anonymous function.
could you please help me with this issue or how to open an .ai file.
