Move URL in the link text or the text at the end of the story. Also: tables

Hello everyone

I am currently working on a script which translates by Textile Markup InDesign-formatted text. It worked well for the most part, because it is really hard to do by FindChangeByList. However, some things are a bit more complicated than the others. Namely the URL in the text. Textile, all URLs are so similar. Let's say I want to make a link to Google. So I type this: 'Google':http://www.google.com happen Google. I can isolate the word and delete the URL of ["------"](.+?) [\\\"]:\\?\\S+ and substituting $1.] So far so good.

However!

It would be great, if the URLS are still in the text. Then I would be to have as follows: Google or that the word Google (or any what $1, really) is found in the text, then the link is added at the end of the text as a sort of "Sources"-paragraph thing. ". How is that possible? I can do by FindChangeByList? Because that would be cool, because then I would just need to run a script.

And here's a general question: How can I translate Textile-Tables in InDesign Tables formatting?

For reference, it would be a table with a row of a header.

|_. name | _. age | _. sex |

| Joan | 24. e _

| Archie | 29. m |

| Bella | 45. e _

Is this possible?

Thank you very much for your help!

Hello

Ok. If you can assume that $2, it's exactly a word ==> we could edit it above like this:

//...
mSource = mDoc.hyperlinkTextSources.add(mText[0].words.itemByRange(0,-2).texts[0]);
mDest = mDoc.hyperlinkURLDestinations.add(mText[0].words[-1].contents);
//...

Jarek

Tags: InDesign

