Layer Source Text linking to external text. (no code in doc!)

I've seen linking to text documents with code snippets in it.
So that means the external text document must contain bits of scripting.
I would like to link to txt documents (or csv) that do not contain code.
Total noob users must be able to link a text to a After Effects project.
I have a website data catcher which exports CSV values.
It would be ideal if After Effects can hoover up the text and put certain pieces into certain source texts.
We're talking automated sports cards here.
Is this possible without adding code to a text dump?
Or is this just impossible?

The basic idea is to use something like this:
myPath = "/c/test/txt.txt";
$.evalFile (myPath);
The text file does need to contain legal JavaScript code, but it could be as simple as this for a text layer:
"this is a test"
You generally want to wrap the $.evalFile() in a try/catch so that you can have an error string like "Not found." display if your path is bad, like this:
myPath = "/c/badpath/txt.txt";
try{
  $.evalFile (myPath);
}catch(err){
  "Not found."
Dan

Similar Messages

  • Linking source text property in AE CS6 to external text document

    Hi,
    I would like to load text from an external .txt file into the Source Text property. I've seen multiple ways to do this around the web, but it seems like it's changed in CS6. (All the examples I've found are for CS4 or CS5.)
    I'm on a macbook pro. The .txt file (data.txt) is on the desktop.
    This is what I've tried to map into the Source Text property:
    1)
    myPath = "/data.txt"; try{ $.evalFile (myPath); eval(thisComp.name); }catch (err){ "not found" }
    Here I get "not found".
    2)
    myPath = "/c/data.txt"; $.evalFile(myPath)
    Here I get the error: "File or folder does not exist".
    The name of my comp is "sc100" and the text file says:
    sc100 = "My Text"; ;
    Is there a proper way to do this in CS6? Or am I just doing it wrong?
    - KolibriEirik

    I've been trying the entire afternoon with this expression and also Harry Frank's and haven't been able to make it work, I even imported an old project where it worked fine and in that comp it still does, but the new one doesn't. I moved the data file to the location where I have the one for the old project and I was able to make it work, however I can't leave it there becasue I'm doing this project in a different machine,
    This are the expressions that I have tried so far:
    myPath = ~/Desktop/combinedcaptions.txt
    try{
    $.evalFile (myPath);
    eval(thisComp.name);
    }catch (err){
    "not found"
    try
    myPath="~/Desktop/captions.txt";
    $eval(thisComp.name)[0];
    catch
    (err)
    "missing"
    if ($.os.indexOf("Mac") != -1)
    myPath = "/Volumes/750GB/Mount Sinai_Carousel_David/Expressions/";
    else
    myPath = "file://c:\\\\Expressions\\";
    myPath += "CombinedCaptions.txt";
    $.evalFile (myPath);
    eval(thisComp.name)[0];
    Only the third one worked, but just as long I placed it in a different directory, which I can't.
    Can anyone help? I'm due to deliver over a 100 captions tomorrow.

  • Decode statement in a mapping involve Source Text File & Table.

    Hi All,
    Oracle 9i Warehouse Builder Client: 9.2.0.4.0
    Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    Does OWB allow to use Decode statement in a mapping involves Source Text File and Oracle Table.
    My understanding is it's not possible, since OWB makes use of Sqlloader. For this work arround could be make use of External Table instead of Text Flat File.
    However I came across an old posting (June-2003) which says that this feature is available OWB 9.2.
    Following is the url:
    IF THEN LOGIC from Flat File to Table
    Can someone please confirm this?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi all,
    If you want to validate correctly this mapping you must to :
    1. Right click on the mapping, then Configure
    2. Right click on Sql Loader Data Files, then Create
    3. Verify that the location name is correct and complete the Data File Name
    4. OK
    The validation is now OK.
    I hope it will be help you
    Best Regards
    Samy

  • Adding an expression to Source Text breaks alignment?

    This is a big WTF for me.
    I have a text layer. I center-align the text in it. The moment I add an expression to its Source Text (even the default text.sourceText) it becomes left-aligned and REFUSES to go to center-aligned. Huh?! This seems like a very common thing, so what am I missing? Is there something else I need to do in the expression to get it to be center aligned?
    Thanks!

    I use this expression:
    type = text.sourceText;
    m = thisComp.marker.nearestKey(time);
    sentences = type.split("\r");
    n = m.index;
    if (time < thisComp.marker.nearestKey(time).time) {n = n-1}
    if (n>=sentences.length){n=sentences.length-1}
    if (n<1){n=1}
    line = sentences[n];
    line
    When I edit the text, it's perfectly aligned, but when the text gets split up by the expression, everything aligns to the left.
    Hope you have an idea why?

  • Cross references not picking up character styles in source text

    I'm getting some annoying odd behaviour with cross references in Frame 12.
    I have some tables, where the paragraph style in the cell is called "Cell Body" (nothing odd there).
    Quite a few of the cells only have one word in them, and that word is set to courier font with a character style (called "Code").
    Then, elsewhere in the document, I am referring to this text using cross references. I am referencing the paragraph style Cell Body, and the cross reference format applied is like this "<hyperlink><$paratext><Default ¶ Font>"
    "hyperlink" is another character style that makes the text go green.
    So, the cross reference out to take the text from the cell (in Courier) and reproduce it, coloured green.
    However for about half of these cross references, it isn't picking up the Code character style in the source text, so the cross ref is just green, no green courier.
    Things are further bamboozled when I output to HTML Help.
    In the CHM file, the cross refs which appear to work OK (green courier) are now just courier.
    The ones which failed to pick up the courier look the same as they do in Frame (just green).
    Any ideas as to what's going on?
    I've tried troubleshooting by clearing the cells, reapplying the para style and default character style, then reapplying the code character style, then replacing the cross reference - which sometimes seemed to fix it but didn't always.

    Arnis Gubins wrote:
    Using two character tags in-line together (a la <hyperlink><Code>) is asking for trouble. IIRC, FM doesn't re-apply these in order on an update and depending upon how they are defined (and what is set to AsIs), the outer one usually wins. .
    So why does the blimmin' dialog invite me to do precisely that, by providing me with a list of all the character styles I have, and allowing me to select as many of them as I like??? /sulks/   Indeed, if Frame still shipped with a printed user guide instead of  stupid "optimised for viewing on iPhones" online webhelp nonsense, I suspect I might very well be able to find an example in the manual of using multiple character styles in that dialog!  If it doesn't want you to use more than one, why doesn't it grey out after you add the first one? /sighs/  The concept is called "cascading styles", it's a fundamental web paradigm! And it works in the main body text - why not in Xrefs!
    Also, I have been very scrupulous to keep my character styles orthogonal so none of their AsIs's mash each other up.
    But, rant over, I shall follow your splendid suggestion for a "Code Hyperlink" style.
    Arnis Gubins wrote:
    Also, x-ref formatting may behave differently in the new Publishing modules depending upon ....
    ...Depending on how badly designed and buggy this new Frame12 feature is, I should say!   The Publish module should not randomly stop behaving in a WYSIWIG manner in completely undocumented fashion just because Adobe couldn't be bothered to code it properly.  /sighs/
    Frankly, for my current project, I've given up trying to jump through hoops for Publish - I'm concentrating on getting the Frame source right and assuming these quirks will be fixed in Frame 13 (or 14, depending on how superstitious they are). Because if I put in ad hoc workarounds for them in Frame 12, I (or a colleague) will only have to undo them later when they're fixed, and by then we'll all have forgotten what the original problem was.

  • Message Mapping- Source text view not working

    HI friends,
    in my idoc to file ,
    in message mapping testing (static testing),
    i given values for sourse message and i executed test and the values are populating in target message.in target meesge if want to view of xml using source text view then..
    i am getting follwing ..
    <?xml version="1.0" encoding="UTF-8"?>
    i am not getting full data in xml format..
    please guide me...
    regards
    Munna

    Hi Munna,
    The solution was the use of Pretty Print.
    Double Click on the "Source Text View". You will get an icon of Pretty Print on the side. Click on it. The whole XML will be displayed.
    Regards,
    Venkatesh
    Message was edited by:
            Venkatesh Ramachandran

  • FF 3.6.12 will not open links from external sources (Outlook, Dreamweaver, Digsby, etc)

    I have just upgraded to Firefox 3.6.12 and links clicked in an external source will not open in Firefox.
    Firefox is set as my default program for web browsing. I have tried to open links from Outlook, Dreamweaver, Digsby, and other programs.

    I have the same issue, opening links from external programs like Word or Thunderbird does not work. This used to work before the update to 3.6.12

  • New Safari 2.0.3 displays some Router Firmware pages as HTML Source text

      Hello Safari users and gurus.
    I installed the new 10.4.4 Combo Updater yesterday, preceded and followed by permissions repairs and other maintenance, including cleaning Safari Caches. Safari 2.0.3 works.
    My problem: 10.4.4's new Safari 2.0.3 displays HTML source text after I click "Save" from within my Linksys (latest firmware) router's web based administration pages that worked correctly with the previous version of Safari.
    When I check or change my router settings, the initial router settings pages appear as they did with the previous version of Safari. However, with 10.4.4's new Safari 2.0.3, as soon as I click "Save" to attempt to save a changed router setting, the confirming info from the router is displayed as HTML source code instead of the expected HTML page display.
    If I wait for the router lights to indicate activity has ceased and then reload the router's opening admin address, the page opens again normally, and I can navigate to other pages and see that the changes have been saved. However, any click on any "Save" changes button in the router's pages delivers another page of HTML source text.
    I will watch for future router firmware updates to see whether the issue is resolved from the Linksys side.
    Does anyone have any suggestions for improvement now? All assistance will be appreciated.
    EZ Jim

     Thanks glefand. As you suggested, I tried my old iBook G3 that is still running 10.3.9, and it works fine for me.
    My G5 DP also worked normally up through OS X 10.4.3. My problem only began after I installed the 10.4.4 update. I think the Safari update included with the 10.4.4 update is what is causing the issue with the firmware pages on my Linksys router.
    Hopefully a future router firmware update (or Safari update?) will restore proper operation. If not, I will continue to reload from the router's Start page. The need to work around this glitch is annoying, but the actual function of my router setup works without problem, even though the pages do not display properly.
    Thanks again for your helpful suggestion,
    Jim
    G5 DP 1.8, 4.5G RAM, 2x160GB Seagate, 1,000va UPS   Mac OS X (10.4.4)   20"ACD, iSight, AirportCard, Klipsch GMX A-2.1 Audio

  • ORA-19511: Error received from media manager layer, error text:

    Dear Concern,
    When I am restoring the oracle 9i database by brtools for SAP ECC 5.0 the following error message appeared. Mention that, this is second time restoration. First time restoration was successfull. After that one of us change some permission in differerent folders and files in the hp-ux server. Now we facing the following problem. Please help me...
    BR0449I Restore mode: ALL
    BR0419I Files will be restored from backup: bechtawc.fnr 2010-01-08 20.00.06
    BR0416I 100 files found to restore, total size 520901.781 MB
    BR0424I Files will not be decompressed
    BR0421I Restore device type: rman_util
    BR0280I BRRESTORE time stamp: 2010-01-19 16.19.21
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE:
    BR0280I BRRESTORE time stamp: 2010-01-19 16.19.23
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRRESTORE time stamp: 2010-01-19 16.19.23
    BR0554I Starting restore from full database backup using RMAN...
    BR0278E Command output of 'SHELL=/bin/sh /oracle/PRD/920_64/bin/rman nocatalog':
    Recovery Manager: Release 9.2.0.1.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
    RMAN>
    RMAN> connect target /;
    connected to target database: PRD (DBID=1654880374)
    using target database controlfile instead of recovery catalog
    RMAN> *end-of-file*
    RMAN>
    host command complete
    RMAN> 2> 3> 4> 5> 6> 7> 8>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of allocate command on sbt_1 channel at 01/19/2010 16:19:24
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
    HP-UX Error: 8324: Unknown system error
    Additional information: 7110
    ORA-19511: Error received from media manager layer, error text:
       SBT error = 7110, errno = 8324, sbtinit: internal error - invalid argument(s)
    RMAN>
    Recovery Manager complete.
    BR0280I BRRESTORE time stamp: 2010-01-19 16.19.24
    BR0279E Return code from 'SHELL=/bin/sh /oracle/PRD/920_64/bin/rman nocatalog': 1
    BR0536E RMAN call for database instance PRD failed
    BR0280I BRRESTORE time stamp: 2010-01-19 16.19.24
    BR0556E Restore from full database backup using RMAN failed
    Best Regards
    Wahid

    Hi,
    It is mentioned that I already have done a restoration and recovery first time. But when I tried to do the same job I mean restoration in second time for a specific requiremnt I am getting the above error.
    Our syestem info is:
    DB: Oracle 9i
    OS: HP-UX
    Storage: EMC storage
    Backup tools: Data protector 5.5
    Please help me.
    Regards
    Wahid

  • How to create empty text file on target system for empty source text file

    Hi All,
    I have an issue in handling empty file in the Text (FCC) to Text (FCC) file scenario. Interface picks text file and delivers on target system as text file. I have used FCC in both sender and receiver CCs.
    Interface is working fine if the source file is not empty. If the source text file is empty (zero Bytes), interface has to delivery an empty text file on target system.  I have setup empty file handling options correctly on both CCs.
    But when I tried with an empty file I am getting the error message 'Parsing an empty source. Root element expected!'.
    Could you please suggest me what I need to do to create an empty text file on target system from empty source text file?
    Thanks in Advance....
    Regards
    Sreeni

    >
    Sreenivasulu Reddy jonnavarapu wrote:
    > Hi All,
    >
    > I have an issue in handling empty file in the Text (FCC) to Text (FCC) file scenario. Interface picks text file and delivers on target system as text file. I have used FCC in both sender and receiver CCs.
    > Interface is working fine if the source file is not empty. If the source text file is empty (zero Bytes), interface has to delivery an empty text file on target system.  I have setup empty file handling options correctly on both CCs.
    >
    > But when I tried with an empty file I am getting the error message 'Parsing an empty source. Root element expected!'.
    >
    > Could you please suggest me what I need to do to create an empty text file on target system from empty source text file?
    >
    > Thanks in Advance....
    >
    > Regards
    > Sreeni
    the problem is that when there is an empty file there is no XML for parsing available. Hence in case you are using a mapping it will fail.
    What ideally you should do is to have a module that will check if the file is empty and if so write out an XML as you want with no values in the content/fields.
    Or the next choice would be to have a java mapping to handle this requirement. I guess that on an empty file the java mapping will go to an exception which you can handle to write out your logic/processing

  • Help with After Effects? Null Layer and Text not working?

    In after effects cs5.5 on mac, im motion tracking as normal, and the track works fine, then when i add the null layer and edit the tracking target to the null layer, the screen goes black, and all i can see is the null layer as a red box moving along the motion track path (i cant see the path) also, whenever i try to add text, (which im trying to motion track via attatching to the null layer) the text is invisible, when the screens black, all i can see is the wire frame of the text next to the square null layer, im pretty new to after effects, but im following tutorials as i should, and its just not working as it shows in all the videos ive tried, please help!

    Check whether you have wireframe mode enabled/ Live Update disabled. Sounds like one of those cases. Other than that this could be OpenGL issues, so turn it off in the prefs. Also check your comp size vs. the size of the footage you are tracking. Tracking works relative to the layer, so if the comp is too small, the values would be so large they end up being outside the comp.
    Mylenium

  • APEX link to external source

    Hi,
    I was wondering if APEX had the functionality to link to external applications such as Digital Paper?
    Right now, im my APEX application & Digital Paper Application, every viaduct is indexed by a Reference Number. Can I link my APEX record to pictures (in Digital Paper) by reference number?
    Please Help!!!

    Ok, so here's the deal...
    I'm running an application that displays information on every viaduct in the city of chicago. Each viaduct has a reference number (unique).
    I'm also running a separate application (externally) in a program called Digital paper. This program stores pictures of the viaducts, all indexed by the same unique reference number.
    I also have an seperate application (external) that shows the location of the viaduct on a map. The application is called ArcGIS. These locations are also referenced by the same unique reference number.
    I want to link these three applications together so that they work together so that I won't have to create duplicate entries. I also want to be able to go into APEX, see the viaduct information and be able to link to its mapped location or photo.
    Am I shooting for the stars or what??? Is this at all possible?

  • Links to External Websites Appearing in my Project

    Hi,
    Got a strange one here . . . it may be network related I guess, but I'm not sure.
    I recently finished work on a large WebHelp project. When I outputed it to HTML I noticed that certain words have been 'hikacked' and used as links to external websites - webopedia.com being the most common:
    <p class="DocsNormal" align="justify">Federated Instant Messaging (IM)
    <a href="http://www.webopedia.com/TERM/F/network.html"><span style="color: windowtext; text-decoration: none;">networks</span></a>
    allow communications across a variety of different IM <a href="http://www.webopedia.com/TERM/F/client.html"><span style="color: windowtext; text-decoration: none;">clients</span></a>
    and <a href="http://www.webopedia.com/TERM/F/platform.html"><span style="color: windowtext; text-decoration: none;">platforms</span></a>.
    A Federated IM network, has an open <a href="http://www.webopedia.com/TERM/F/directory.html"><span style="color: windowtext; text-decoration: none;">directory</span></a>
    allowing other IM networks to message their users. Federated IM networks
    often communicate using open standards, such as <a href="http://www.webopedia.com/TERM/F/XMPP.html"><span style="color: windowtext; text-decoration: none;">XMPP</span></a>.</p>
    It's almost as if Google Adwords or some other site has taken over my document. These are certainly not links that I have put in; I generally only link to other pages within the same document and hardly ever go out to other sites. The only external links I have added to the project are for legitimate sites (Adobe and Avaya).
    Has anybody else experienced this, and does anybody know how to stop it happening?
    Any help or advice would be appreciated,
    Thanks,
    Alex

    Hello again Alex
    Okay, question here. The document you say is exhibiting the issue, did you create that document yourself? If not, then perhaps whomever created the document to begin with added these links.
    I suppose that you could troubleshoot this by creating a fresh document. If the fresh document doesn't have the mysterious links, you can rule out any automated and nefarious forces at play. But if creating the document DOES seem to contain the links, you have other issues at play here that warrant further and deeper investigation.
    By the way, is this content originating from a Microsoft Word document or is it just basic HTML pages?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?

    I want to attach the link to text which gives the name of the site. I am not an idiot, just unfamiliar with the program. I have looked through the learning videos but cannot find anything that specifically relates to my question. I appreciate any help I can get. Thank you, in advance, for any assistance.
    Sue

    I am unable to open the screen shots as I keep getting a message saying that I am not using the correct program. Can you tell me which program I should use? Thank you.
    Sue
    Date: Mon, 22 Jul 2013 10:48:46 -0700
    From: [email protected]
    To: [email protected]
    Subject: I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?
        Re: I feel like a rookie but, can someone tell me how to create links to external URLs in Muse?
        created by spudsmurphy13 in Help with using Adobe Muse CC - View the full discussion
    good question sue, and well done to all for how to do links.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5527823#5527823
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5527823#5527823
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5527823#5527823. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Xml text in a dreamweaver doc?

    hi
    is there a way of linking an xml document to a html doc.
    so the user only has to update the xml doc to update the text within the web page?
    any tutorials anywhere?
    cheers guys

    Yes, but if I am understanding you correctly, this really is not the best use for XML.  XML stores data like a database but in a flat file that allows for dynamic manipulation of data (ie: see Spry data sets - http://labs.adobe.com/technologies/spry/samples/ - examples under first tab).  If you are looking to have users edit long text, it would be easier and more productive to use a database such as mySQL or MS SQL.  Also with using a database you can provide an interface to make editing easier whereas XML documents are all ugly code and if one thing is mistyped it can cause a headache for you and your customer.

Maybe you are looking for

  • HT201412 IPhone 4S call problem

    On my Iphone 4S when I try to end a call by touching the "end" the screen goes blank before ending.  I hit the home button and the call comes back up still going but then the screen goes blank before I can hit the "end".  Sometimes hitting the "end"

  • My name and/or password are not working on start up page. Got given used macbook pro and new to apple so please help!

    My brother gave me his macbook pro and I'm having trouble getting past the start up page that asks for my my name and password. I have an apple id and password but these don't work nor does me typing my actual name and the same password. I've rung ap

  • Photos in iphoto don't exist anymore

    My photos in one event come up, but when I click on them, it comes up with a black screen and a big exclamation mark . How can I get my photos back? Please help!!

  • J2EE 1.3b2 not compatible with J2EE 1.4?

    Greetings, it is not yet officially supported but does anyone have a workaround for using 1.3 J2EE with J2SE 1.4.x? with 1.3b2 this error occurs: C:\j2sdkee1.3\bin>j2ee -verbose J2EE server listen port: 1050 Naming service started:1050 Exception in t

  • Open source Projects

    Hi, I have been working on LV with 3 yrs exp  now. I am willing to work on some open source projects or collaborate with any one for such work in free time. Have good exp in IMAQ , and HiL development . Do please let me know for any such research wor