Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Url link from text | Script

  • Url link from text | Script

  • Timur Solomon

    June 1, 2022 at 7:50 am

    Hi, I have a text file, I want to make entries in it and I succeed.
    But other than that, I want the entries to be written as links.

    How can I do this with a script? What needs to be added to the code?

  • Walter Soyka

    June 1, 2022 at 1:24 pm

    You’ll need to write out a text file with some kind of standard markup, like HTML or maybe RTF. Then it’ll be up to the app that opens the file to interpret the links.

    HTML is pretty easy to write. Here’s a primer:

  • Timur Solomon

    June 1, 2022 at 1:52 pm

    Hi Walter, thank.
    I thought there was an easier way

    I found how to do this in an RTF file, but when writing to text, I get the text with this data, but not the link text

    {\field{\*\fldinst HYPERLINK ""}{\fldrslt Google}}
  • Walter Soyka

    June 1, 2022 at 4:11 pm

    Backslashes are escape characters in Javascript strings, so you need to treat them specially. Put two backslashes in your code anyplace where you want a single backslash to appear in your output file.

  • Timur Solomon

    June 1, 2022 at 5:16 pm

    I solved the issue with hyperlinks, it’s not much more difficult than just adding dashes, but they were needed as well.

    Thank you for your time

Viewing 1 - 5 of 5 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy