Can I translate Javascript to Applescript?

I am rushing to get my taxes done and I need to calculate a cost basis for my mutual fund shares that I sold. I found a neat Javascript that will do the job but I don't know anything about Javascript. I have tried but to no avail. Can I change it to Applescript? If not, can someone help me get it going using Javascript? The site follows:
http://javascript.internet.com/math-related/adjusted-cost-base.html

There's no direct/automatic JavsScript to AppleScript conversion. It can be done by examining the code, but the JavaScript also manages the user interface (reading the values you enter on the form and resetting the output fields), which isn't trivial in AppleScript.
However, I have to wonder why you think you need to do this?
Doesn't that script work as-is? Can't you just enter the values on that page and get the answers you want? Sure, you can copy the code to your own page if you want to host if yourself, but there's nothing I can see that's preventing you using their form for your calculation.
Given how much (little?) time you have before taxes need to be filed, I can't help but think that's a better approach.

Similar Messages

  • How can I translate a saved alternative report

    I developed my application in English.
    I saved some interactive alternative reports in the application.
    Now I wan't to translate the report to dutch. So the report name, labels and values will be displayed in Dutch.
    Is this possible?

    Ted -
    Thanks for your response.  We tried what you suggested, and it does indeed work for the first document you load.
    However, now I see the effects of not having an Open icon in the applet's toolbar.  So we have a "list widget" in our app from which the user can select a report to load into the applet for viewing or editing.  The way it works, as you suggested, is to provide the doc id and name thru the applet parameters.   So after selecting a document, we rerender (via ajax) the panel that contains the applet, which, of course, causes the applet to completely reload - which is very ugly, clunky, and something that seems unnecessary. (We actually get an error when we try to select another report, telling us that we need to close down the applet and log in again, but this error is beside the point for now.)
    The first sentence of your initial reply was to say that there is no Open method.  By this, were you also implying that there is no java method call in the applet I can make via javascript on the page?  I would really like to be able to load a new document into the applet without having to suffer thru a reload.  Is there any java api exposed for the applet that I can possibly use to load a new document "on the fly"?  I haven't been able to
    Thanks again for any help.

  • How can I get JavaScript for Windows 7 in order to connect to certain links?

    I have JavaScript 1.6.0_27 and a website is sending me information which I cannot get because their website only supports up to JavaScript 1.6.0_26. How can I install JavaScript 1.6.0_26 on my computer?

    Please continue at --> https://support.mozilla.com/en-US/questions/891126
    Moderator: Duplicate; please LOCK this thread - https://support.mozilla.com/en-US/questions/891123

  • I build databases with appleworks over 10 years on my ibook, and continue to add to them. Now I have a macbook pro. How can I translate the databases to a compatible program?

    Over 10 years I have built several databases with Appleworks. Now I have a macbook pro. How can I translate these databases to a 10.6.8 program?

    Thanks Joe, but that won't work. I've finally found a site that answers the question: http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    I can only say that by Apple I have been royally screwed. I'll never buy another mac -- everything I do would simply disappear into cyberspace.

  • How can i translate a pdf document in japanese language to english language

    how can i translate a pdf document in japanese language to english language

    Hi trueman9299,
    ExportPDF uses OCR (optical character recognition) to convert image (scanned text) to editable/selectable text, but it doesn't translate from one language to another.
    Best,
    Sara

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • How can I check the field char can be translate into num type?

    Hi
    when I import Excel file into sap . I create one table to save the column and there are one column who's tpye is num . as we all know ,all the fields from excel are char type, the sap system will
    automatic translate char to num . but if the field can not translate char to num. then the program
    will be crush down
    such as : qty type char : 500 in excel then in tab qty type num :500 ok
    qty type char : 50A in excel then crash
    Is there any function that can deal with this matter?

    You may [CATCH|http://help.sap.com/abapdocu/en/ABAPCATCH_SYSTEM-EXCEPT_SHORTREF.htm] the error.
    CATCH SYSTEM-EXCEPTIONS convt_no_number = 1
                            conversion_errors = 2.
      MOVE char TO num.
    ENDCATCH.
    IF sy-subrc EQ 0.
      " converted
    ELSEIF sy-subrc EQ 1.
      " not numeric
    ELSEIF sy-subrc EQ 2.
      " not converted, other error
    ENDIF.
    Regards

  • How can I enable javascript in my cellphone?

    I would like to enable javascript in my cellphone , samsung intensity 2, but no idea how, How can I enable javascript?

    Hello desiree7790!
    I understand your desire to change or enable web browser settings on your Samsung Intensity II.  I would like to assist you with your device.
    The device you have has web capabilities using a feature called "Mobile Web".  It's not a full web browser, such as one you would find on a smartphone device, but does offer a limited mobile web experience.  There are no options on your device to enable Javascript; however, there are web settings you can adjust.  The instructions for accessing these settings are found on page 91 of your device manual, which I've included in a link here.
    I trust I have answered your question, and have addressed your concern.

  • Trigger .jsx (Javascript) through Applescript

    I have .jsx (javascript) for InDesign CS5. I am trying to automate in a batch mode. I would like to know how to trigger that Javascript through applescript. It would be much appreciate if any one help me on this regard.
    ~John

    I have .jsx (javascript) for InDesign CS5. I am trying to automate in a batch mode. I would like to know how to trigger that Javascript through applescript. It would be much appreciate if any one help me on this regard.
    ~John

  • How can i use javascript in weblogic jsp

    Hai,
              I know that we can use the jsvascript to validate the html parameters.
              Is the wblogic jsp support the javascript ?. I tried in weblogic
              5.1.0.,the javascript is not working.
              anybody can help me how to validate html input and how can i use
              javascript in jsp.
              Thanks
              Srinivas
              

              Do you know how JSP can use a variable defined in Javascrip ?
              Thx,
              Lin
              "Cameron Purdy" <[email protected]> wrote:
              >Write your JSP as you would any HTML file, including JavaScript. Then
              >rename the .html file to .jsp. Add your custom tags and Java code as
              >desired. Done.
              >
              >There was a complaint in the 5.0 beta about the JSP parser choking on
              >JavaScript, so I would make sure you at least try on the latest 5.1 service
              >pack, just in case.
              >
              >Cameron Purdy
              >
              >"SRINIVAS" <[email protected]> wrote in message
              >news:[email protected]..
              >> Hai,
              >> I know that we can use the jsvascript to validate the html parameters.
              >>
              >> Is the wblogic jsp support the javascript ?. I tried in weblogic
              >> 5.1.0.,the javascript is not working.
              >> anybody can help me how to validate html input and how can i use
              >> javascript in jsp.
              >>
              >> Thanks
              >> Srinivas
              >>
              >
              >
              

  • Can I translate user defined table into mulilanguages

    Can I translate a particular field of my own data field into foreign languages in SAP B1?
    Actually I want to print shipping label in different langauages. And I want that address and the details of the shipping label transleted in a text file in order to print from command prompt.
    Pls help me . its urgent
    Thanks in advance

    Im not sure, if I understand you correct.
    I understood that you want to transalte the description of user defined field - ok?
    If yes, the only way is to move the UDF inside the form and based of selected language show correct description in label.

  • How can I translate a document in Adobe fom Spanish to English

    How can I translate a document in Adobe fom Spanish to English

    Hi maximike,
    Which document you are talking about?
    If this is a PDF file then No PDF translation tools exist, that make a new PDF, so far as I know. If the document is public you can put the URL into an online translation service like http://translate.google.com/. If it doesn't have a public URL you can copy and paste the text into it.
    Regards,
    Florence

  • How can I assign javascript variables to jsp or java variables.?

    How can I assign javascript variables to jsp or java variables.?

    See I have generated some variables in the javascript which is on the jsp page. I want to assgin these variables to the jsp vaiables. Or how can I access javascript variables from jsp on the same jsp page.

  • Can I use JavaScript HTML Portlet and PDK Portlets

    Can I use JavaScript HTML Portlet and PDK Portlets?
    My Script works fine with the an HTML portlet but it always gives a an Error Message in the status bar is that normal...
    Other then that I have JavaScript in my PDK portlet page it does not work.. it is the the same javascript I use for in my HTML portlet which works in HTML portlets..

    You'll have to place your JavaScript in the header section of your Portal page. To do so, use HTML/UI templates. For more information, refer to the How to Design and Build Compelling Portal Interfaces whitepaper.
    Good luck,
    Peter

  • Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Of course! Here ya go
    For the record, I did create a new project with only two slides to try and duplicate the issue. I had the same problem. I unchecked the Mouse Click Sound check box, republished and the slide auto advanced. I'm wondering if a default sound file was somehow moved or deleted? I discussed uninstalling and reinstalling C7 onto my laptop, but that's a frustrating solution haha

Maybe you are looking for

  • BB MESSENGER- BBM MESSAGES ARE RED CLOCKING AND NEVER SEND

    for a while my phone has been very slow and messages slow att sending but did eventually send/deliver. well one morning when i woke up i discovered my bbm (blackberry messenger) was not working my display picture, status, name wouldnt change and my m

  • Installing Solaris 7 - System hangs while determining bus Types

    Hi, I am trying to install Solaris 7 on my Compaq Presario. My system hangs immediately after the first screen. It hangs on the screen where it says "Bus Enumeration Determining Bus Type and gathering hardware configuration data. Not sure why it is d

  • GR line item proportional to Inspection Lot Number

    Hi, I would like to know if its possible to have the GR line item proportional to QM Inpection lot. For example, I have 10 line item in a PO that need to be GR, is it possible to have 10 different inspection lot number for this? or is it only 1. Than

  • Interactive chart in Numbers

    Is it possible to delete bars in an interactive chart in Numbers? The chart part, not the table. In other words, the chart is too wide and I only want 3 bars, not 5.

  • Active Widgets??

    Hey guys, Has anyone done client side programming using active widgets? I tried, but the documentation given in their web site is a little advanced. Some of the example are easy, but is there any tutorial for beginners??