Use the rulers and values in the Control palette to judge the size and placement of the text frame ( Figure 17a). To create a rectangular text frame, select the Type tool on the toolbox. You can, however, draw text frames of any shape, and you can use the master text frame you specify in the New Document dialog box. Most of the text you see in an InDesign layout-headlines, articles, figure captions, ad copy-is contained by invisible, rectangular text frames. In this chapter you'll learn how to create text frames and type paths, and then how to add, format, and edit text. For word processing, InDesign provides a story editor, spell check features, and search-and-replace functions. InDesign also provides expert options for setting tabs and creating bulleted and numbered lists. When it comes to formatting text, you have a variety of options for applying character and paragraph formats, including styles for automated formatting. Text frames and type paths can be linked (or threaded) to each other to flow text through a document. In InDesign, text is placed inside text frames or it flows along type paths, both of which can be any size or shape. Weird.InDesign can do everything from serving as your primary word processor to importing text from other programs to automatically applying specialized formatting. Now, it's not working from the command line. ![]() This code snippet may help your diagnosis. So, you CAN create classes within vbs (at least those run from the command prompt and from within InDesign) AND it seems to create the InDesign object just fine. Set myDocument = myInDesign.Open("C:\Users\Joel\_Template.indd") WSHShell.Run """C:\Program Files\Adobe\Adobe InDesign CS2\InDesign.exe""", 0, False Set WSHShell = CreateObject("WScript.Shell") The following script (saved as test.vbs) actually WORKS from the command prompt "cscript test.vbs": In the meantime, here's something for you. ![]() I installed Office 2007 before I installed Adobe InDesign CS2, but that shouldn't make a difference, as the type library was available in Office 2007 Excel for me to add to my references for that project, so I don't know. Ironically, when I "upgraded" my system from XP to Vista, it worked, but I was having all kinds of other problems (i.e., legacy code messing up operations in Vista, Vista refusing to update itself on occasion, etc.) so I formatted my machine and did a clean install. This is a brand new, fresh install of Vista. For some reason, I can't hit the InDesign scripting engine from ANY language or VBA hosting application outside of InDesign itself. Maybe they will help guide you in the right direction: If I am having trouble with it, then you can be sure others who have moved to Vista are! 0)īesides the Ruby script error dump above, check out the following screenshots of my attempts to connect within VB and C# 2005. Not enough storage? Same as out of memory? Maybe this error code will help? Any more ideas? Here's the call in Ruby: indesign = WIN32OLE.new("indesign.application") Not enough storage is available to complete this operation. Test.rb:49:in `initialize': failed to create WIN32OLE object from `indesign.application' (WIN32OLERuntimeError) I even tried to create an object from Ruby using WIN32OLE. If at all possible, I would rather not re-do the script as it is designed to run from within Excel, pulling data from numerous sheets, charts, etc. I don't know why I can't script this from a VBA host, though. ![]() vbs under the Scripts folder from within InDesign. I did try running a sample script to create an InDesign Object and then open a file, display the filename and then close the file, then quit InDesign. ![]() I have modified the permissions on the folders in the path to "Resources for Visual Basic.tlb" (in the C:\ProgramData folder).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |