Inter-script communication and script cloning

How does a calling script pass information about itself to a script it calls via a tell statement? I'd want to pass the name and path of the calling script's application file, among other things. The called script would then talk back to the calling script, and so forth. Must this be done explicitly by, say, having the called script invoke a script object in the calling script, or can information about the calling script be passed by the call itself?
Also, how would one get a script application to clone a copy of itself? Would having the Finder just make a copy of the application file from within the script itself work?
Thanks for any insights.

I saved the following as an application and ran it as an application (outside the Script Editor!) and it 'cloned' itself as expected.
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Finder" to duplicate (path to me)</pre>Another interesting feature of script objects, however, is that you don't need to duplicate scripts with the Finder to get multiple script objects. The preferred method is to load the same script into multiple variables of the calling script, and then assign different properties to each new instance of the called script.
You can even do this with scripts that you define within the calling script itself, or with particular handlers or scripts defined in other files. I've rarely needed to go that far in my own scripting adventures, but I've done it before. More frequently I just use the much simpler run script command to pass parameters and return results from a called script file. See this thread for info on that:
http://discussions.apple.com/message.jspa?messageID=1163768

Similar Messages

  • IPC (Inter Portlet Communication) and DesktopBackingContext

    I have two portlets: portlet A and portlet B that communicatie using IPC, and I experience problems when accessing the DesktopBackingContext in the portlet that listens to the event.
    - Portlet A fires a custom event
    - This event triggers an action in portlet B's PageFlowController.
    - In this action I need to access the DesktopBackingContext
    - For some reason DesktopBackingContext.getDesktopBackingContext(request) always returns null when called in this action (even when I use the outerrequest).
    Is there anyway to access the DesktopBackingContext in the PageFlowController of a portlet that reacts to an event?
    I hope someone can help me out here,
    Kristel

    Send it as part of the event payload?

  • Inter-GSS Communication and KAL-AP

    Hi,
    I have 4 GSS installed in the network that load balance users to 3 data centers and in each of them I have a CSM module. The KAL-AP protocol is configured between all GSS and all CSM in order to retrieve the load value form each site. On the GSSM GUI, I am observing that other GSS devices report the availability of each site as "online" instead of indicating "Load xx". Is it a normal behaviour ? Only the GSSM-Primary displays the real load ?
    Thank you for any hints,
    Yves Haemmerli

    Check the following. It could be due to one of them.
    1/ Check the 'Balance Methods' under the 'DNS Rules' to be 'least loaded' and not 'round-robin' or 'ordered-list'.
    2/ If your 'Answer' is a 'VIP type', and it has 'VIP KeepAlive Type:' configured as 'none', then you would see an 'online'. Change that to something other than 'none'.
    For example, a VIP type configured with a 'KAL-AP type' will show you the 'load' value rather than just an 'online/offline'
    3/ The other possibility is that if you have configured the 'Answer' type as 'Name Server' rather than as 'VIP Type' then you would see the 'online' again.
    4/ If you still face the issue I would recommend to upgrade your version. On version 1.3.1.0.0, I am not seeing this issue.
    Hope this would solve your problem.
    thanks

  • How to excute a power shell script to remote machine using power shell script folder path and script name

    Hi,
    Let say, I have 3 parameters.
    1. Script FolderPath (Remote path for e.g \\RD101\ScriptSharedFolder     Here RD101 is one server)
    2. Script Name(StopAllService.ps1)
    3. Server Name (RD45)
    I want to execute a powershell scritp in my local machine(Test1)  and in that script I want to pass the above three parameters.Now I want to excute the StopAllService.ps1 script into RD45 server. But the script is available in RD101 machine.
    So What I want to here How can we do this ? I have script name and script folder path and target execution server name.
    Pls giude me or give me the script.
    By
    A Path Finder..
    JoSwa 
    If a post answers your question, please click &quot;Mark As Answer&quot; on that post and &quot;Mark as Helpful&quot;
    Best Online Journal

    Hi,
    You got 2 solutions for your problem:
    1- If you have permission to run scripts in the remote computer without specifying your credential,
    then, the first reply solve your problem.
    2- If you have permission to run scripts in the remote computer
    having to specify your credential, l then,
    my solution solves your problem.
    If the remote computer requires signed scripts only, you need signed script. Period. Or are you trying to break remote computer security?
    If you need signed script, there's no psdrive that'll circumvent such requirement.
    The problem is that the execution policy is set to "RemoteSigned". Using the URL explicitly tags that script as being from a remote source, and the policy blocks it.  The PSDrive provides a local reference for the script.  It does not
    sign the script but the local drive reference may prevent it from being blocked for being from a remote source. I'll test that later.
    Script signing is not and should never be considered a security measure. It is easily circumvented by running the script using powershell.exe, and using the -ExecutionPolicy parameter to override whatever the local execution policy setting is. 
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Bridge and PS not communicating with scripts and automation.

    CS4 PS and Bridge is not communicating correctly.
    When opening an image from Bridge it opens whiteout any issues but when choosing Tools and PS and any form of automation or script it will not open and start the requested action.
    Then when choosing same or another action from the tools/PS menu I get the message that PS is currently busy processing another task and it asks me if I wish to cue the action.
    There is no difference if I chose cue or stop after this since nothing is happening how ever long I wait.
    If PS is not started it will start up the application but nothing more after that. I have reinstalled and repaired permissions both after and before.
    A colleague who also using PS CS4 is having the same hardware and is not having the same problem so I guess I am having a problem with some form of configuration.
    CS3 is working correctly on the same machine and is having no issues at all.
    Config is Macbook Pro 2.33Ghz 2gb ram OS 10.5.5 whit all the latest updates.
    TIA for you help or crazy ideas.
    Sven

    As I wrote above I have already repaired the permissions but I have also rebooted several times, I have done that before and after installs and removals off the application and I used the Adobe script CS4 cleaner script to completely remove the apps.
    The applications are all installed on their default locations and has not been moved at all and no names has been changed.
    Does anybody know any more thorough way of removing all settings and preferences for CS4 then that script.
    Maybe there are some remaining settings somewhere that I have not been able to remove.
    Are there any sort of total remover of selected adobe apps rather then having to remove all adobe stuff on the machine that is more that can do more then that script.
    Sven

  • Ssrs and script from was blocked due to mime type mismatch

    Hi
    I'm trying to add a script to my header on my SSRS report. I've been following this link:
    http://blogs.infosupport.com/reporting-services-javascript-injection/
    I get error stating:
    SEC7112: Script from http//####/HCCReportsServer?/ReportsLibrary/script.js was blocked due to mime type mismatch
    My code:
    ="<a href=""javascript:eval(unescape('function addScript(scriptFile){var head = document.getElementsByTagName(\'HEAD\')[0]; var script = document.createElement(\'script\'); script.setAttribute(\'language\', \'JScript\'); script.setAttribute(\'type\', \'text/Javascript\'); script.setAttribute(\'src\', scriptFile); head.appendChild(script);} addScript(\'http://dc1-sqlrs-d02/HCCReportsServer?/ReportsLibrary/script.js\');'))"">inject</a>"
    Please help. This is urgent to get it working for a demo.
    Thanks

    Hi Sunette,
    Based on my understanding, you come across an SEC7112 error when you inject JavaScript into the Reporting Services.
    In your scenario, you should remove the below setting in the web.config file(Location: C:\inetpub\wwwroot\wss\VirtualDirectories\<your port>).
    <add name="X-Content-Type-Options" value="nosniff" />
    As we tested in our environment(SQL Server 2012,SharePoint 2013,IE 11), we can inject JavaScript successfully. Please refer our test steps and results:
    1. Delete “X-Content-Type-Options" with value "nosniff" within the web.config file (Location: C:\inetpub\wwwroot\wss\VirtualDirectories\80).
    2. Design the report as below, then deploy the report to the SharePoint site.
    3. Create the script.js file with code below, and upload to the SharePoint site.
    function test()
    alert("The CHANGEME textbox will actually change…");
    //var doc = window.frames[1][1].document;
    var el = document.getElementsByTagName('span');
    for (var nr=0; nr<el.length; nr++)
    if (el[nr].innerHTML == "CHANGEME")
    el[nr].innerHTML = "I FEEL LIKE A CHANGED TEXTBOX";
    4. Run the report. Click the “inject”->”test”, the final results should look like below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Test plan and scripts as accelerators

    Hi
    I'm about to start installing a RDS for PPM 6.0. In the SBS (Step-By-Step Guide) standard test plans and scripts are listed as accelerators. In the RDS package, however, I cannot find any documents describing the test plan or scripts. There are no links to these documents in the SBS.
    Does anyone know where to find these documents for PPM 6.0?
    I can of course create this manually, but it will save a lot of time to use the provided accelerators.
    Thanks!
    Br,
    Lars

    Hi AjdPC,  
    Thanks for your post.
    Yes, this feature released in TFS 2013 Update 3. But as the TFS 2013 Update 4 has released too, so we suggest you upgrade your TFS to TFS 2013 Update 4.
    After you upgraded to TFS 2013 Update 4, if you want use this feature in the old/upgraded team projects, you need configure features for these team project, please refer to the detailed information in this document:
    https://msdn.microsoft.com/en-us/library/ff432837.aspx. For example, if one your upgraded team project created using CMMI 12.2, open this team project’s Web Access admin page, click
    Configure Features>>select the CMMI 2013.4 in the
    Choose a process template to continue textbox, then click Configure button.
    For the custom process templates, we suggest you download the new 2013.4 versions process template from your collection after upgraded to TFS 2013 Update 4, then custom that 2013.4 process templates to instead of that old customized 12.2 process templates,
    then upload the new customized process templates to your collection and create team project use them if you want.
    That not impact your Reporting Services reports.
    As I said, we suggest you upgrade to TFS 2013 Update 4, In-place upgrade or migrate upgrade both are ok.
    Note: make the full backup for your TFS Server databases before any upgrade or migrate operation.
    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.

  • When I try to use the print/save as pdf option, I get a scripting error and Firefox usually freezes.

    On my MacBook Pro running OS 10.5.8 and Firefox 3.6.13, I am trying to save documents as pdfs under the print window, I get a scripting error and Firefox usually freezes/becomes nonresponsive. This happens every time I tried to perform this task.

    This is a fresh install of Windows 7.  It is installed on virtual environment on my mac mini using the parallels virtualization application.
    I purchased the windows version of dream weaver CS 6 through an online website which I tried to install to my new windows instance.   This is the academic version of the Dreamweaver application with a perpetual license that I am trying to install.
    I verified my eligibility through adobe which gave me a link to download the CreateiveCloud Set-up program.  I downloaded the install program in my windows environment and program and the gave the above error message.  Below is a copy of my computers specs. 

  • Urgent need for AP and PO test scripts/scenarios and training user manuals

    Hi There,
    Can anyone send me test scripts/scenarios and training user manuals for AP and PO
    Please send me the docs as soon as possible on [email protected]
    I will really appreciate your help.
    Regards
    Kush

    Dear
    this topics must be included in the testing scenario
    1-Enter Supplier Data     Enter information for a given supplier, including supplier sites/addresses
    2-Create Invoice Batch: Enter information for Invoice Batch header
    3-Create a Standard Invoice: Enter information for a standard invoice in an invoice batch
    4-Invoice Distribution: Enter information details of a selected invoice
    5-Schedule Payment     Create Payment Schedule
    6-Create a Credit Memo: Enter information to create a credit memo
    7-Create Employee Exp:Enter information for an Employee Expense report
    8:Validate an Invoice: Validate an Invoice
    9-Account an Invoice: Create Accounting Entries for an Invoice
    10-Create a Quick Check: Enter data to create a Quick Payment
    11-Select Invoices for Payment:Enter data to create a preliminary list of invoices to pay, review the list, and do some changes.
    12-Format and Print a Payment Batch: Perform tasks required to Format a payment batch
    13-Confirm a Payment Batch:Perform tasks required to Confirm a payment batch
    14-Transfer to General Ledger

  • How to insert the style in sap-script? and in smart form?

    how to insert the style in sap-script? and in smart form?

    Hi..,
    For SAP scripts u need to create them in SE72 ...
    and u can include them in the script editor as..
    /: STYLE <STYLE-NAME>
    P1 text...............  (*** P1 is the Paragraph format created in SE72 )
    /: STYLE *
    For smartforms u need to go for the transaction (tcode) SMARTSTYLES... here u can create paragraph and character formats globally...
    <b>Sunil, plz do remember to close all your threads, when ur problem is solved !!</b>
    reward all helpful answers,
    sai ramesh

  • How to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.

  • Mappings and script functoid

    Can you have both mappings (direct mapping in the graph) and scripting functoid in the same map?
    Anonymous

    Hi,
    Yes, direct mapping and scripting functoid can be used in the same map.
    In case of complex map and lot of direct mapping it is advisable to make use of more than 1 pages, just for better readability.
    Pages are a great way of dividing your map into smaller, more manageable blocks. The functionality of the map is in no way influenced with how many pages you have and what functionality goes into what pages.
    You can learn more about Biztalk Maps by following the links below:
    1) http://www.informit.com/articles/article.aspx?p=1752306
    2)
    http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&cad=rja&uact=8&ved=0CEMQFjAF&url=http%3A%2F%2Fbiztalkevents.files.wordpress.com%2F2013%2F03%2Fobid-biztalk-mapping-patterns-and-best-practices.pptx&ei=L2U3VJHrApHmauiLgZgD&usg=AFQjCNHnYSa-ynxUKRRdr14LcB85brSNUw&bvm=bv.76943099,d.d2s
    3)
    http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CDMQFjAD&url=http%3A%2F%2Fwww.slideshare.net%2FSandroPereira3%2Fbiztalk-server-basics-principles-of-maps&ei=L2U3VJHrApHmauiLgZgD&usg=AFQjCNG6iJRePcbrHr9CS2_apBuNAzYR0w&bvm=bv.76943099,d.d2s
    Hope this helps.
    Rachit
    Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem

  • How to use the output types e-mail in script?and other output types

    how to e -mail a script?and fax?

    hi,
    check the example
    Just try by using the below code may be it will helpful to you.
    REPORT Z_RMTIWARI_SEND_SPOOL_MAIL_ATT .
    PARAMETERS : P_SPOOL TYPE TSP01-RQIDENT OBLIGATORY .
    PARAMETERS : P_MAIL TYPE char100 OBLIGATORY .
    TYPES : TY_LINE type string.
    DATA: IT_ATTACHMENT TYPE soli OCCURS 0 WITH HEADER LINE.
    DATA: IT_ATTACHMENT_LONG TYPE TY_LINE OCCURS 0 WITH HEADER LINE.
    DATA: LV_PDF_SIZE type i.
    DATA: LT_PDF type standard table of tline with header line.
    PERFORM SEND_EMAIL USING P_SPOOL P_MAIL.
    FORM send_email
    --> X_SPOOL_ID
    --> X_EMAIL
    FORM send_email USING X_SPOOL_ID X_EMAIL.
    DATA: LT_OBJPACK LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE,
    LT_OBJHEAD LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    LT_OBJBIN LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    LT_OBJTXT LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    LT_RECLIST LIKE somlreci1 OCCURS 5 WITH HEADER LINE,
    LV_DOCUMENT_DATA TYPE sodocchgi1.
    DATA: L_ATT_LINES TYPE i.
    DATA : LV_SPOOL_DESC(68) type c.
    CHECK NOT ( X_EMAIL IS INITIAL ).
    CLEAR: LT_RECLIST, LT_RECLIST[],
    LT_OBJHEAD, LT_OBJHEAD[],
    LT_OBJTXT, LT_OBJTXT[],
    LT_OBJBIN, LT_OBJBIN[],
    LT_OBJPACK, LT_OBJPACK[].
    CLEAR LV_DOCUMENT_DATA.
    Read spool and get the pdf internal table and name of spool
    PERFORM READ_SPOOL USING X_SPOOL_ID LV_SPOOL_DESC.
    CHECK NOT ( LT_PDF[] IS INITIAL ).
    Convert pdf itab to 255 line itab.
    data :LV_COUNTER type i.
    data :LV_FROM type i.
    loop at LT_PDF.
    translate LT_PDF using ' ~' .
    concatenate IT_ATTACHMENT_LONG LT_PDF into it_attachment_long.
    endloop.
    translate IT_ATTACHMENT_LONG using '~ ' .
    append IT_ATTACHMENT_LONG.
    clear : LV_COUNTER.
    DO.
    LV_COUNTER = strlen( IT_ATTACHMENT_LONG ).
    if LV_COUNTER ge 255.
    IT_ATTACHMENT = IT_ATTACHMENT_LONG(255).
    append IT_ATTACHMENT.
    SHIFT IT_ATTACHMENT_LONG by 255 places.
    else.
    IT_ATTACHMENT = IT_ATTACHMENT_LONG(lv_counter).
    append IT_ATTACHMENT.
    exit.
    endif.
    ENDDO.
    Body of email
    MOVE 'Email sent to you from SAP' TO LT_OBJTXT.
    APPEND LT_OBJTXT.
    LV_DOCUMENT_DATA-obj_name = 'SpoolMail'.
    Title of the email as spool name
    LV_DOCUMENT_DATA-obj_descr = LV_SPOOL_DESC.
    LV_DOCUMENT_DATA-sensitivty = 'O'.
    LV_DOCUMENT_DATA-expiry_dat = SY-datum + 15.
    LV_DOCUMENT_DATA-doc_size = STRLEN( LT_OBJTXT ).
    e-mail body
    CLEAR LT_OBJPACK.
    LT_OBJPACK-head_start = 1.
    LT_OBJPACK-head_num = 0.
    LT_OBJPACK-body_start = 1.
    LT_OBJPACK-body_num = 1.
    LT_OBJPACK-doc_type = 'RAW'.
    LT_OBJPACK-doc_size = STRLEN( LT_OBJTXT ).
    APPEND LT_OBJPACK.
    For e-mail attachment
    DESCRIBE TABLE IT_ATTACHMENT LINES L_ATT_LINES.
    READ TABLE IT_ATTACHMENT INDEX L_ATT_LINES.
    CLEAR LT_OBJPACK.
    LT_OBJPACK-transf_bin = 'X'.
    LT_OBJPACK-head_start = 1.
    LT_OBJPACK-head_num = 1.
    LT_OBJPACK-body_start = 1.
    LT_OBJPACK-body_num = L_ATT_LINES.
    LT_OBJPACK-doc_type = 'PDF'.
    LT_OBJPACK-obj_name = 'email'.
    LT_OBJPACK-obj_descr = LV_SPOOL_DESC.
    LT_OBJPACK-doc_size = ( 255 * ( L_ATT_LINES - 1 ) ) + STRLEN( IT_ATTACHMENT-line ).
    APPEND LT_OBJPACK.
    make recipient list
    LT_RECLIST-receiver = X_EMAIL.
    LT_RECLIST-rec_type = 'B'. "To external email id
    APPEND LT_RECLIST.
    send mail with attachment
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = LV_DOCUMENT_DATA
    put_in_outbox = 'X'
    TABLES
    packing_list = LT_OBJPACK
    object_header = LT_OBJHEAD
    contents_bin = IT_ATTACHMENT
    contents_txt = LT_OBJTXT
    receivers = LT_RECLIST
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    If SY-subrc = 0.
    write:/ 'Message sent'.
    else.
    write:/ 'Error encountered'.
    endif.
    ENDFORM. " send_email
    *& Form read_spool
    FORM read_spool USING X_SPOOL_ID Y_SPOOL_DESC.
    DATA : LV_SPOOL_TYPE TYPE TSP01-RQDOCTYPE.
    SELECT SINGLE RQDOCTYPE RQTITLE
    INTO (lv_spool_type, y_spool_desc)
    FROM TSP01
    WHERE RQIDENT eq X_SPOOL_ID.
    IF Y_SPOOL_DESC IS INITIAL.
    concatenate 'Spool-' X_SPOOL_ID into Y_SPOOL_DESC.
    ENDIF.
    IF LV_SPOOL_TYPE eq 'LIST'. " If spool is a list
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    SRC_SPOOLID = X_SPOOL_ID
    NO_DIALOG =
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    PDF_BYTECOUNT = LV_PDF_SIZE
    PDF_SPOOLID =
    LIST_PAGECOUNT =
    BTC_JOBNAME =
    BTC_JOBCOUNT =
    TABLES
    PDF = LT_PDF
    EXCEPTIONS
    ERR_NO_ABAP_SPOOLJOB = 1
    ERR_NO_SPOOLJOB = 2
    ERR_NO_PERMISSION = 3
    ERR_CONV_NOT_POSSIBLE = 4
    ERR_BAD_DESTDEVICE = 5
    USER_CANCELLED = 6
    ERR_SPOOLERROR = 7
    ERR_TEMSEERROR = 8
    ERR_BTCJOB_OPEN_FAILED = 9
    ERR_BTCJOB_SUBMIT_FAILED = 10
    ERR_BTCJOB_CLOSE_FAILED = 11
    OTHERS = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ELSE. " If spool is OTF
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    SRC_SPOOLID = X_SPOOL_ID
    NO_DIALOG =
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    PDF_BYTECOUNT = LV_PDF_SIZE
    PDF_SPOOLID =
    OTF_PAGECOUNT =
    BTC_JOBNAME =
    BTC_JOBCOUNT =
    TABLES
    PDF = LT_PDF
    EXCEPTIONS
    ERR_NO_OTF_SPOOLJOB = 1
    ERR_NO_SPOOLJOB = 2
    ERR_NO_PERMISSION = 3
    ERR_CONV_NOT_POSSIBLE = 4
    ERR_BAD_DSTDEVICE = 5
    USER_CANCELLED = 6
    ERR_SPOOLERROR = 7
    ERR_TEMSEERROR = 8
    ERR_BTCJOB_OPEN_FAILED = 9
    ERR_BTCJOB_SUBMIT_FAILED = 10
    ERR_BTCJOB_CLOSE_FAILED = 11
    OTHERS = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    ENDFORM. " read_spool
    http://www.sap-img.com/abap/sending-fax-from-abap.htm
    http://www.sap-img.com/abap/sending-email-with-attachment.htm

  • Constant script errors and non-responsive

    I receive constant script errors and non-responsive errors using Firefox, as do many of my friends. I am using Facebook and Mafia Wars by Zynga
    Here is an example of one:
    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: http://www.facebook.com/profile.php?id=508888121:7
    I have tried the instructions on this page
    http://support.mozilla.com/en-US/kb/Warning+Unresponsive+script?s=script+errors&as=s
    however, I get an error message when I try to access Config and enter:
    Navigation to the webpage was cancelled
    Please help fix this or I'm going to have to use a different browser and I like Firefox better than the other options.
    Thank you.

    Thank you Jeff for your response. However, that question is 1 year old and I no longer have that problem. I hope that your answer will help others.

  • XML Validation using java for SQL Injection and script validation

    I have an input coming from xml file.
    I have to read that input and validate the input against sql injections and scripts.
    I require help now how to read this xml data and validate against the above two options.
    I am a java developer.
    in this context what is marshelling?

    http://www.ibm.com/developerworks/library/x-javaxmlvalidapi.html?ca=dgr-lnxw07Java-XML-Val
    http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html
    The following code validates the xml against a xml schema
    // define the type of schema - we use W3C:
    String schemaLang = "http://www.w3.org/2001/XMLSchema";
    SchemaFactory factory = SchemaFactory.newInstance(schemaLang);
    Schema schema = factory.newSchema(new StreamSource("sample.xsd"));
    Validator validator = schema.newValidator();
    // at last perform validation:
    validator.validate(new StreamSource("sample.xml"));Message was edited by:
    haishai

Maybe you are looking for