This content has been marked as final. Show 25 replies
where did you try to search, that you had found nothing?
which version of InDesign ?
and before you start new thread - search forum first - same question was in last week ...
Uh, thanks for the dressing down, but I
search here and through Google and found nothing. I just searched here again for "Object Model" and found nothing. If I missed something, please direct me to it.
Which version of InDesign is a very important question.
If you're using a full version of VB (which you must be, given that you're creating a standalone application), then why not use the Object Browser? How, exactly, you do that depends on which version of VB you're using, and which version of InDesign you're using.
The InDesign Scripting Tutorial (at the InDesign scripting home page mentioned at the top of this forum) shows how to connect to the InDesign CS3 object model from VBA, Visual Basic 6, and Visual Basic.NET.
Thanks for the responses. I rarely use the object browser, so I didn't know how to use it for "external" applications. I thought it was more for viewing VB classes and such. I'll take a look at it.
I'm using VB5 and InDesign CS3 5.x
I'm still puzzled while this isn't documented somewhere. Does everyone use an object browser to find information that normally would be published?
I don't know how VB5 works, but when you add reference to InDesign and declare variable, for example:
Dim myInDi as InDesign.Application
then when you write somewhere "myInDi." - VB6 IDE give you context list with all methods and properties of InDesign application
here is link to AS/JS/VB CS2 reference and AS CS3 reference
here is link to CS2 ScriptingGuide - 20MB ;)
I remember that was page with InDesign Scripting PDFs on adobe site - but now all links are broken ... somebody in Adobe - web admin - should check what is going on ...
Photoshop and Illustrator pages works fine:
somebody forgot to add links to scripting section in InDesign page:
Keith wrote: "I'm still puzzled while this isn't documented somewhere."
It is documented somewhere--in the Object Browser. The Scripting Tutorial (the most basic form of InDesign scripting documentation) directs you there.
re: "Does everyone use an object browser to find information that normally would be published?"
Yes. I used to publish an enormous PDF of the information presented in the Object Browser, but found no one used it. Our resources for producing the scripting materials are...well, I think calling them "shoestring" would be an exaggeration.:-) So I did away with the PDF version. Writing more examples and improving the tuturial content in the Scripting Guide seemed like a better use of my time.
> I used to publish an enormous PDF of the information presented in the Object Browser, but found no one used it.
I still use the PDF from the previous version. Search is far faster. I also like
being able to page through the docs.
> Our resources for producing the scripting materials are...well, I think calling them "shoestring" would be an exaggeration.:-)
Just one more time then.
Ole, how about making this one stick? It seems as popular as when I made it, about a year ago! (That is, unless you know something about CS4 that I don't. Hyperlinked HTML help, anyone? (hint) )
I have it downloaded. I just haven't done any development heavy enough to need
that level of docs recently, but I do have it at my fingertips.
Try this site: http://indesign.objectsdefined.com/adobe/indesign/CS3/default.htm
Thanks for all the help! I was able to view ID in VB's object browser (although the sites that were mentioned are sweet alternatives). It's still a bit clumsier than seeing a hierarchical model and I have to guess at the functionality of a lot of the objects, but I've been able to figure out nearly everything that I need to so far.
The one thing I haven't yet figured out, is how to close an open document that has changed WITHOUT getting the Save dialog. I thought that forcing the "Saved" property might be the answer, but it's read-only.
The "brute force" approach of course is to just call the save method. But I only want to close and delete the open document, so saving it first is superfluous and takes extra time unnecessarily.
Once I'm done here, I'll share the code for fitting graphics, deleting pages, and close open documents by name, for anyone else who's struggling with automating through VB.
Sub Close([Saving As idSaveOptions = idAsk], [SavingIn], [VersionComments], [ForceSave As Boolean = False])
Member of InDesign.Document
Close the Document / Saving: Whether to save changes before closing the Document / SavingIn: The file in which to save the Document as File (String) / VersionComments: The comment for this version as String / ForceSave: Forcibly save a version
Const idAsk = 1634954016 (&H61736B20)
Member of InDesign.idSaveOptions
Displays a prompts asking whether to save changes.
Const idNo = 1852776480 (&H6E6F2020)
Member of InDesign.idSaveOptions
Does not save changes.
Const idYes = 2036691744 (&H79657320)
Member of InDesign.idSaveOptions
I have chm Version Of jongware's html. maybe someone (or jongyare) Wants To Host it.
Indexed and full text Search .chm for windows (and mac with third party app) uploaded to
Let me know if there are any problems
Hey, that's not too bad -- it looks great. (Exactly like my HTML, ;-) ) And it's just over 1.5 Mb. And it's just a single file.
Now I can finally do a proper free text search, without being bothered by HTML codes... Oh bugger, in my Help Viewer (HTML Help Control Version 5.2.(lotsa meaningless digits)), the Contents tab work, but Index and Search do not. It seems Search
look up the correct pages, but selecting a page displays a "This program cannot display the webpage" page. Is that normal? :-D
I Work On Windows And Don't Know Too Much About Mac. But Searching Leads me To xchm app Open Source That Seems To Have Working Search.
Or arCHmock Hosted On Google Seems To Have Very Good Features.
>I Work On Windows ...
So do I! The HTML Help Viewer is the one that came with Windows XP SP2, and it's the default (and only) viewer for CHM files.
I'll check at home, I have a different setup there.
Sorry I Didn't Know 48 Has A Name. OK I Duplicated The Problem On Other Computer. I'll Attempt To Fix it.
OK I fixed it now and deleted the old link. The new link is
let me know either way thanks.
Sweet! I'm going to use this one
of my own version! (What better credentials could you get?)
Its Your Work. I Only Put In About Three Hours Most Of it On The Index. But Thanks For The Compliment, At Least My Work Was Not For Nothing.