Problem in converting AppleWorks into RTF

Hi!
I have a bunch of .cwk files (AppleWorks) that I need to convert into RTF format.
In the script I use I have a proble with the following code:
tell application "AppleWorks"
activate
open MonFichier
save MonFichier in file (dossier & name_Fich & ".rtf") as file type "RTF" using translator "RTF"
close MonFichier saving no
end tell
After execution I end up with a brand new file with .rtf extension but that is not a RTF file. If I try to open it with Textedit it does not open. Strangely enough, if I open the cwk file manually and save it as RTF manually, everything is fine....
Can someone help me on this?
Pascal

Hello Pascal,
I think you're seeing the known problem of AppleScript 2.0 used with some old program such as AppleWorks 6.
Briefly, AW6's translator name parameter must be in plain string not Unicode text while all text literal is Unicode text in AppleScript 2.0.
A workaround is to use data literal of class TEXT. Something like the following code.
--CODE
tell application "AppleWorks 6"
open MonFichier
tell document 1
save in file (dossier & name_Fich & ".rtf") using translator «data TEXT525446» -- "RTF"
close saving no
end tell
end tell
--END OF CODE
cf.
A relevant topic:
Script failing to translate AW to DOC
http://discussions.apple.com/thread.jspa?threadID=1650891&tstart=0
Hope this may help,
Hiroto

