How to import values from txt and pass values to variables

I need to export some variables from Indesign and import them in Illustrator.  I can export a txt file from InDesign but I don't know how to import and pass the values to variables in Illustrator.
Can someone help?

Well from you ID script Im presuming that you are simply writing a few lines of info to a plain text file like so…
writeFile('SomeData');
writeFile('AnotherData');
writeFile('LastData');
function writeFile(info) {
     try     {
          var log = File('~/Desktop/ID_Data.txt');
          log.open('a');
          log.write(info + '\r');
          log.close()
     catch (e) {
          alert(e);
So you would just read this back where or when ever you need to use it in your Illustrator script…
var log = File('~/Desktop/ID_Data.txt');
log.open('r');
var a = log.readln();
var b = log.readln();
var c = log.readln();
log.close();
alert(a);

Similar Messages

  • Need Help to get value from MessageChoice and pass it to another MesgChoice

    Hi All,
    How to get a value from a messageChoice1 in CO into a variable. Once the messageChoice1 is selected i need to pass this variable into a VO whereClause and the page get refreshed, so that another messageChoice2 in the same page will have the values based on the messageChoice1 value.
    Kindly give me your suggestions.
    Thanks and Regards,
    Myvizhi

    I think you want to do a nested loop within each Item in the data provider, to pull out each child's (series1, series2, etc). "label" attribute.

  • Open SAP window from browser and pass values

    Hi,
    I am developing JSP application and I want to open and pass some values to mm03. Is there any possible way to do this .

    Hi,
    You will need to do a function module with a bdc to call MM03.
    Then you can pass the parameters to the function module and run MM03.

  • How to Import WT from LRT and process it in Current payroll?

    Hi Experts,
    I am new new writing PCRs. Please help me writing PCR for given scenario.
    If a WT 9xxx contains 0 value in current period. WT 9xxx from LRT should be imported and put it into the OT for further processing.
    With Thanks & Regards
    LS

    hi
    from last payroll  to read results use PORT  operation , then u can query the WT  for amount , then put it in the OT.
    Regards
    sameer

  • How to import text from Word and retain italics and/or indented text?

    Is it possible to import or copy text from Word into InDesign and retain italics or text that is indented in the Word version?

    just wanna edit wrote:
    Thank you, I think I understand the idea of "place" (which is what I would call "paste")
    The two are not at all the same. Paste involves copying text to the clipboard and then pasting from the clipboard. Place is an import operation.

  • Query from the data abse  and pass values to a pdf form

    query from the data abse and pass values to a pdf form
    Hello
    Hello i have this html report that i have written to output a
    report.
    now, i am assigned to pass the same fields to a pdf form so
    the fields in the adaobe form can be populated or the term
    Pre-populate the form.
    can anyone help me get started.
    first i would like to know if it can be done.
    second, what do i need to get started (tools )
    third how do i do this.
    i am really lost at this point.
    can anyone give me tips in how to approach this
    subject??

    It can be one using Adobe Acrobat Designer which is packaged
    with Acrobat
    Professional Pro 7. It uses all XML to create and populate
    forms.
    If you had the time, you can also create <cfdocument
    type="pdf"> to have
    them ready and just pass the info to it so it autogenerates
    the PDF on the
    fly.

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to get return value from java and read by other application?

    i want to read return value from java and the other application read it.
    for example:
    public class test_return {
        test_return(){
        public int check(){
            return 1;
        public static void main(String args[]){
           new test_return().check();
    }from that class i make as jar file. How to read the return value (1) by other application?
    thx..

    If your installer is requiring some process it invokes to return a particular value on failure, then the installer is seriously broken. There are a bazillion commands your installer could invoke, and any of them could fail, which in turn could invalidate the entire install process, and any of them could return any value on failure. The only value that's consistent (in my experience) is that zero means success and non-zero means failure, with specific non-zero values being different in different programs.
    About the only control you have over the JVM's exit code is that if your main method completes without throwing an exception, the JVM will have an exit code of 0, and if main throws an exception (either explicitly or by not catching one thrown from below), it will be non-zero. I'm not even sure if that's guaranteed, but I would guess that's the case.
    EDIT: I'm kind of full of crap here. If you're writing the Java code, you can call System.exit(whatever). But nonetheless, if your installer requires certain exit codes from any app--java or otherwise--you have a problem.
    Edited by: jverd on Oct 29, 2009 1:27 AM

  • How can I bulk delete contacts from my iPhone 4S? I've imported contacts from gmail and hotmail, many of which I don't need. Deleting them individually will take ages, there must be a quicker way. Also, are my contacts taking up space on my iPhone or

    How can I bulk delete contacts from my iPhone 4S? I've imported them from gmail and hotmail and there are many more than I need. Deleting them one by one will take ages, there must be a quicker way! Also, do contacts take up space on the phone or are they stored remotely?
    Thanks.. J

    You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup.  If you haven't been doing this, start now and then restore your old backup.  You will then be able to sync the new contacts back into the phone.  However, you will lose all messages, etc newer thant the backup.

  • Open a web page and pass values from a java file

    Hi,
    I need to open a web page and pass values in the text boxes.
    Finally submit needs to be triggered. All this needs to be done from a java file. i.e instead of entering my values in a web page and submit, i need to do it from my java file..
    Any inputs so that I proceed in the right direction..or is there any alternate way to achive this ??
    Thanks in advance..
    Sid

    I hava found a lines of jaa that can open a URL , lets say www.net.java
    You can open it writable or not.
    It is half of the job you need.
    If you are interested.
    I am wrinting a program to print a URL , and have developed this small
    code.
    Angel Portal

  • Calling a report and passing values!!

    Hi Experts,
    i have a requirement. I have a report [zrep1] with billing doc field and shipment field on the selection screen.
    The logic for billing document is written. Im writing logic for shipment numbers. I am finding the billing documents of delivaries for each shipment.
    I want to pass those billing documents as input to the same report program [zrep1] for the existing billing document code to get the output.
    How to call the same report and pass the values from internal table as input to it.
    Please suggest the way to proceed. i knw it is possible.
    Thanks in advance.
    Edited by: Craig Cmehil on Jul 3, 2008 3:30 PM

    Hello,
    Try this:
    The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
    Program accessed
    REPORT report1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards.

  • How to import Table from Webdynpro to RFC?

    In my application there is one RFC that has one import parameter String and a Table for import/export data from webdynpro.
    The context of model node and attributes is as follows
    A (Root Model Node for RFC)
    |....B (Model Sub Node for Output)
        |....C (Model Sub Node for Table)
            |....x (Model attribute)
            |....y (Model attribute)
    Table structure in RFC is same as Model node C.
    Before Executing RFC using
    wdContext.currentAElement().modelObject().execute();
    In Java end how to set or add data to x,y attribute so that RFC can get those values from table and insert into the ABAP table.

    Hi SBS,
    Try this code.
    IWDMessageManager msg = wdComponentAPI.getMessageManager();
    try {
    String empid = 10020;
    //or you can take empid from UI field also
    // String empid = wdContext.currentValueNodeElement().getEmployeeID();
    Bapi_Employee_Getdata_Input input = new Bapi_Employee_Getdata_Input();
    input.setEmployee_Id(empid);
    wdContext.nodeBapi_Employee_Getdata_Input().bind(input);
    // Calls remote function module BAPI_EMPLOYEE_GETDATA
    wdContext.currentBapi_Employee_Getdata_InputElement().modelObject().execute();
    // Synchronise the data in the context with the data in the model
    wdContext.nodePersonal_Data().invalidate();
    } catch (Exception e) {
    // TODO Auto-generated catch block
    msg.reportSuccess(“Message : “+e.getMessage());
    Re: RFC Issue - Cardinality and Selection problem
    Regards,
    Mithu

  • I need to call a batch file from java and pass arguments to that Batch file

    Hi,
    I need to call a batch file from java and pass arguments to that Batch file.
    For example say: The batch file(test.bat) contains this command: mkdir
    I need to pass the name of the directory to the batch file as an argument from My Java program.
    Runtime.getRuntime().exec("cmd /c start test.bat");
    How to pass argument to the .bat file from Java now ?
    regards,
    Krish
    Edited by: Krish4Java on Oct 17, 2007 2:47 PM

    Hi Turing,
    I am able to pass the argument directly but unable to pass as a String.
    For example:
    Runtime.getRuntime().exec("cmd /c start test.bat sample ");
    When I pass it as a value sample, I am able to receive this value sample in the batch file. Do you know how to pass a String ?
    String s1="sample";
    Runtime.getRuntime().exec("cmd /c start test.bat s1 ");
    s1 gets passed here instead of value sample to the batch file.
    Pls let me know if you have a solution.
    Thanks,
    Krish

  • How to import mailboxes from Time Machine to new Mac

    I had Time Machine backing up our old G5. We got a Mac Pro back in November and I never was able to import the mail from the G5 to the Mac Pro so I left it alone and just kept using mail on the old G5. Well, the G5 took a dump last monday. I currently have the Time Machine backup for that computer connected to our Mac Pro (but not using it as backup yet). So, the mail from the G5 should be on the Time Machine backup right? If so, can I import it into Mail on the Mac Pro?
    I also pulled one of the hard drives from the G5 and have it in the Mac Pro in the 2nd bay just to make sure that HD wasn't dead. It works fine and I tried importing the .mbox files from that drive but it appears that all the mail on that particular drive are from like 2006. So, again, I need to find out how to import mail from the Time Machine drive. Any thoughts?
    10.7.4
    Mail 5.2

    Back up what data? Mail data? I don't have any yet. I haven't used Apple Mail on this Mac Pro yet.
    Edit: Launching Mail and holding Option right afterwards does nothing. Holding down option and then launching Mail does nothing.
    Oooooh.... launching time machine while holding down option......
    Edit again.... I don't have a Time Machine menu because that disk is not currently set up as time machine for the Mac Pro yet. I don't want to use it as a backup for this computer yet. I just want to be able to pull some of the backed up contents from it until I'm set.

  • How to import music from an external hard drive to my itunes on my computer?

    how can import music from an external hard drive that i saved my itunes music to. i dragged the music from my hard drive to the itunes on my computer but the music does not play from my itunes. it does however play on my ipod. it gives me an error that the original can not be found and do i wish to locate it. i am thinking that i did not drag the right file or all of the files necessary .thanks. kevin

    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions

Maybe you are looking for

  • Is there a way of consolidating my apps in one account, I have 3 now?

    I want to consolidate my apps from 3 sepparate accounts into one account

  • Windows 8.1 installati​on problem on Lenovo G510

    Hi. I bought a new Lenovo G510 laptop. I downloaded Windows 8.1 from Microsoft DreamSpark, and burned ISO image on a DVD disc. When I try to install it on my laptop, I receive an error (it might be wrong translated): Load Driver A media driver your c

  • Difference between WRT54G and WRT54GC

    I have a WRT54GC with the latest BIOS that I have used for more than 2 years to provide Internet access to five computers at home.  It has an HGA7S antenna and I use a WRE54G Range Expander to get to the front of the house.  The wireless adapters are

  • RS_BBS_BADI / RSR00004

    Hello, I am trying to use the RRI interface for passing variables Company code, fiscal Year and Fiscal period from a Query to R/3 transaction. The Company code data is passing pefectly fine but the Fiscal year and Fiscal period values are not getting

  • Many, Many Problems after Installing Leopard

    I installed leopard and about half way through i got installiation failed, after inspecting my disc i realized that it was scratched and thought, "I'll just be content with OS X 10.4". My computer took extra long to boot up, and... it went into leopa