Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Auto replace text with an object

Return to Member Forum

  • Author
    Posts
    • #93419
      Anonymous
      Inactive

      Hi!

      I have a text frame, and I want to make the following:
      1. When I insert “0”, the character will be replaced automatically with object one (like in the attached image)
      2. When I insert “+”, the character will be replaced automatically with object two (like in the attached image)
      3. When I insert “-“, the character will be replaced automatically with object three (like in the attached image)

      The image:

      View post on imgur.com

      How can I do this?
      I have Windows 7 & Indesign CS5.5

      Thanks!

    • #93426
      Kathy Cote
      Member

      Hi,
      You can do something like that with typinator:
      https://www.ergonis.com/products/typinator/

      you have to set your default settings. Exemple: when you tap “pictogrey”, it will be replace with your image. You can tell that you want it only for Indesign and not for all software.

      ??

    • #93428
      David Blatner
      Keymaster

      If those graphics are characters in a font, you could easily do this with GREP styles in InDesign (just change the font using a character style).

      Otherwise, there are scripts and more manual ways to do it, such as:
      https://creativepro.com/find-text-change-to-graphic.php
      and these scripts:
      https://www.rorohiko.com/wordpress/2014/06/24/peoples-choice-indesign-script-pepcon-2014-replace-words-images-vice-versa/
      or
      https://www.siliconpublishing.com/about/about_resources.html

    • #93429
      Anonymous
      Inactive

      Thanks a lot!

      The second script suits fine for me!

      Do you know how could I make that script run automatically when opening a specific document?
      I don’t know much about code, so I tried to put this JSX in the ‘startup script’ folder to activate the ‘swimmer script’ when I’m opening document called ‘Pas_yomi.indd’, but the ‘swimmer script’ don’t run. you can help me, please?

      This is the JSX:

      #targetengine “onAfterOpen”
      main();
      function main() {
      var myApplicationEventListener = app.eventListeners.add(“afterOpen”,myfunc);
      }

      function myfunc (myEvent) {
      var doc = myEvent.parent;
      if ( doc.name == “Pas_yomi.indd” )

      alert( “it worked !” );
      }

      Thanks a lot!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Forum Ads