Similar Messages

  • Problem in converting english into spanish

    In one of our POC i need to create a custom workflow and calling it from HTML page.
    I did that by making a self registration workflow and put it under "..user/anonlogin.jsp"
    and then by some minimal customization i called it using link referrence "http://localhost:8080/idm/user/anonProcessLaunch.jsp?id=Self+Registration"
    it is working fine
    Now my problem is that i need to show the form according to the language store in the user session from HTML page.
    Now when i first go to "http://localhost:8080/idm/user/login.jsp" and then go to self registration page it converts the whole page into desired language preferrence but when i directly hit the url "http://localhost:8080/idm/user/anonProcessLaunch.jsp?id=Self+Registration" it doesn't convert my English language into spanish language which i hardcoded into process launch.jsp using
    form.setPostURL(response.encodeURL("user/anonProcessLaunch.jsp?lang=es " + "&cntry=US"));
    Please suggest the alternate way or where me miss in my way .
    Thanks a lot

    Ok , that is clear the customer has another query. He is trying to convert a pdf Arabic file into word formate but it is showing arabic font which is not in a proper form.i am attaching the print screen .

  • Audio problem when converting iMovie09 into FCE

    I originally converted analog tapes to digital and captured video/audio into iMovie 09. This worked well
    When then exporting via .xml and importing into FCE, the video portion worked well, but the audio portion is barely audible. Even when I turn the volume all the way up and use the decibel adjustments, the audio is hard to hear
    What should I do?
    Thanks for any help on this question
    Ron

    Tom -- the original analog tape was 8mm, recorded on a Sony Camcorder. In iMovie-09, I don't have any problem after having converted the analog tape to DV. It's becomes a problem (buzzing sound) when it export via XML into FCE4.0.1

  • Problem in Converting Database into Archivelog mode (Oracle 10G)

    Hi Team,
    I come across a strange problem in the ORACLE 10G Server.
    I am converting database mode from NoArchivelog to Archivelog mode through RMAN in 10G.
    Now When I execute these following commands through RMAN prompt it works properly as shown below?
    C:\>rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 30 18:01:08 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: RAVI (DBID=4025722893, not open)
    RMAN> shutdown immediate;
    using target database control file instead of recovery catalog
    database dismounted
    Oracle instance shut down
    RMAN> STARTUP MOUNT;
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 167772160 bytes
    Fixed Size 1247876 bytes
    Variable Size 79693180 bytes
    Database Buffers 79691776 bytes
    Redo Buffers 7139328 bytes
    RMAN> SQL 'ALTER DATABASE ARCHIVELOG';
    sql statement: ALTER DATABASE ARCHIVELOG
    RMAN> ALTER DATABASE OPEN;
    database opened
    RMAN>
    But this same script when i writes in the backup.ora file & pass to Rman prompt it fails,
    File backup.ora contains...
    run
    SHUTDOWN IMMEDIATE;
    STARTUP MOUNT;
    SQL 'ALTER DATABASE ARCHIVELOG';
    ALTER DATABASE OPEN;
    passed to RMAN as follows...
    C:\OracleCode\BACKUP>"C:\oracle\product\10.2.0\db_1\bin\RMAN.EXE" target /"connect target SYSTEM/sreedhar@RAVI" log="C:\ORACLE~2\LOGS\backup_log.log" append cmdfile="C:\ORACLE~2\BACKUP\backup.ora"
    RMAN> 2> 3> 4> 5> 6> 7> 8>
    then it fails giving the following errors...
    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 11/30/2006 18:05:59
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Recovery Manager complete.
    The same thing is working in the Oracle 9i but not in the Oracle 10G.
    Can Anybody plz help me in this?
    Regards,
    S.Tiwari
    .

    export ORACLE_SID=<SID>
    rman target /cmdfile="C:\ORACLE~2\BACKUP\backup.ora"
    it will connect to the default SID, there's no such thing as a default SID, what do you mean?
    But what if there are more that one SID available & I
    want to connect to SID other than the default SID.just specify the desired SID prior starting rman.
    more over the same string is working with 9i but not
    with 10G.maybe due to a bug?
    to summarize, you have two options it you would like to start up the instance:
    either you specify the SID prior starting rman and use os authentication
    or
    you register the instance statically and use oracle authentication.
    regards,
    -ap

  • Garageband volume problem after converting project into mp3 formats

    Every time after I convert my music project into MP3 by clicking "send song to i-tune" in GarageBand, the volume of the music always come out to be softer than the original project before its been converted. Is there something I could do to fix that or to boost up the volume after I convert it?

    Boattt wrote:
    Is there something I could do to fix that or to boost up the volume after I convert it?
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportvolumetoolow
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Problems when converting square into button symbol

    Hey, I got a question about converting square that has linear gradient no border and hard edge into a button symbol each time I do this the size of the symbol is always about 1px wider or taller or both, this doesnt happen when i try to do the same with square bitmap with filled color. (FW CS4)
    Please explain if anyone got any clue whats going on with it.

    Fireworks CS4, WinXP Pro:
    I create a rectangle 100 x 100, linear fill, hard edge. Select > F8 > Convert to Symbol - button. Symbol is exactly 100 x 100 px after conversion to a symbol (button type) -- I cannot reproduce what you see...
    Maybe someone else can help you better...

  • Problem in converting character into date datatype

    Hi Experts,
    I am developing an oracle function in which I am passing an input in varchar2 and I want the return that varchar value in date datatype.
    We are using to_date(to_char(:input,'YYYY-MON-DD')) but this is giving the output in simple format which is defined by the oracle i.e. 'MM-DD-YYYY'.
    We need the output in 'YYYY-MON-DD' and that too in date datatype.
    I guess you understand my question.
    Waiting for your response.
    Thanks

    i think you understand this :
    SQL>  select to_date('2013-06-13','yyyy-mm-dd') from dual;
    TO_DATE('
    13-JUN-13
    SQL> alter session set nls_date_format = 'yyyy-mm-dd';
    Session altered.
    SQL> select to_date('2013-06-13','yyyy-mm-dd') d  from dual;
    D
    2013-06-13
    SQL> alter session set nls_date_format = 'dd.mm.yyyy';
    Session altered.
    SQL> select to_date('2013-06-13','yyyy-mm-dd') d  from dual;
    D
    13.06.2013
    SQL> exit
    but if you have windows except alter session set you will need to see REGEDIT and Regional parameters.

  • High Priority:-How to convert XMLSchema file (.xsd ) into .rtf file

    Hi...
    Hope you are doing well.
    I request you to help us with an issue encountered on 'generating reports using XML Publisher', which is described as followed.
    We have taken report from Oracle Apps and stored as XML file , then converted into XML Schema (.xsd) through Stylus Studio and uploaded that file into XML Publisher Desktop.
    Now, we want to convert .xsd into .rtf file for the requirement.
    Please revert back if the issue is not clear enough.
    Your help is needed and appreciated.
    Thanks&Regards,
    Suresh.

    Hi Suresh,
    XSD file is an XML Schema Definition file, it is used to validate and XML file in making sure elements are of the correct datatype, mandatory elements exist etc...
    It cannot be used to create an RTF file, as there is no layout definition within an XSD.
    You will need to create the RTF manually in this case using MS Word and Template Builder.
    I don't fully understand what you are trying to acheive, so maybe you could clarify further, and I may be able to help a little more.
    Many Thanks,
    Cj

  • How to convert .doc file into .rtf file in Java?

    Hello All,
    I want to convert doc file into rtf format in java and for the same i am not getting any help so pls suggest some solution for that.
    Thanks and Regards
    only1Vinay

    MS-Word formats (DOC) are notorious for not being standardized from one version to another, so what ever you get will be version specific. If you must do the conversion, I suggest you do a MS-Script in Word to do it or one of the .Net languages. As stated the Word format from version to version is not standardized.

  • Problem in converting Spool Request into PDF format

    Hi,
      I am facing problem to convert spool request (which store output of sap script) in to PDF format. Actually I have converted it with function module 'CONVERT_OTFSPOOLJOB_2_PDF' and it is working properly but the problem occurs where the BOLD fonts are used. I am unable to see the Text/Address where i have used Bold Font in script (PDF FORMAT). Even though in (SPO1) spool request shows every thing perfectly (along with Bold Font). It will great if you could suggest me something.
    Thanks,
    Pradeep

    Hi Pradeep,
    Use ,
    Closing the Sapscript, we save data (OTF) in a table
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    otfdata = t_otfdata
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    OTHERS = 5.
    DATA: BEGIN OF t_otfdata2 OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_otfdata2.
    Move OTF data to another table with lenght 255
    LOOP AT t_otfdata.
    CONCATENATE t_otfdata-tdprintcom t_otfdata-tdprintpar INTO t_otfdata2.
    APPEND t_otfdata2.
    ENDLOOP.
    Convert OTF format to PDF
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'PDF'
    devtype = 'PRINTER'
    FUNCPARA =
    len_in = len_in
    IMPORTING
    len_out = len_out
    TABLES
    content_in = t_otfdata2
    content_out = t_pdfdata
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    Have a look at Progs. RSTXPDF4 and RSTXPDFT2 for converting the Spool to PDF.
    Regards,
    Raj
    Message was edited by: Rajasekhar Dinavahi
    Message was edited by: Rajasekhar Dinavahi

  • Alignment problem in converting smartform printpreview into PDF

    Hi all,
    I am getting some alignment problem in converting smartform printpreview into PDF format, i.e the format of PDF is different from printpreviw of smartform.
    kindly suggest something so that alignment is not changed while converting to PDF.
    Regards,
    Sumalatha

    use below f.m to convert it into 255 characters....
         CALL FUNCTION 'QCE1_CONVERT'
            TABLES
              t_source_tab         = i_tline
              t_target_tab         = so_ali[]
            EXCEPTIONS
              convert_not_possible = 1
              OTHERS               = 2.

  • Convertion into RTF format failed

    I am developing a FM plugin to convert .fm files into .rtf file format. I am using the following code for conversion. But the conversion is not happening.
    docId = F_ApiSimpleOpen("C:\\tmp\\Untitled1.fm", False);
    docname = F_ApiGetString(docId, docId, FP_Name);
    params = F_ApiGetSaveDefaultParams();
    i = F_ApiGetPropIndex(&params, FS_FileType);
    params.val[i].propVal.u.ival = FV_SaveFmtFilter;
    i = F_ApiGetPropIndex(&params, FS_SaveFileTypeHint);
    params.val[i].propVal.u.sval = F_StrCopyString("0001ADBIRTF");                                 
    saveId = F_ApiSave(docId, "C:\\tmp\\Untitled1.rtf", &params, &returnParams);
    F_ApiDeallocatePropVals(&params);
    F_ApiDeallocatePropVals(returnParams);
    i am using FDK7 for development
    any idea ?

    Vibin, you would probably find more FDK support on the Framers Dev group,
    <*> To visit your group on the web, go to:
        http://groups.yahoo.com/group/frame_dev/

  • How do I open my old Appleworks documents which have turned into Unix Executable Files?  I would like to convert them into Pages documents.

    How do I open my old Appleworks documents which have turned into Unix Executable Files?  I would like to convert them into Pages documents.  I also have old Word Perfect documents which have become similarly unopenable.

    Best bet might be to try opening them using LibreOffice [free] and save them to .doc.
    Do you really want to save them as .pages files? You are jumping from the frypan into the fire. Yet another proprietary format that Apple has again deadended with no working translation.
    Peter

  • Is it allowed to convert pdf documents into rtf using Adobe SDK

    Hello
    Can I convert pdf document into rtf using Adobe SDK?
    Is available this functionality on c# code? Which assemblies i can use for it?

    which is why it has to be on the desktop and not a server.
    I didn't quite understand your statement. Could you, please, explain, why I can't use it only on the desktop and not a server? And, could you provide documentation, where I can find information about converting documents using c#?

  • Mail is converting "some" PDF's into RTF's - why?

    A buddy and I were just discussing how we have noticed over the past couple of months that some of our emails turn PDF files into RTFs. We aren't sure why this started or how it is possible. Anybody have insights into this one? I did upgrade to iWork & iLife 09 - is that it? Ideally we just want to view attachments as PDF's and not have to go through another program to open the RTF.

    Greetings,
    What you're describing would seem impossible. Mail has no capability whatsoever to convert from one file format to another. PDF files remain that way unless you use a third-party conversion tool, so the files you're referring to as changing to RTF never did; they were RTF to begin with.
    Can you provide URLs for one or more of these "self-converting" PDF files?

Maybe you are looking for

  • Window.event does not working in Firefox 4.0 and also window.event.ctrlKey ?

    hi, I'm using Microsoft virtual earth map 6.2 (bing Map) in my application.On map showing number of images.On Each image there is onClick event that select image if user press left mouse button while holding Ctrl key .For this I wrote java-script fun

  • Exchange rate differencies

    Dear members, I am trying to make postings to an exchange rate differencies account but this seems not to be going through. Here is my scenario: Accounting documents (RV) are created from SD to financial accounting with status not cleared. When I cle

  • X220 Clean Install: It is time.

    I've had an X220 for three years now running essentially the original factory install, which I restored from the built-in back up onto an mSATA SSD (80GB Intel 310) and then imaged over to a replacement (256GB Plextor M5M) last year. I'd like to now

  • Javax.transaction.SystemException: Timeout during commit processing

              In my Workshop 8.1 SP2 project I have a Custom Java Control whose methods I call           from my JPF. From that custom control I create a remote connection to a Weblogic           6.1 Application server. I execute remote methods and get t

  • Lumia 900 Camera bug

    Why there is no firmware update to fix the camera bugs of Lumia 900 up to the moment. It is almost a year from the day launched.