How can select indesign Font Name in the doc file

Hi all

How to select fonts for the current document in the doc file.

See my incomplete encodings.

var myfont = app.activeDocument.pages.everyItem().textFrames.everyItem().getElements();


for (i=0; i<myfont.length; i++)
{
if    
}





Try this,

var doc = app.activeDocument;
var fonts = doc.fonts;
var csv = new File("c:/test.csv");
var str = "";
for(var i =0;i

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    At the top right of the menu bar shows the current user who is logged in and allows quick change of user accounts.

    You can disable the display of menu bar in system preferences > users and groups. Or order just drag it out of the bar.

  • How can I put my name at the bottom of my outgoing mail?

    Original title: Hot Mail

    How can I put my name at the bottom of my outgoing mail without entering each time?

    Hi Lance,.

    Are you facing issue while using the account Hotmail on Mail app?

    You must change the options to add outgoing signature is automatically sends in the settings of the program by e-mail.

    If you use the Mail application in Windows 8, you can see the article to change the settings for Mail app to use email signatures.

    Settings that apply to all accounts

    If you try to edit while using Hotmail like webmail, you must change the parameters into account Hotmail itself.

    You can check the thread and check:

    How can I add an AutoSignature to a Hotmail address?

    You must post your query in the Forums Windows Live itself.

    Windows Essentials Forums

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • I bought the design Adobe CS6 and premium and I need to download my product on my new laptop computer, however I don't have the CD came it with my purchase. How can I download my product without the CD files

    I bought the design Adobe CS6 and premium and I need to download my product on my new laptop computer, however I don't have the CD came it with my purchase. How can I download my product without the CD files

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • How can I add a name to the face?

    In Photos 1.5, El Capitan 10.11.5, how can I add a name to a face that is not recognized by the software of pictures (because it is cut by the framework)?

    -Gil

    Oops!  I found this: Ctrl-click on the editable version and pops up a menu... Get Info has a button "Add Faces".

  • How can I add my name to the company for my photos?

    I'm trying to add the name of my company in some photos that I'm editing, but I have not fully out of the software, is it possible to add the name of your company?

    thepoet247 wrote:

    I'm trying to add the name of my company in some photos that I'm editing, but I have not fully out of the software, is it possible to add the name of your company?

    Yes.

    Use the text tool. You can select the font, font size, color and drag it to the position.

    Note that the text comes on a separate layer. Use the move tool to position the text.

    If you have a company logo, this can be applied as well.

  • HOW CAN I CHANGE MY NAME FROM THE LAPTOP

    MY LAPTOP IS NOW smiley52 not ticktock

    Hello, tommyhaines,

    To change the name of the notebook, open the Control Panel. Select system and security. Then select System. Under the computer name, domain and workgroup settings, on the right, select change settings. In System Properties , on the computer name tab, select change. Then Type in the preference name you want (you can also change the computer Description). After you have finished, click OK.

  • How can I add a name to the XYZ author permanently

    Hello everyone,

    How can I add information author name XYZ permanently in InDesign (Alt + Shift + Ctrl + I) file > Description > author for each InDesign file.

    Its can save my little time.

    I use windows 7 and InDesign CS3.

    See attachment for more details.

    Thanks in advance

    Kind regards

    Siva

    Sample_2.png

    var doc = app.activeDocument;var md = doc.metadataPreferences;md.author = "XYZ";md.documentTitle = GetFileNameOnly(doc.name);
    
    function GetFileNameOnly(myFileName) {     var myString = "";     var myResult = myFileName.lastIndexOf(".");     if (myResult == -1) {          myString = myFileName;     }     else {          myString = myFileName.substr(0, myResult);     }     return myString;}
    
  • How can I get my name from the access point?

    Since I bought a modem Arris 228 G and spent my 2 wireless, printers Canon WIFI unable to connect at Optimum!

    Canon said to contact my router creator (Apple Airport Extreme) for the name of the access point get return wireless, WI - FI printers.

    Help, please.

    W.W.

    (Mac Pro 10.6.8)

    The name of the access point is simply the name of the wireless network that provides AirPort Extreme.

    You can see the name of your wireless network by clicking on the WiFi icon at the top of the screen of your Mac and by checking that the name appears.

    There will be a check mark next to your wireless network name.. which is also known as a wireless access point.

    It would be the same name that you had before... unless you have changed some settings on the AirPort Extreme.

  • BlackBerry Smartphones how can I display my name during the SENDING of SMS on 9300?

    It seems to have ticked all the boxes, I can find regarding 'Full name' but my 9300 3 still insists on sending messages just text using the text number and displays NOT my name as the sender of the text - why?  My friends need to know that the text is of me!

    I have no problem with email - which contains my e-mail address, what has my name in it.

    Grateful for any help here because I am a new user.

    This is not possible - your friends need to have your number in their address book with your name to show him from you, when they receive a text.

  • How can I place an indd - just the text file?

    Hello.

    This is a snippet of my code.

    var tfiImport = File("C:/Users/Me/Documents/YS/Exported Stories/YS_full_pg.indd");
            tfYS[0].insertionPoints.item(-1).place(tfiImport);
    
    

    I'm trying to import an indd file in a pre-existing text block. The framework becomes excess, because the indd file is placed in actual size.

    The indd is a text file with different styles applied. I just want retrieve this text with styles and place it in my text, auto to flow if necessary.

    How can I do?

    Any help would be appreciated.

    Hi SK,

    you would open the InDesign document and duplicate the text at your insertion point.

    Both documents are open.

    The insertion point where you want to "place" the formatted text is selected.

    There is at least a block of text with a paragraph in the document where you want to duplicate.

    Example:

    var targetDocument = app.documents[0]; // The active document
    var sourceDocument = app.documents[1];
    
    var targetInsertionPoint = app.selection[0].insertionPoints[0];
    
    sourceDocument.textFrames[0].paragraphs[0].duplicate(LocationOptions.AFTER,targetInsertionPoint);
    

    Example:

    To duplicate the whole text of a story where you know a block of text of this story:

    sourceDocument.textFrames[0].parentStory.texts[0].duplicate(LocationOptions.AFTER,targetInsertionPoint);
    

    Search for the text in the documentation for DOM object and its methods.

    Adobe InDesign CS6 (8,0) object model JS: text

    Also app.open () method:

    Adobe InDesign CS6 (8,0) object model JS: Application

    Uwe

  • How can I copy unchanged object of the Flash file in my new work file.

    Hello. I changed an entry in my Flash file layer moving around various elements within the layer. I still have the original file, too. I want to put it back exactly as if it was in the original file. How can I replace the element of sprite has changed since the new file with the original of the old file?

    Thanks for any help you can give.

    Best - Catherine

    I did a lot of changes over time, and I realized only there is a better way to do it. I would therefore delete this "sprite" and put the old one back in.

    Drag your old your old library flash sprite to your new flash library.  Click on your new sprite on stage and in the properties panel, click swap.  Select the old sprite.

    Also, how would I add a blank layer of the flash file?

    in your editing panel, at the bottom, to the extreme a l' extreme gauche left is a new layer icon.  Click to add a layer.

  • How can I embed fonts in MS Word doc sent to somene

    Hi all.  I installed and used a font that I downloaded on the Internet.  Everything is good.  Documents look great, and normally I create PDF files from Word documents.  But, when I send a Word Doc (not PDF) that has my custom font (Ubuntu, it's the police anyone is wondering) is not "coming through" to the recipient.  End result is that the recipient opens the Doc they can't read the text.  I had described me as looking like a cursive, but unreadable font.

    El Capitan

    Word for Mac 15.22.1

    I saw something "Save using an embedded font" and a checkbox when registering, but I don't see that in my version of Word for Mac.

    Any thoughts?

    Thanks a ton.

    Word does not incorporate fonts. You will need to send it with the document, or save it in PDF format and send that.

  • [SOLVED] [Firefox [19] How can I get Firefox to display the PDF files?

    When I first installed Firefox 19, the PDF Viewer worked so well that I uninstalled Adobe Reader. Today, after an update system, Firefox stopped display local PDF. If I open a PDF file directly from a Web site, the internal PDF Viewer active and the PDF file is displayed correctly. However, if I open a PDF to my hard drive, Firefox just displays a mass of confused characters and the internal PDF Viewer does not work.

    Here is a screenshot of the behavior: http://i.imgur.com/5Of0kUH.png

    I tried to start in safe mode and the behaviour persisted. I really hope there is a fix for this, because the use of Firefox to view PDF files is really much better my workflow.

    EDIT - SOLUTION IN RESPONSE

    SOLUTION

    1. In the terminal, type: # firefox - ProfileManager
    2. Create a new profile.
    3. Start with the profile said.
    4. Fixed. Internal PDF Viewer now works in a profile.
  • How can I change my name in the e-mail settings?

    I have a flame 2.2.0.0 running and in the e-mail settings, my name is misspelled. I can't understand how to change it. When I look at the settings, I can activate "Show notification for new messages" or turn off, I can "Tap to change" my signature. But I see no way to change my name. I tried a prolonged pressure, no dice.

    I have to start all over again?

    FWIW, that doesn't seem to be the case. My misspelled name certainly appears in outgoing messages.

    So... Yes. I have to start over.

    It is a documented bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1122884#c1

Maybe you are looking for

  • 'Upgrade' of Photos?

    When it goes into pictures for iPhotos for Mac mac I have lost all my individual photo comments. Is there anyway to restore or return to iPhotos still with my comments?

  • Not enough space

    We have an iMac and MacBook 2 backup on a capsule 3 TB. It now says not enough space. Should it not be automatically delete older backups to free up space. I have to start over and do a back up of all three computers?

  • How to upgrade XP Professional service pack without internet access?

    I have a laptop Acer 1355 LC has never been connected to the internet and that is running Service Pack 1, so it has never been updated. I recently bought software that requires a MS later. How is a possible update without an internet connection, ther

  • Virus of the PRC in the center of the action

    I have a problem when the center of the action, said he finds a virus from the PRC. When I tried to use the norton antivirus he found nothing and I used microsoft's malicious software removal tool but were not found. Is - this false positive?

  • COM Surrogate has stopped working problem has caused the program to stop working and windows will close the program

    Impossible to uninstall anything without this message to come. solution is to download the micorsoft updates that are important and I did, and the message always appears