Converting from GMT to EST

Has anyone done date conversion from GMT to EST with the Data API? The API for it is such a cluster-f!@*.

Calendar.setTimeZone and TimeZone look worth investigating.

Similar Messages

  • Converting a timestamp field from GMT to EST

    Hi
    I have to convert the timestamp field coming from the source from GMT to EST.
    CREATE TABLE X
    TS_FIELD TIMESTAMP(6)
    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');
    I need to convert the above timestamp field from GMT to EST in 24hour format.
    I tried it doing,but I am getting hours conflict with the day error.
    I have tried the below one and milliseconds being set to zero's
    select X,
    TO_timestamp(TO_CHAR(CAST(FROM_TZ(CAST(TO_DATE(TO_CHAR(X,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    ,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    AS TIMESTAMP),'GMT') AT TIME ZONE 'US/EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS.SSSSS'),'YYYY-MM-DD HH24:MI:SS.SSSSS')
    FROM X
    Please help me in this regard.I am trying in parallel as well.
    Thanks in advance
    KVB

    Not clear what are you trying to achieve..Why are you casting as DATE?
    SQL>  select ts_field,
      2          cast(from_tz(ts_field,'GMT') AT TIME ZONE 'EST' as timestamp) t
      3   FROM X;
    TS_FIELD                                                                    T
    07-JAN-13 02.00.06.597000 PM                                                07-JAN-13 09.00.06.597000 AM
    07-FEB-13 02.00.06.676000 PM                                                07-FEB-13 09.00.06.676000 AM
    07-MAR-13 12.36.14.260000 PM                                                07-MAR-13 07.36.14.260000 AM
    07-APR-13 12.36.56.713000 PM                                                07-APR-13 07.36.56.713000 AM
    07-MAY-13 03.46.48.800000 AM                                                06-MAY-13 10.46.48.800000 PM

  • How to change Report Server 10.1.2 from GMT to EST

    We have the 10.1.2 Oracle Application Server up and running but the time on the Report Server is GMT. How can the time be changed to EST? Oracle suggested changing a value in a parameter file and a Windows environment variable, neither of which worked. Now, they are saying reinstall the Web Server. Is there any other way? How is this set during the install?
    Thanks,
    Dave

    hi
    it was better if you created table first.
    now create table for your server name and use select into statment.
    and after this if any happend you will be able to change the server name easily by
    modifying table.
    hope this helps u.
    sarah

  • Oracle SQL HELP with convert GMT to EST and DST and Date offset

    Hi, I have a query that does not seem to work trying to convert a date field that is in GMT to est and using extract(timezone_hour FROM TO_TIMESTAMP_TZ as an offsetr
    HEre is my sql
    dtl.start_dt_gmt + (extract(timezone_hour FROM TO_TIMESTAMP_TZ( dtl.start_dt_gmt,'DD-MON-YYYY HH24:MI:SS TZH:TZM'))/24 ) START_DT_Local
    If the date (dtl.start_dt_gmt) is may 1 and gmt starts at 04:00 AM , the extract offset produces -4
    However, if the date (dtl.start_dt_gmt) is Feb 1 which begins at 05:00 AM GMT, the date offset still gives 04. What am i doing wrong? Any help would be appreciated. Thanks.
    Saul

    If your data is not associated with timezone then you'll have to use something like
    case when dt between A and B then dt-1/24 else dt end; <-- This will give you 1 hour back of EDT. So, as far as concern at database level, it is nothing to do at db level, because db is used by application, so you need to code in the app.
    Oracle never actually changes a TIMEZONE column value when you set your system to be on daylight savings time. There are several built-in DST DATE conversion functions for changing to daylight savings time:
    current_date
    current_timestamp
    localtimestamp
    dbtimezone
    sessiontimezone
    extract
    from_tz
    to_timestamp
    to_timestamp_tz
    to_yminterval tz_offset
    http://dba-oracle.com/t_oracle_daylight_saving_time_dst_date_conversion.htm
    Regards
    Girish Sharma

  • How to Convert  GMT in EST timezone

    We are comunicating with a system,which send date and time in this format - GMT Date and time in YYYYMMDDHHMISS where HH is 24 hour format.Our server has EST (US) time zone. Now I have to validate if the received time stamp from our client is with in +/- 5 minutes, we need to allow him to do some operation.So How can I compare the time stamps in GMT and EST.Which java classes I need to use to accomplish it, any code snippet wil be hepful
    thanks in advance
    pary

    Try this it may help you.
              Date date = new Date();
             DateFormat estFormat = new SimpleDateFormat();
             DateFormat gmtFormat = new SimpleDateFormat();
             TimeZone gmtTime = TimeZone.getTimeZone("GMT");
             TimeZone estTime = TimeZone.getTimeZone("EST");
             estFormat.setTimeZone(gmtTime);
             gmtFormat.setTimeZone(estTime);
             System.out.println("GMT Time: " + estFormat.format(date));
             System.out.println("EST Time: " + gmtFormat.format(date));Result::
    GMT Time: 10/5/05 5:37 AM
    EST Time: 10/5/05 1:37 AM

  • Function Module To Change TIME from GMT to CST

    Hello All,
    Can anyone tell me if there is any Function Module to convert the TIME from GMT to CST?
    Regards

    Hi Sunil,
    use the following code.
    DATA :
      timestamp like TZONREF-TSTAMPS,
      time      like sy-uzeit,
      date      like sy-datum.
    The following function module is used to convert the
    time and date into GMT timestamp
    CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
      EXPORTING
        i_datlo           = sy-datum
        i_timlo           = sy-uzeit
        I_TZONE           = 'INDIA'
    IMPORTING
       E_TIMESTAMP       = timestamp.
    The following function module is used to convert the
    above obtained timestamp to PST timezone date and time.
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp       = timestamp
        I_TZONE           = 'CST'
    IMPORTING
        E_DATLO           = date
        E_TIMLO           = time.
    write :/ 'Date and Time at PST zone is ',date, time.
    Reward if helpful.
    Thanks,
    Naveen.

  • How to change '06-DEC-06  : Sites Converted From 005 To 001' to '06-Dec-06'

    hi all i have one requirement.
    Parameter : p_text1(80) type c value ‘06-DEC-06  : Sites Converted From 005 To 001’,
                P_text2(80) type c value ‘As Country Has Move Off EST "RED" List’.
    Using below logic
    AT SELECTION-SCREEN.
      TRANSLATE P_TEXT1+1(69) TO LOWER CASE.
      TRANSLATE P_TEXT2+1(69) TO LOWER CASE.
      TRANSLATE P_TEXT3+1(69) TO LOWER CASE.
      DATA : CTR TYPE I.
      DATA : L TYPE I.
      DATA : POS TYPE I.
      DATA : POSB TYPE I.
      L = STRLEN( P_TEXT1 ).
      DO L TIMES.
        POS = SY-INDEX.
        POSB = SY-INDEX - 1.
        CHECK POS >= 2.
        IF NOT P_TEXT1POS(1) IS INITIAL AND P_TEXT1POSB(1) IS INITIAL.
          TRANSLATE P_TEXT1+POS(1) TO UPPER CASE.
        ELSEIF NOT P_TEXT2POS(1) IS INITIAL AND P_TEXT2POSB(1) IS INITIAL.
          TRANSLATE P_TEXT2+POS(1) TO UPPER CASE.
        ELSEIF NOT P_TEXT3POS(1) IS INITIAL AND P_TEXT3POSB(1) IS INITIAL.
          TRANSLATE P_TEXT3+POS(1) TO UPPER CASE.
        ENDIF.
      ENDDO.
    when i ran this report output is coming like '06-dec-06  : Sites Converted From 005 To 001' but my requirement is '06-Dec-06  : Sites Converted From 005 To 001'
    second text is As Country Has Move Off EST "RED" List
    my requirement is As Country Has Move Off EST "RED" List

    Hi maheedhar.t,
    Would it be ok if you just change your parameters like this so that there is no longer a need to TRANSLATE the value?
    SELECTION-SCREEN BEGIN OF BLOCK A.
    Parameter: p_text1 TYPE rlgrap-filename DEFAULT '06-DEC-06:Sites Converted From005 To 001'.
    Parameter: p_text2 type rlgrap-filename DEFAULT 'As Country Has Move Off EST "RED" List'.
    SELECTION-SCREEN END OF BLOCK A.
    If your parameters are like this it will not be translated to ALL-CAPS in the first place.
    Hope this gives you an idea.

  • DST prob for conversion from US/Eastern- GMT but not from GMT- US/Eastern.

    Hi folks,
    I'm running the following SQL against a Oracle 10.2.0.1 g server using Oracle SqlDeveloper 1.5.3 & then again using SQLPlus 10.2.0.1.0.
    I'm attempting to provide SQL that highlights the jump forward by one hour at 2am US/Eastern on 14th Mar 2010.
    In order to do this I've converted times from GMT into US/Eastern using the oracle function from_tz and to_timestamp.
    The following sql statements are suffixed with a 'correct' or 'incorrect' as to whether they correlate to what I would expect and indeed to the time returned from the World Clock website.
    =======================
    = Via Oracle SqlDeveloper 1.5.3
    =======================
    -- The first section of selects highlight the jump of 1 hour forward that occurs on the 14th of March 2010 by converting the GMT time to the corresponding US/Eastern time and the second block reverses the conversion.
    select from_tz(to_timestamp('14-MAR-2010 0500' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 00:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0600' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0659' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:59:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0700' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0701' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:01:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0800' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 04:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0000' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 05:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0100' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06:00:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0159' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06:59:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0200' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 07:00:00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('14-MAR-2010 0300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08:00:00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('14-MAR-2010 0301' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08:01:00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('14-MAR-2010 0400' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 09:00:00.000000000 US/EASTERN incorrect
    which is as I would expect. At 6:59am GMT the time in US/Eastern is 1:59 am, however, at 7:00am the time in US/Eastern is now 3:00am. This correlates to the times I get back when I perform the same calculations using the converter at the WorldClock.
    http://www.timeanddate.com/worldclock/converter.html
    However when I attempt to perform the same conversions except in reverse i.e. from US/Eastern to GMT I get different results.
    -- everything is fine up until the actual time of the change over (2am US/Eastern). With the 2:00am time though I would expect Oracle or perhaps even the SqlDeveloper client to indicate either of the following :-
    a) the time 14-MAR-10 02:00am US/Eastern is actually a non-existant time as per the WorldClock.
    b) that it's defaulting the time 14-MAR-10 02:00am to 14-MAR-10 03:00am US/Eastern
    instead the results proceeding the sql statements are output and for any time on/after 2am they are 1 hour behind their correct GMT times as per the world clock.
    I understand that there is a patch for timezone's from 10.2.0.1 to 10.2.0.4 that should address this, however, the reason I'm posting this is because when I run the above SQL in sqlplus against the same server I get different results except this time both conversions are incorrect.
    =======================
    = Via SqlPlus 10.2.0.1.0
    =======================
    select from_tz(to_timestamp('14-MAR-2010 0500' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 00.00.00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0600' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01.00.00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0659' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:59:00.000000000 US/EASTERN correct
    select from_tz(to_timestamp('14-MAR-2010 0700' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 02.00.00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('14-MAR-2010 0701' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:01:00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('14-MAR-2010 0800' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03.00.00.000000000 US/EASTERN incorrect
    select from_tz(to_timestamp('13-MAR-2010 2300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 04.00.00.000000000 GMT correct
    select from_tz(to_timestamp('14-MAR-2010 0000' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 05.00.00.000000000 GMT correct
    select from_tz(to_timestamp('14-MAR-2010 0100' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06.00.00.000000000 GMT correct
    select from_tz(to_timestamp('14-MAR-2010 0159' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06.00.00.000000000 GMT correct
    select from_tz(to_timestamp('14-MAR-2010 0200' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 07.00.00.000000000 GMT incorrect
    select from_tz(to_timestamp('14-MAR-2010 0300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08.00.00.000000000 GMT incorrect
    select from_tz(to_timestamp('14-MAR-2010 0301' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08.01.00.000000000 GMT incorrect
    select from_tz(to_timestamp('14-MAR-2010 0400' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 09.00.00.000000000 GMT incorrect
    so it's as if the Oracle Client SqlDeveloper somehow intervenes as the results come back from the server an adjusts it for the first set of conversions but not the second.
    Basically it looks like I need the patch for the timezones for 10.2.0.1 but what about the Clients? Is there patches I then need for them? Would the SqlPlus client that ships with 10.2.0.4 return the correct results or once the patch is applied to the server.
    Has anyone else encountered this problem and if so would they be able to point me in the direction of a resource describing and resolving it?
    Thanks,
    Mark.

    Hey Robert,
    Yes indeed we are paying for Oracle support? As far as I know I logged in through metalink in an effort to investigate this problem.
    Our DBA upgraded from 10.2.0.4 to 10.2.0.1 and all the inconsistency went away thankfully.
    Thanks for taking the time to reply to me,
    Mark.

  • Changet the time from GMT to CST

    Folks,
    We need to change the time of our portal server from GMT to CST . Where we need to change the setting
    Thanks,
    Manish

    Hi Sunil,
    use the following code.
    DATA :
      timestamp like TZONREF-TSTAMPS,
      time      like sy-uzeit,
      date      like sy-datum.
    The following function module is used to convert the
    time and date into GMT timestamp
    CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
      EXPORTING
        i_datlo           = sy-datum
        i_timlo           = sy-uzeit
        I_TZONE           = 'INDIA'
    IMPORTING
       E_TIMESTAMP       = timestamp.
    The following function module is used to convert the
    above obtained timestamp to PST timezone date and time.
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp       = timestamp
        I_TZONE           = 'CST'
    IMPORTING
        E_DATLO           = date
        E_TIMLO           = time.
    write :/ 'Date and Time at PST zone is ',date, time.
    Reward if helpful.
    Thanks,
    Naveen.

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • The bullet list, numbered list and the normal text is not converting when I am converting from RH 9 to MS Word 2010

    Hi all,
    Greetings for the day
    I am created a new CSS in Robohelp 9. I have also created a new template in Word 2010. The style sets for different information elements like (Heading, bullets, body text, ) are more or less same between the CSS and the new templates. I am also able to map the .css styles to Word template when I am converting from RH to Word as I am getting the necessary option in the drop-down list.
    However, when the output is generated, the bullet, the numbered list and the body text is not converting at all. The body text works sometimes. However, the numbered list and bullet list is coming out as images.
    If anybody knows the solution, I can share the .css and Word template.
    Thanks in advance.
    Regards,
    Parag Deb

    Create a new project with two or three topics containing lists of both types. Generate a printed output that shows the problem. Then zip it up and send it to me. See the Contact page on my site for instructions.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I convert from pdf to word? I see an option to do so, however, when I click on it, Ia box opens...

    when I try to convert from pdf to word, a box opens and suggests I am to click on (select) the file I want to convert. It sounds all well but it does not work. I really really just want my files back in word, all of them, no matter, because after having to reinstall windows 7 (done by techs) and me having to re-download all my HP drivers, and tools, and other software, which I imagine included adobe reader, now I see some pdf files won't open. It says, "access denied" and boy that really makes me wantt o scream. I am the ONLY user, it is my notebook, I am the administrator so I can't figure out why some files open and some don't. I can't ascertain any difference.
    I would be grateful for any help. This has become just too exhausting. After reinstalling sooooooooo much, then to have to go through this with what is a free application? I say I think not.
    This should NEVER happen with any free application and boy there is NO help to be found. They blow you off the phone fast telling you it's a free application. Then why are you putting in this kind of  stuff that it won't open? This is NOT a shared notebook, it's mine. I am the only user, personal use.
    HP probook, if anyone needs that info.
    Please, will someone help?
    I would be so grateful.
    thanks,
    Gina

    Gee, Pat, this is a  real big help.
    Nobody could possibly think anyone would ask for help without first trying to fix the issue oneself. Or maybe you do. I have opened the file and looked under security. I have changed it to owner-notebook (which is what the techs called me) and clicked accept but geepers it didn't work.
    Maybe someone else has an idea.
    Take Ownership of a File or Folder
    The above should be a link. At least I copied and pasted the link. I did what was stated in there. It isn't like brain surgery. But it is not working. I ended up being able to open some pdf files after transferring them from one partition category to another. I wish it was that easy as you seem to think.
    Thanks for the help. Have a great year.

  • How do you stop DNG Converter from embedding Adobe's ACR default settings instead of custom settings?

    I notice that the new version of Adobe DNG Converter (8.6, and maybe earlier) appears to place Adobe's ACR defaults in the converted file.  Thus, the converted files open up in Bridge with an indication that they already have settings made, and, hence, ACR does not apply the custom camera settings.  One has to Clear Settings first in Bridge, then open in ACR.
    This behavior is new, perhaps to 8.6.  But it's presence defeats the purpose of having custom Camera Defaults.
    Is there any way to prevent DNG Converter from installing settings?

    ssprengel wrote:
    What do you mean by “custom camera settings”?  Do you mean you’ve changed the Camera Raw defaults for a particular camera and those aren’t being seen until you do a Reset?  Or do you mean some sort of Nikon-settings that Adobe never looks at?
    Also at what point in the workflow are you converting these files, just after copying them to your hard-disk and before touching them with any other Adobe software, or after they’ve been adjusted in Nikon software, or after they’ve been adjusted in Bridge/ACR, initially as NEFs?
    I mean my custom camera defaults that are set by the Save New Camera Defaults for a given camera.
    My workflow is to take my original raw files first into Adobe DNG Converter.  I then open the folder in Bridge.  At this point I notice that my original raw files remain unaltered (there is no "settings" icon in the top right corner – circle with two lines and up-arrows – in the image's thumbnail), but the converted dng's (otherwise untouched and unopened in ACR) have a "settings" icon.  When I open the original raw file in ACR, it opens using my custom camera defaults.  When I open the otherwise virgin dng in ACR, it opens using the Adobe defaults (the same defaults that would be employed if no custom camera default had been set).
    This behavior is new.  DNGs formed by earlier versions of the DNG Converter did not apply any settings to the converted file, and when they opened in Bridge, they were given the custom camera settings.
    In order to retain the old (and proper) behavior, I now have to take the just-converted documents into Bridge, select them, and immediately apply Develop Settings/Clear Settings.  That gets rid of the settings that have been installed by the DNG Converter (as well as the "settings" icon on the thumbnail).
    I notice there is a new feature in Adobe DNG Converter 8.6, namely, a panel-specific toggle between the settings and the default settings. This indicates to me the likelihood that Adobe has been making some alterations with the settings that is having unintended consequences.  It clearly is not proper for DNG Converter to be adding (installing) settings, because that prevents the custom camera default settings from being applied, and hence defeats the purpose of the custom camera default settings.

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

  • How do I convert from PAL to NTSC in compressor?

    I have a project I converted from mp4 file to Apple Pro Res to edit it in FCP.  I exported using Compressor and tried to import the files to DVD Studio Pro.  It said it can't put PAL files into an NTSC project.  I didn't even realize it was filmed in PAL (yes, I have the rights to use the footage).  How do I convert the files from PAL to put it into FCP...in Compressor?  If so, how?  Thanks for any help!

    To  convert the 25fps PAL file to a 29.97fps file staying within the ProRes codec:
    • Open up compressor. In the Settings window select: Apple>Formats>Quicktime>ProRes 422
    • Select the "Duplicate Selected Setting" icon in the upper left of the Settings window
    • This creates duplicate of the preset that you can edit
    • Select the preset copy and, in Inspector, give it a new name (something like ProRes PAL>NTSC)
    • In Encoder>Video Settings>Frame rate - and change the frame rate to 29.97
    • In Frame Controls> turn them on and set Resize Filter and Rate Conversion to BETTER.  (If so set them to BEST, be prepared for a long wait)
    • In the Geometry tab, set the Frame Size to 720x480 (you don't say if the file is 16:9 or 4:3)
    • Submit the file and go have dinner. Depending on the length of the file, it may take hours.
    Have fun.
    x

Maybe you are looking for