How to include preset in RTF import option while importing RTF files?

Dear all,
I created a script which will place text from rtf files present in a folder to an active document on different page based on match. I am using a preset name "myRTF" which i will use when i import rtf files without script.
Is there a way to include this preset in script?
I have checked many places....... but did not found.
#target Indesign
var myDoc = app.documents.item(0);
var sourceFolder = Folder("/Users/admin4/Desktop/ec_txt");
myFiles = sourceFolder.getFiles("*.rtf");
var myFrame1 = myDoc.pageItems.itemByID(111076);  // switerland
var myFrame2 = myDoc.pageItems.itemByID(111114);  // eurozone
var myFrame3 = myDoc.pageItems.itemByID(111146);  // germany
for (var i=0; i < myFiles.length; i++)
    switch (myFiles[i].name.slice (6, myFiles[i].name.lastIndexOf("_")))
        case "Switzerland_en":
        myFrame1.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
        break;
        case "Eurozone_en":
        myFrame2.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
        break;
        case "Germany_en":
        myFrame3.parentStory.insertionPoints.item(-1).place(File (sourceFolder + "/" + myFiles[i].name))
        break;

Hi Dave, Peter,
thanks for your reply. In that case i will check WordRTFImportPreference but not sure if customize style import can be done for paragraph style sheets.
for example: word has "normal" and "head1" style but i want to map to indesign Body_light and H1 styles respectively.
Virender