Similar Questions

  • Follow the colors of changes does not when the story contains table

    Can anyone reproduce this problem/bug, or let me know if it's just my machine?

    Steps to reproduce
    1. Make sure that your Edit > Preferences > story editor a non-black text colors defined for the text added, deletedand moved text.
    2. Create the document and draw a text box
    3. Inside the text box, right click > fill with placeholder text
    4. With the cursor in the text box, turn on track changes and changes to show the range of track changes :
      TrackChanges.png
    5. Open the story editor with Ctrl/Cmd-Y
    6. Cut and paste, delete and insert a text.
    7. Confirm the colors appear in story editor as defined in step 1:
      StoryNoTable.png
    8. Now insert a table anywhere in the history. For me, all (bg fine rest) non-black text coloring disappears:
      StoryWTable.png

    Is this a bug in InDesign, or do something that I experience on my own machine? I was able to reproduce the issue in InDesign CS6, CC InDesign and InCopy CC on my Win7 Pro 64-bit machine.

    I would recommend the filing of a bug here report to ensure it is reported:

    Adobe - feature request/Bug Report Form

  • Move all of the URLS in the text for references

    Hello world

    I have an interesting little problem. Basically, I have a text in which all URLS are displayed in the format < URL > < URL > www.example.org and I want to spend these coins - preferably without the < URL > - tags to references. So I decided to do this and I got far enough. I can create empty notes for each instance of < URL >(.+?) < / URL > but then when I want to move the text, I'm stumped on how to define what text should be moved without losing the location of the note to the text. So here's what I have:

    href() {} function

    var curSel = app.selection [0];

    current selection is that the script is looking through

    var searchTerm = "< URL >(.+?). < URL > ';

    Search term such as variable to facilitate the eventual later use

    app.findGrepPreferences = app.changeGrepPreferences = null;

    Reset the search parameters

    app.findGrepPreferences.findWhat = searchTerm;

    Search searchTerm

    var result = curSel.findGrep (true);

    app.findGrepPreferences = null;

    for (var f = 0; f < result.length; f ++) {}

    f is defined as 0, but if there are no more results than 0, increments f by the number of results

    curRes var = result [f];

    Defines curRes as the number of results f-> last occurrence of searchTerm in selection

    var curFootnote = curRes.footnotes.add ();

    Creates an empty reference of last instance of < URL >. + ? < URL >

    moveURL.move (LocationOptions.AFTER, curFootnote.insertionPoints [-1]);

    }

    app.findGrepPreferences = null;

    }

    I apologize for the rather silly sounding commenting in it, but I'm trying to make sure everyone with a bit of JavaScript knowledge knows that I do.

    As you can see, moveURL var is not set. var moveURL would be the function where I define the text that needs to be moved. Now, he can't be curSel because who would try to move all the text in the reference, which is just stupid for obvious reasons. curFootnote is not, because it generates the note. So what I'm doing wrong here?

    Thanks for your help!

    You don't need an 'intermediate' at all moveURL.

    The problem occurs because you add a new reference to the found object (curRes) - you can see if you add this after line of footnote.add:

    curRes.select();exit();
    

    (so please withdraw again, this is only to show how to check what is the problem).

    You can fix this, oddly enough, by adding the note before the target text:

    var curFootnote = curRes.insertionPoints[0].footnotes.add();
    

    If you check with the trick 'select', you will see the found text "curRes" still only constituted the part of the URL and the new reference appears right in front of him and not inside. When you add a note "at the end", to help

    var curFootnote = curRes.insertionPoints[-1].footnotes.add();
    

    you will find the note becomes an integral part of the "curRes" and if you can't its text more move in this same note.

    With that, it's child's play to move the text found in the note, but then you still have to remove the markers of the URL. There are several approaches, but I will copy only the text in the note, then by removing all of the text found in the document, like this:

    curRes.characters.itemByRange(6,curRes.characters.length-5).duplicate(LocationOptions.AFTER, curFootnote.insertionPoints[-1]);
    curRes.remove();
    
  • Add link to URL in the text added to the catalyst

    Hello

    My question is, is it possible to be part of a text added in flash catalyst a link to the URL, as in normal site?

    Thanks in advance!

    Hello

    I'm sorry, I'm not very clear about your question. So, I'll give you two solutions. Please use that is appropriate for you

    Solution 1: This is to convert any instance of text unique all in Flash Catalyst to a clickable link

    You can convert any occurrence of text in a button & then add a "Go To URL" interaction to achieve this.

    Step 1. Add text by using the text command.

    Step 2. Select the text and convert it into a "button" with Heads Up Display.

    Step 3. Click on the button 'Add the Interaction' in the Panel "Interactions".

    Step 4. Select "Go To URL" from the second drop-down list and enter the URL in the text box below the

    Solution 2: This is to convert part of the occurrence of text to a clickable link.

    This feature is available only by the "RichEditableText" component that is not supported by Flash Catalyst.

    Once you have the text placed inside your application using catalyst, you must edit in Flash Builder.

    Step 1. Save the project in Flash Catalyst under FXP

    Step 2. Import the FXP in Flash Builder file, by using the menu "File-> Import Flash Builder Project"

    Step 3. Open the file "Main.mxml" & look for the component "RichText".

    Step 4. Replace "RichText" with "RichEditableText.

    Step 5. Set the 'editable' component "RichEditableText" property to "false".

    Step 6. Add the tag "" around the part of the text you want to be clickable. See example below

    Step 7. Save & publish the project using the menu "project-> Export Release version.

    Subject to changes text

    Text after changes


                                     Hello http://www.adobe.com "> Adobe>"
                            

    Let us know if this solves your problem.

    Concerning

    Srinivas Annam

  • Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. Thank you!

    Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. I'm creating a home page with a list of text links. I want to design as well as in the overview of one of the text links, a corresponding image is displayed to the right of the page. I also need a default image to rest all the time unless one of the other links text is hovered over. Thank you!

    Try to use a Widget for Composition in the Adobe Muse Widgets Panel.

    I would like to start with a blank publication.

    Place your text in the button area.

    Place your image in the display area.

  • Is it possible to Newport an active url or a link in "properties of the Article?

    Is it possible to Newport an active url or a link in "properties of the Article?

    No, you can't. The text you use in the different areas of ownership of the article is just of the gross and not text is converted to links when displayed in the viewer of the user interface.

    Neil

  • several URL for the button link

    I have a file flash loaded on more than 150 sites. The button in the file currently goes to a unique URL, but we develop the URL for the link for each site. How can I do this in a single flash file? I don't want to create 150 files flash with different links. Can I variables or something? I don't have much knowledge about this Yes please be patient with me.

    If you use flashvars or a query string of HTML code, you can use the following text in your swf file:

    navigateToURL (new URLRequest (this.root.loaderInfo.parameters.yourURLVariable));

    where yourURLVariable represents the name of the variable of flashvars

  • Text with URL to the overview

    Hello

    I am having some problems with the text that appears on a mouse event. I put an example online (text is in Dutch, I hope this isn't a problem). You can find it at files.bbackx.com/flash/index.html
    When you exceed the "hovertekst", you'll see a few other lines of text appear. I already had to do some stuff (jump to another setting with a button that has an another affected area) so that the text would stay when you go on it. Now I have the problem that when I put a url in the file ("linkje" in my example), the text disappears. Anyone who knows what may be the cause?

    You can find the source file at files.bbackx.com/flash/index.fla

    I hope someone can help me...

    PS: the reason for the leap framework: I want only the text should appear when you hover over "hovertekst" and I don't want to disappear when I'm with my mouse on the text, when it appeared. It was the only way I could do this.

    you will not be able to put whatever it is clickable in this text, because the text part of your button. so the button will intercept all mouse events and the text (and all the links in your text) will see no mouse event.

    There are several ways to handle this. in light of your departure, here is a solution:

    http://www.gladstien.com/files/index.fla

  • How to create link text instead of the link button

    Hi all

    How to create a link text like "click here" to a page in the application instead of a button link in the form page

    near an element (text field)...

    can we also carry the values of some of the elements form page to the link page which is also a form... ?


    Thanks in advance.

    set the label as <-a href="http://url/">click here<->. Then buld up of your URL using replace values IE

    / pls/apex/f? p = V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS = MY_PROCESS:NO:P1NAME, P2NAME, P3NAME:P1VALUE, P2VALUE, P3VALUE

    concerning

  • Why is that now, when I click on a link for a Web site I have saved, it does NOT show the URL in the address bar? I don't and then drag it to an email to share the link.

    How is it that, in these new versions of Firefox (I have 21.0), when I opened a link that I recorded, it does NOT display the URL in the bar of addresses?

    I can't drag and drop the link in an email, and I don't see the actual address that I'm connected to for reference OR for security reasons. Why is - this has changed?

    It becomes necessary to reveal the properties of the URL link that I saved, by using the 'Properties' window, then copy and paste the URL in the address bar of Firefox, until I can do something with it.

    I had the same problem. Looked at all the addons and extensions referred to in the conversation between philipp and dadmr. All extensions and plugins off and on again with each shot. Problem has been resolved by disabling app 1.0.85 Goodshop and RealDownloader 1.3.2.28. It may be that these versions were outdated, but were postponed during the upgrade from previous versions of Firefox. I hope this helps.

  • Whenever I have mouse over a link, the URL tells the low left instead of the address bar screen itself. How can I change? I want to see the URL of every time that I have miss a link to the address bar, the URL of my current page. Thank you!

    Then Yes. When I first installed Firefox 4.0, the URL of the links I go to appears in the address bar, then he "updated" and I was wondering where is the URL passed each time I have go to a link. Then he appeared at the bottom left of the screen. I want to deliver to the address bar. How do I do that?

    See also:

  • Display problem with hyper link text on the Blackberry HTML browser

    Hello

    There is a help section on the application I'm working on that. Basically, load us an html with the Blackberry HTML browser page and provide links hyper text severeal to other subsections providing hyper links text themselves until that user pages of real-world information (just typical help things).

    The last link of these pages are always displayed vertically. I've done more laps that I know not to try to solve this problem (including links hyper text in a list in a tab, but it keeps going that way no matter what).

    If you have already encountered this problem, thanks for sharing!

    I put links hyper texts in tables and it solved the problem. I try this in the first place, because the html tables are only supported for jde 4.6 (http://docs.blackberry.com/en/developers/deliverables/11843/BlackBerry_Browser-Fundamentals_Guide--5...).

    But if you only use

    ,and
    parentheses, they come with limited support, it works fine.

  • Interactive PDF layers appear behind the text. A script can move them to the top layer?

    I have created a form in InDesign CC (latest version on a Mac under El Capitan). I export the form in PDF format. There are some interactive tooltips (with suggestions on how to fill in each particular field) implemented as buttons. The control keys are static. When I click on the trigger, the bubble appears, when I click on the bubble, it disappears. The problem is that even if the bubbles are set up on the top layer in InDesign, in many cases they appear behind the text layer.

    Is there a script that I can add to each individual bubble that says "when this bubble is active, move it to the top layer?

    This project took over 3 weeks of troubleshooting. In the end I came up with my own results. The answer was "no, it isn't a script."

    With the help of the Adobe customer service, we found that because in the InDesign file, I had the pop-ups on a different layer than the triggers, it was causing a problem of overlap. I found myself by combining the layers into a single, moving pop ups to the elements high on the page in the layers palette.

    Then I exported (interactive) PDF from InDesign and in the PDF file, in edit mode, in the fields Panel, I've selected all the pop-ups and offers them to at the bottom of each page [z-index property]. A lot of manual labor, but in the end, I got most of the results I wanted.

  • Change a vanity on the landing page URL / affects other links

    So I have a microsite and a number of related pages / all received off of him, associated in Eloqua (downloaded in the form of external html files).  But I'm confused-, it seems that the only way to build links in the html code is to put in the name of the actual page.  But what happens if we renamed vanity URL for the page? example: my homepage is www.example.com and links to www.example.com/customized.  If I decided that example.com/customized is more justified and I the name of example.com/awesome, I have to go into the source code of EACH page that has a link to example.com/customized?  I want that there should be a different way, backstage at page link that allows me to change the vanity url wihtout having to change the code on about 15 different pages.  What is my lack of understanding?

    Hi Jessica,.

    Yes, you must rename the link there is no substitute for this.

    Thank you

    Kone

  • Reading properties on the linked text frames

    Hello

    I need to be able to get the background color and a background image of a textframe help of scripts. I can't find anything in the documentation on the subject. Suggestions?

    Also, I need to test if one or more linked text frames are connected to each other. Suggetions?

    Thanks in advance

    Bo Dudek

    WebDeveloper

    Mediegruppen

    To test if a block of text is linked to another, use the nextTextFrame and previousTextFrame:

    if (myFrame.nextTextFrame === null && myFrame.previousTextFrame === null) {
      // the frame is not linked to another frame
    }
    

    Background color: myFrame.fillColor

    Background image of a block of text: is a picture behind a block of text?

Maybe you are looking for