Need some support with syntax from FDK to ExtendScript : Getting FontFamily
Hi there, I am using some scripts to traverse my text and add tags to specific characters when they use a given font. This works fine if the PlatformName is known, but every now and a while these seem...
View ArticleRe: Need some support with syntax from FDK to ExtendScript : Getting FontFamily
The equivalent to the FDK's (and FrameScript's) Session is the app. So this gives you the Font Family Names: app.FontFamilyNames Rick
View ArticleRe: Need some support with syntax from FDK to ExtendScript : Getting FontFamily
The FontFamily property is an index into the list of FontFamilyNames. For example, you can tell the font that is used by the paragraph containing the insertion point with this: #target framemaker var...
View ArticleHow to know if an object is a File or a Folder ?
Hello again, I am looking for an easy method to determine whether a File or Folder object point to an actual file or to a folder. Both objects seem to have the same set of properties, except the File...
View ArticleRe: How to know if an object is a File or a Folder ?
Hi Jang, This from Chapter 3 of the JavaScript Tools Guide: There are several ways to distinguish between a File and a Folder object. For example:if (f instanceof File) ...if (typeof f.open ==...
View ArticleChanging one font into another using extendscript
Hi there, I've been trying to replace one font by another, but no success , and it seems hard to find some good examples on how to do this, though it looks to me like something rather common to do with...
View ArticleRe: Changing one font into another using extendscript
Can you be more specific on what you want to do? Do you want to change fonts for a particular paragraph, paragraph format, or character format? You can certainly work with font and weight properties...
View ArticleRe: Changing one font into another using extendscript
Thanks Rick, In essence it doesn't matter where it's used, if it's used somewhere in my document I want to have it changed. Let's say I am using Helvetica today in parts of my document, could be my...
View ArticleRe: Changing one font into another using extendscript
FYI, you can also do font changes globally using the Update All capabilities of the designers with other properties set to AsIs. This assumes that overrides haven't been used to change the fonts anywhere.
View ArticleRe: Changing one font into another using extendscript
Thanks Arnis, I'm aware of it, but I do have overrides and it would force me to go through the designers manually. Therefore I want to do this with scripting (if possible) so it can be one step in a...
View ArticleRe: How to know if an object is a File or a Folder ?
If you simply want to check, if the file/folder object you created points to a file/folder on your computer, maybe this might work: if (File.exists) ...orif (Folder.exists) ... Jürgen
View ArticleHow do I convert Word to Frame 7.2, and replace the styles with other tags?
How do I convert Word to Frame 7.2, and replace the styles with other tags? E.g. Normal > Body1, Heading 1 > H1, etc.
View ArticleRe: How do I convert Word to Frame 7.2, and replace the styles with other tags?
There are a couple of thrid-party tools that can do this for you. See: Silicon Prairie's Paragraph & Character Tools: http://www.siliconprairiesoftware.com/Products.htmlCudspan's Template Mapper:...
View ArticleRe: How do I convert Word to Frame 7.2, and replace the styles with other tags?
Thanks Arnis, I'll try them out. CheersShaul Glickman054 841 2176 Date: Thu, 4 Apr 2013 09:42:54 -0700From: forums_noreply@adobe.comTo: shaulmeir@outlook.comSubject: Re: How do I convert Word to...
View ArticleKeyboard shortcuts in custom commands
Hi. I am trying to specify Control+, as a keyboard shortcut in a custom FrameMaker command defined in an ExtendScript script. I am using this: var cmd1 = DefineCommand(1, "LinkToHeadingStepOne", "L1",...
View ArticleAdding a folder to a book
Hi, I am trying to add a folder to an empty book, which I have as the ActiveBook. This does not work: #target framemaker var book = app.ActiveBook; var folder = book.NewBookComponentOfTypeInHierarchy...
View ArticleRe: Adding a folder to a book
OK, further information about this: apparently NewBookComponentOfTypeInHierarchy only works with structured books. So I am able to do this: #target framemaker var book = app.ActiveBook; var elemLoc =...
View ArticleRe: FDK - Add custom modeless dialog to workspace
Well, I finally figured it out with some more experimentation. I think maybe the answer is in the FDK docs, but it was elusive to me and my initial experiments failed for some reason. Pasted below is...
View ArticleTable to text
I need to convert all Note, Caution, and Warning tables to text. These tables only have one row. So my concept is:Search through the active FrameMaker document for a tableIf the table has only one row,...
View ArticleBoolean Condition Expressions
Unlike Condition Formats, Paragraphs, etc., Boolean Condition Expressions are apparently not stored in a linked list. In ExtendScript, you can get a list of the Expression names with this: var doc =...
View Article