Copy link to clipboard
Copied
My colleagues and I import our Visio files into FrameMaker 10 via the following mechanism: File > Import > Object... > Create from File (with Link checked). We do this because, for us, the benefits of object linking and embedding outweight the pitfalls. In order to institute and automate a graphic file naming convention, I want to be able to do one of the following using ExtendScript:
Any help would be greatly appreciated.
Thanks, Paul
Copy link to clipboard
Copied
Hi Paul,
I tried doing something like this years ago with FrameScript, but found out that the OLE stuff is not exposed to FrameScript or the FDK. So it is probably not exposed to ExtendScript either. When you query an OLE graphic's InsetFile property, it returns a null string, the same as a graphic Imported by Copy would. As far as I can see, importing as an OLE object is only available through the Windows FrameMaker interface.
Rick
Copy link to clipboard
Copied
Thanks for the response Rick! The odd thing is that using the Import() method after renaming the original object's associated .vsd file does work sometimes (but not often). I can't pin down why it works sometimes and not other times. It's too bad this approach does not appear to be viable.