Similar Messages

  • How to change the application title in apex while importing it ..

    Hi ,
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.
    Kindly help me out and Will be Great for your Assistance.
    Thanks,
    Vishal

    1001804 wrote:
    Hi ,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1001804".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.Please clarify what you mean by "application title". The Application Name in the application definition? The displayed Logo in the user interface properties?
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.Also clarify what you mean by "instance". An "APEX instance" refers to the APEX installation in a database. The "APEX instance" does not have a specific name property, and would therefore usually be referred to using the database name. Or do you mean the APEX workspace containing the application?

  • How can ID automatically change the business system while importing?

    Hi gurus,
    There are many scenarios in our PI system. It will be a tedious work if we don't use transport system(CTS+).
    You know we have to create the scenarios manually in Integration Directory since the business system is different.
    The question is as below (BTW:We are using local SLD for dev,qas,prd separately):
    If we don't use transport system, and only use export and import functionality, and create business system group, can we make the ID automatically change the name of business system while importing?

    Hi Xinjiang,
    You can follow below method.
    In Quality system transport targets will be DEV(Dev pi system) ---> QEA(Quality PI system)
    In Production system transport targets will be DEV(Dev pi system) ---> PEA(Production PI system)
    This will ensure that you does not need to create separate request in Quality system. You can use the same request created in Dev to transport to production system. This will reduce your efforts of transportation. This is the same type of approach that is followed in ECC system as well or next solution is creating transport target in each sld system as you mentioned below,
    we have three local SLD, so we need to create TS and BS for PI DEV in SLD QAS, and create TS and BS for PI QAS in SLD PRD,
    Following link will help you for defining transport target.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/ef/a21e3e0987760be10000000a114084/content.htm

  • Peremiere Pro CC import issue while importing XDCAM 422 50 MXF file

    Hi I also posted into the german board, but got no reply - so now I'm gonna try it in the international board too:
    I want to import XDCAM HD 422 50 footage into Adobe Premiere Pro CC. It's the current version. The footage was recorded with a Sony PDW 700. I copied the data directly from the disc to my HDD and kept the directory structure alive. I tried several plugins and also found just one: Calibrated{Q} MXF Import Overview to make it work. But in trial it's just possible to edit 750frames on each clip. So I'm very limited with that. I don't want to upgrade to full version and pay hundreds of $ for this. I guess Premiere should work with this format natively - I mean, it's a really common format!
    Btw: I'm driving Premiere on a MBP 15" Retina with OsX 10.10.1 and the Error message is something like "file format not supported or damaged file". I have no issues while encoding the files to ProRes 422 - so I guess they're not damaged. But the encoding 3rd party tools also costs additional money.
    Did one of you ever had problems like this?
    I'm looking forward to hear from you guys.
    Thanks in advance and all the best,
    Kalle

    Your sequence settings will have no effect on PP's ability to actually import the footage.  Something else is going on.

  • How to include change delete and insert options in alv grid display

    Hi,
    As per my requirement I need to display my output in grid.
    When the user makes any changes to any field of the alv it should get reflected in the tatabase table.
    Similarly according to the requirement if user enters a new coloumn to the alv or deletes one or more rows of the alv,same should be reflected in the databse table.
    I know there are many methods in object oriented.
    But its little bit tough for me to implement..
    Please suggest how to code for it without oo concepts.
    Thanks ,
    Smriti

    Hi,
    use FM with Edit functionality enabled for all fields and
    Create one pf-status with some buttons
    if user presses the button the alv output table should be saved and same table can be used to insert /modify /delete the dbtable.
    and check this link
    [alv list|alv list]
    Regards,
    Nandha

  • How do I get around source tape issues while importing a DV tape?

    Ok so I recently purchased Final Cut Studio 3 and I am attempting to import (to Final Cut Pro 7) DV tapes via a Samsung digital camcorder (model: SC-D365) and a 800/400 Firewire cable. However after a certain amount of time (it varies from capture to capture) a message pops up and displays the following "Capture encountered a problem reading the data on your source tape. This could be due to a problem with the tape. Capture has been aborted and your clip has been saved". The tapes themselves play perfectly on the camera. Also the few clips that I have gathered after many attempts have tons of audio holes. I am new to Final Cut Pro and have tried everything and I really need to figure this out because the tapes that I have are the only tapes of the project. Any help would be appreciated and since I am new to the program I would greatly appreciate detailed steps if you know how to fix it.

    That camera is MiniDV, so by and large should be compatible overall. You should run a head cleaning tape (or a head cleaning ape if you have one - Magilla Gorilla?). But your deck may not be completely compatible with the recording. Subtle variations can cause dropouts that you won't see because the electronics just substitute the last packet from to hide this during playback. I've had tapes that would capture just fine in one deck, and dropout central in another.
    Best bet is using the camera that recorded it to play it back.
    Worst case scenario, set the capture to non-controlled device, press the capture button, then press play on the deck. However, you will not be able to re-capture that segment automatically should you lose your capture files.
    make sense?
    Patrick

  • How come there's no "save as" option anymore when saving files?

    When I download a pic from the internet it opens it in Preview.  I don't want to make any changes or anything to pic I just want to save into the file that I choose and name it what I want to but with Preview it doesn't give me these options.  Why and how can I change this?

    Yeah, the right click thing I got but only because it's a standard.  Unfortunately it doesn't all that on Facebook.  If I want to save a pic of my family members I have to use the download option and that just opens it in preview... hence the problem i'm running into.  BTW thanks for the help Barney.

  • How to include Chart in Web Page not as seperate image file?

    Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page. Is it not possible to surround the JPEG chart with other HTML so that I can keep my web page logo and menu etc on the same page as the chart?
    I can't find any examples which show how to surround your images with HTML as JCharts creates a JPG file and returns that in the Http Response e.g. "ServletEncoderHelper.encodeJPEG13(axisChart, 1.0f, response);".
    My environment is Java 1.4.2, Struts and Tomcat 4.1.30.
    Is there a way of drawing charts directly into a web page rather than displaying them on a seperate page as an image file?
    many thanks in advance,
    James.

    If you understand html, you know that to display an image, you must provide a reference to the image's location within the html code (there's no way to embed the image itself, directly in the html).
    An image's reference is just an url of where the image can be loaded from. Provide an url which goes to your dynamic chart servlet and requests the appropriate chart (i.e., you may have to pass in certain parameters in the url).

  • How to handle comma present in any filed while loading CSV file in APEX

    I am trying to import excel sheet data into a table. I have followed steps mentioned in below link and they work just fine with one exception.
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Exception is related to presense of comma (,) in any particular filed like- Address.
    How can I handle this situation? I am using APEX 3.2
    Thanks,
    Abhi

    Yes this is correct.
    but problem will occur when e.g check the foll. string.
    (1001,And I quote "This, will work")
    Here it is a comm(,) in b/w "This and will".
    due to this sqlldr interpret it as end of field. and throws an error.
    I had gone through expert one on one oracle, what it maintioned as,
    put an extra double quotes( " ) like " " to enclosed the double quoted string.
    This works fine. For small data it can be done manually.
    But for large data what condition can be put in the ctl file to achieve this?
    or is there any other way to achieve this?
    Thank you.

  • Mozilla should always give open with option while downloading any file

    in Mozilla, when i click on the file to download the dialog box comes with the options of either opening it or saving it. say i get open with option when i click it, if i toggle to save it and go ahead with that process. Mozilla is remembering the last event, and showing me save it option selected when i click on download that file. i would want to set the mozilla config to have open with option selected for any kind of download in my browser. how to do this?

    yes this is a way to keep giving me "open with" option for that type of the file. but still if user clicks save option. next time it will show save option clicked while downloading. am not sure if i have put the query correctly. is the problem statement clear?
    the reason i want this is because my script which is automated script for an application, when download is clicked i want the open option to be enabled so that i just do a key down option. if it is going to be different everytime. i cant use this script.

  • Import trouble while importing .VOB files

    Hello Y'all
    I am fairly new to Adobe Premiere Pro and I am just trying to import some VOB files and have no luck with it. Here is my problem.
    I took this footage with a sony handycam if it helps to know.
    So I right click then import then select my file then import.
    The file seems to import correctly so I try to play it back and almost halfway through playback the audio quits playing but the video continues on.
    I have gone into preferences to see if I am doing somthing wrong with the audio hardware and I have reimported the file quite a few times. I have also tried changing the preset and all to no avail.
    Do Y'all know what I am doing wrong or is there something that I am not doing (correctly)?
    Thanks
    Lawrence

    Try transcoding your VOB audio to something intraframe and/or uncompressed.  You can use MPEG Streamclip to convert the audio from your VOB to WAV or AIF, and just replace the audio in your Sequence Timeline.  That should get you where you need to go.

  • Order Import Erroring while importing closed Order

    Hello,
    I am working on importing closed order for historical purpose and order import is erroring without giving much details. I set the debug level to 5 and log file contains only one error' ORDER IMPORT FAIL DUE TO UNEXPECTED ERROR.
    I am attaching the insert statements for headers and lines. Please review and hope to get a solution from one of the OM gurus here.
    Thanks a bunch in advance.
    Anant
    INSERT INTO OE_HEADERS_IFACE_ALL
    (ORIG_SYS_DOCUMENT_REF
    ,ORDER_SOURCE_ID
    ,ORG_ID
    ,ORDER_NUMBER
    ,ORDERED_DATE
    ,ORDER_TYPE_ID
    ,PRICE_LIST_ID
    ,SOLD_FROM_ORG_ID
    ,SOLD_TO_ORG_ID
    ,CUSTOMER_NUMBER
    ,TAX_EXEMPT_FLAG
    ,TRANSACTIONAL_CURR_CODE
    ,INVOICING_RULE_ID
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,SALESREP_ID
    ,OPERATION_CODE
    ,CLOSED_FLAG --BOOKED_FLAG
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ORG_ID
    ,INVOICE_TO_ORG_ID
    ,SHIP_FROM_ORG_ID
    ,ORIG_SYS_CUSTOMER_REF
    ,ORIG_SHIP_ADDRESS_REF
    ,ORDER_CATEGORY
    ,BOOKED_FLAG)
    VALUES
    ('514'     -- ORIG_SYS_DOCUMENT_REF
    ,1001                    -- ORDER SOURCE ID
    ,'102'                    -- ORG ID          
    ,10001006               -- ORDER NUMBER
    ,SYSDATE               -- ORDERED_DATE               
    ,1021                    -- ORDER TYPE ID
    ,6024                    -- PRICE LIST ID
    ,102                    -- SOLD FROM ORG ID
    ,2632                    -- SOLD TO ORG ID      
    ,'UN1666'               -- CUSTOMER NUMBER
    ,'S'                    -- TAX_EXEMPT_FLAG
    ,'USD'                    -- TRANS CURRENCY_CODE
    ,-2                         -- INVOICING_RULE_ID
    ,1                         -- ACCOUNTING_RULE_ID
    ,5                         -- TERMS_ID
    ,SYSDATE               -- CREATION_DATE
    ,1150                    -- CREATED_BY
    ,1150                    -- LAST_UPDATED_BY
    ,SYSDATE               -- LAST_UPDATE_DATE
    ,-3                         -- SALESREP_ID
    ,'INSERT'               -- OPERATION CODE
    ,'Y'                    -- CLOSED FLAG
    ,'N'                    -- DROP SHIP FLAG
    ,NULL                     -- SHIP_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = SHIP_TO)
    ,1712                     -- INVOICE_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = BILL_TO)
    ,103                    -- SHIP FROM ORG ID
    ,NULL                    -- ORIG_SYS_CUSTOMER_REF
    ,NULL                    -- ORIG_SHIP_ADDRESS_REF
    ,'Order'               -- ORDER CATEGORY
    ,'N')                    -- BOOKED_FLAG
    COMMIT
    INSERT INTO OE_LINES_IFACE_ALL
    (ORDER_SOURCE_ID
    ,ORIG_SYS_DOCUMENT_REF
    ,ORIG_SYS_LINE_REF
    ,ORIG_SYS_SHIPMENT_REF
    ,INVENTORY_ITEM
    ,REQUEST_DATE
    ,ORDERED_QUANTITY
    ,ORDER_QUANTITY_UOM
    ,PRICE_LIST_ID
    ,UNIT_SELLING_PRICE --UNIT_LIST_PRICE
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,SALESREP_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATE_DATE
    ,LAST_UPDATED_BY
    ,OPERATION_CODE
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ADDRESS1
    ,SHIP_TO_ADDRESS2
    ,SHIP_TO_CITY
    ,SHIP_TO_POSTAL_CODE
    ,SHIP_TO_sTATE
    ,SHIP_TO_COUNTRY
    ,CLOSED_FLAG
    ,ITEM_TYPE_CODE
    ,INVENTORY_ITEM_ID
    ,DELIVERY_LEAD_TIME
    ,DELIVERY_ID
    ,TAX_EXEMPT_FLAG)
    VALUES
    (1001                    -- ORDER SOURCE ID
    ,'514'          -- ORIG SYS DOC REF
    ,'L4'               -- ORIG SYS LINE REF
    ,NULL               -- ORIG SYS SHIP REF
    ,'KR4R362478-07'     -- ITEM NUMBER
    ,SYSDATE               -- REQUEST DATE
    ,40                    -- ORDER QTY
    ,'EA'                    -- ORDER QTY UOM
    ,6024                    -- PRICE LIST ID
    ,95                -- UNIT LIST PRICE
    ,1                    -- ACCOUNTING RULE ID
    ,5                    -- PAY TERM ID
    ,-3                    -- SALESREP ID
    ,SYSDATE               -- CREATION DATE
    ,1150                    -- CREATED BY
    ,SYSDATE               -- LAST UPDATE DATE
    ,1150                    -- LAST UPDATED BY
    ,'INSERT'               -- OPERATION_CODE
    ,'N'                    -- DROP SHIP FLAG
    ,NULL --'1003 WASHINGTON AVE'     -- SHIP ADD1
    ,NULL --'SUITE 340'          -- SHIP ADD2
    ,NULL -- 'CHICAGO'          -- CITY
    ,NULL -- 60610               -- POSTAL
    ,NULL -- 'IL'               -- STATE
    ,NULL -- 'US')               -- COUNTRY
    ,'Y'
    ,'FG'
    ,7488
    ,1
    ,1
    ,'Y')
    commit
    ---------------------------------------

    Ganapati,
    Did you try passing the customer_number like -1 or some random high number that does not exist in hz_cust_accounts table in the account_number for party_type='PERSON' in the table oe_customer_info_iface_all?
    As I see this check for the first_name||last_name is done only of the customer number is not passed and customer_number is not used any where in the customer creation (if you are using automatic numbering for the customer accounts then you will obviously not passing any value to new_account_number which is used to created).
    Give it a try while I keep myself busy with my airport woes here.
    Thanks
    Nagamohan

  • How to get rid of annoying tool tips while editing SQL files

    I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:
    "Parameter help is not supported for extended stored procedures"
    Generally I don't care about that and it is annoying because it keeps appearing over the top of the text I want to read. Is there any way to stop Visual Studio doing this?
    a

    Hi aptitude,
    Thank you for posting in the MSDN forum.
    >>I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    Could you share us more information about this issue? You said that you edit the .sql file, which kind of app did you create which would use the .SQL file? Whether it is related to the SQL Server database project or others?
    If it is related to the SQL Server Database project, please post this issue to the SSDT forum:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=ssdt
    >>While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:"Parameter help is not supported for extended stored procedures".
    Reference:
    https://technet.microsoft.com/en-us/library/ms175170%28v=sql.105%29.aspx
    https://msdn.microsoft.com/en-us/library/ms188001(v=sql.105).aspx
    But if it is related to the SQL Server, to really repro this issue, and make sure that whether this warning is related to the SQL scrip or others, maybe you could select a better forum here:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    If I have misunderstood this issue, maybe you could share us a simple sample and the detailed steps in your new reply, so we could really repro this issue in our side.
    In addition, I did some research about the warning message:
    https://msdn.microsoft.com/en-us/library/ms173434.aspx?f=255&MSPPError=-2147217396
    The IntelliSense functionality of the Database Engine Query Editor does not support all Transact-SQL syntax elements. Parameter help does not support the parameters in some objects, such as extended stored procedures. For more information, see
    Transact-SQL Syntax Supported by IntelliSense.
    In SQL Server, it seems that it is related to the IntelliSense, I'm not very sure that whether it is related to the IntelliSense of VS IDE, but generally we could enable or disable IntelliSense under TOOLS->Option->Text Editor in VS
    IDE.
    Maybe you could disable IntelliSense in VS IDE, and then check it again.
    If I misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • FF_5 - Issue with Account Balance option while processing BAI file

    Hi All,
    We are getting a runtime error while trying to process the same bank file again through transaction FF_5 with 'Account balance' option checked. And the message says 'The ABAP/4 Open SQL array insert results in duplicate database records.'  with the command 'Insert_FEBPI'. This happens only when we have combination of uploaded and not uploaded statements in the bank file.
    I could find a OSS note for the same issue but that was for the file format MT942. We are using BAI file format. Can some one please help me in this regard.
    Thanks in advance!
    Regards,
    Jalendhar

    This is standard SAP functionality. If there are no applicable notes, then you should open an OSS message.
    Rob

  • How to prevent arrayindex out of bounds exception while unziping the files

    hi all ,
    i am new to java.Can any body help me to solve my problem.here is my problem.
    here i am trying to unzip a ziped file. but i am getting arrayindex out of bounds exception at line no 12 (args[0]), my quesion is to how to prevent arrayindex out of bounds exception ? please give me clear explanation.
    public class UnZip2 {
    static final int BUFFER = 2048;
    public static void main (String args[]) {
    try {
    BufferedOutputStream dest = null;
    BufferedInputStream is = null;
    ZipEntry entry;
    ZipFile zipfile = new ZipFile(args[0]);
    Enumeration e = zipfile.entries();
    while(e.hasMoreElements()) {
    entry = (ZipEntry) e.nextElement();
    System.out.println("Extracting: " +entry);
    is = new BufferedInputStream
    (zipfile.getInputStream(entry));
    int count;
    byte data[] = new byte[BUFFER];
    FileOutputStream fos = new
    FileOutputStream(entry.getName());
    dest = new
    BufferedOutputStream(fos, BUFFER);
    while ((count = is.read(data, 0, BUFFER))
    != -1) {
    dest.write(data, 0, count);
    dest.flush();
    dest.close();
    is.close();
    } catch(Exception e) {
    e.printStackTrace();
    }

    how you run it?
    java Unzip2?
    args[0] refer to first parameter in run command, so u should run it by giving a parameter. eg:
    java Unzip2 someFile.zip

Maybe you are looking for

  • Installed ios7 on iphone 4, now my phone wont turn on or recover?

    I downloaded ios 7 over night and it worked fine, but yesterday just turned off and wont turn on again. I connect it to a wall charger and the apple logo appears then goes off and this keeps repeating. I connected it to itunes doing the thing where y

  • How to move a symbol + reference guide

    Hi, I apologize for being a noob.  I installed Animate one week ago and have a prototype due in 3 days, so I'm just going to ask: 1)  How do I move/transform/translate a symbol from code?  Either the timeline, the symbol itself, or another symbol wou

  • Error while using BAPI AMDP_BAPI_CALL_ON_TRANSFER

    Hi, I am using the BAPI AMDP_BAPI_CALL_ON_TRANSFER for inter company asset posting. The sy-subrc is zero but the return table(bapiret2) is empty and is not returning any values. Please advise what can be the possible reason for this and how to rectif

  • IPhoto no longer will import my CR2 Raw Files.

    I am running OS 10.6.8, and iPhoto 9.2.1, with Raw Capability 3.13.  I can no longer import my CR2 files into iPhoto (Canon T3), it tells me the files are unrecognizable.  iPhoto will load them in the import window, so it does see the photos, just wi

  • Having trouble opening emails

    I am having opening some emails. they just never open...They little circle keeps spinning but the email will not open.