Pass info from safari to X11 application

Hi,
I am wanting to pass some data from a web page (viewed using Safari) to an X11 application and I was wondering if anyone can suggest how to do this ?
The data in question is ascii text and represents a script which is passed to a molecule viewer (rasmol running under X11) which then displays the appropriate molecule. The web server sending the data gives it a unique mime type. The X11 program needs to be invoked from the command line to specify the name of the script file which is sent. Under other unixs (IRIX and Linux FC3) it is possible to have the browser activate a shell script which sends the text to a temporary file, then executes the X11 program. I have the shell script set up but can't assign the mime type for it (I tried RCDefaultApp which won't allow the selection of a shell script in its mime type setup). I've also tried this with FireFox 1.5 but it doesn't seem like the mac version handles the passing of data like it does on Linux. Any other suggestions ?
Thanks Jeff.
eMac 1.42 GHz   Mac OS X (10.4.4)  

Hi Jeff,
Hmm, I doubt you'll be able to what you want directly from Safari.
Do you have to interact with the data via the browser beforehand, or could you just pass the url pointing to the data to a command line tool like curl instead?
I'm a little fuzzy exactly what workflow you're after so apologies if I've got the wrong end of the stick

Similar Messages

  • Passing info from a XML file to URLloader

    I am new to Flex (And programming alltogether), so please
    excuse my ignorance when asking this question; but I have to start
    somewhere. :-)
    I have an application using HTTPService that pulls
    information from a XML file and displays an image and text within
    the window depending on the selected item. The image and text
    appears as needed from {data.image} or {data.text} calls to their
    appropriate field. On that same window, I want to add a link button
    that will direct the browser to a new page depending on the
    selected item. I have the link for each item embedded in the XML
    file, but I cannot figure out how to pass the link to the button.
    I have tried to create a function, but the URL isnot passed
    to the broswer. The application tells the browser to go to
    "{data.link}" at the local server, not the actual URL.
    my function looks like this:
    public function newPage():void
    var getLink = '{data.link}';
    var request:URLRequest = new URLRequest(getLink);
    var loader:URLLoader = new URLLoader();
    loader.load(request);
    }

    hi,
    can you share php code for grabbing data. i make php code using "simplexml_load_file" but the problem is it takes 2-3 minutes before it show the result. i want to monitor the current video if stop feeding.
    http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname
    xml
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <result> 
    <level>status</level> 
    <code>NetConnection.Call.Success</code>
    <timestamp>3/21/2015 7:47:17 AM</timestamp>
    <name>_defaultRoot_:_defaultVHost_:::_0</name>
    <data> 
    <_0>appname</_0> 
    </data>
    </result>
    here;s my php code:amsstats.php
    <?php
        $result = simplexml_load_file("http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname");
        echo $result->data[0]->_0;
    ?>
    result:
    http://server2/stats/amsstats.php

  • IMac freezes when opening finder from Safari or other applications to import files

    Hello,
    I have an iMac late 2013 27inch
    When I'm in Safari and want to upload a picture or file from the HDD, finder opens but then there is the rainbow circle and the whole Safari freezes.
    Same with other applications like Prezi.
    I don't know what to do !!
    Maybe its because of Dropbox?
    Please help.
    - Sebastian

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to pass info from TX to Centro

    I need to know if I can sync my TX info into my Centro Smartphone.
    Post relates to: Palm TX

    How to Upgrade from a Previous Palm device to a Newer One: http://kb.palm.com/ and enter 12926 (General Upgrade guide) or 45175 (Upgrade to Centro) into the "solution ID:" box (lower right).
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to pass info from jad to jar

    Hi,
    When reinstalling an application into a mobile (at least nokia or motorola modern mobile versions) teh mobile ask you if yo uwant to save old data. If you choose yes the RecorsStore keeps exactly the same, no one variable is re-writed. So how can I know in teh code I mean if the application has been installed again? I mean, when launching teh application , I want that my code reconice if thee application has been installed one , 2, 3 or whatever times. How can I do that? Maybe pasing a paramenter from teh jad to teh jar during the installation?
    Thanks

    How to Upgrade from a Previous Palm device to a Newer One: http://kb.palm.com/ and enter 12926 (General Upgrade guide) or 45175 (Upgrade to Centro) into the "solution ID:" box (lower right).
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Can't Paste Info From Safari 4 to Mail

    I can select text in Safari 4 (the info shows up on the Clipboard) but I cannot paste directly into Mail with out first pasting it into a text editor. Nor can I drag and drop the text into Mail.
    Any thoughts?

    Mitch Wayne wrote:
    I can select text in Safari 4 (the info shows up on the Clipboard) but I cannot paste directly into Mail with out first pasting it into a text editor. Nor can I drag and drop the text into Mail.
    Any thoughts?
    one of the many bugs in Safari 4. it's beta software after all. nothing to be done about it but wait for it to be fixed by Apple.

  • Passing arguments from jnlp file to application

    Hi,
    I am using a jnlp file to launch an application. This is working perfectly. Now I want my application to get some custom properties for making an rmi connection . The only place where I must specify this is in the jnlp file which is dynamically generated. The dynamically generated JNLP file contains:
    <property name="abc.rmi.adapter.host" value="localhost"/>
    <property name="abc.rmi.adapter.port" value="5050"/>
    <property name="abc.rmi.adapter.servicename" value="abc/RMIClientAdapter/"/>
    This does not work.
    However, according to sun only certain types of properties are supported by jnlp for security reason. Is there any way to get over this and have my custom properties. Any help will be appreciated.
    Thanks,
    dasappan

    If you are trying to use RMI, you probably need all-permissions allready.
    for applications requesting all-permissions, all of the properties set in the jnlp file will be set as system properties before the applications "main" is called.
    If you are not using <security><all-permissions/></security>, then only specific trusted properties, plus any begining with "javaws." or "jnlp." will be allowed.
    For properties you just need to pass to yourself, just append "jnlp." to the front of them.
    /Andy

  • Passing parameters from AdfFacesContext to EBS applications.

    Hi:
    I have a requirement where I need to pass some parameters from a .jspx page and need to access these parameters from EBS controller classes. We have tried to instantiate WebAppsContext passing .dbc parameter file and by validating the login in the backing bean class. Can someone please confirm us if this is the right way to do this or there are any alternatives? If I pass some parameters in session object following the above steps should these parameters be gettable from EBS controllers?
    Thanks /Santanu

    Hi Santanu,
    What you are doing is the correct method, But the .jspx, First get the root Applicatin Module and initialize the apps context.
    Then you can use the parameters from appscontext.
    import oracle.apps.fnd.common.AppsContext;
    import oracle.apps.fnd.framework.OAApplicationModule;
    AppsContext m_ctx=null;
    OAApplicationModule am
    public OAApplicationModule getRootAM()
    if(m_ctx==null)
    m_ctx=getAppsContext();
    OAApplicationModule am = OAApplicationModuleUtil.getOAApplicationModule(m_ctx);
    return am;
    Thanks.
    -Kali.

  • I use msn internet browser and it constantly crashes with the info from event viewer: Faulting application name: msn.exe, version: 10.50.19.1000, time stamp: 0x51ddb7de this can happen numerous times in a single day help please

    Log Name:      Application
    Source:        Application Error
    Date:          2/26/2014 2:16:26 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      SuperFlyXPS
    Description:
    Faulting application name: msn.exe, version: 10.50.19.1000, time stamp: 0x51ddb7de
    Faulting module name: MSHTML.dll, version: 11.0.9600.16518, time stamp: 0x52f365cb
    Exception code: 0xc0000005
    Fault offset: 0x00175363
    Faulting process id: 0x1260
    Faulting application start time: 0x01cf32a011d4aeb4
    Faulting application path: C:\Program Files (x86)\MSN\MSNCoreFiles\msn.exe
    Faulting module path: C:\Windows\system32\MSHTML.dll
    Report Id: a1704306-9f33-11e3-acde-782bcbac25e5
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-02-26T22:16:26.000000000Z" />
        <EventRecordID>80997</EventRecordID>
        <Channel>Application</Channel>
        <Computer>SuperFlyXPS</Computer>
        <Security />
      </System>
      <EventData>
        <Data>msn.exe</Data>
        <Data>10.50.19.1000</Data>
        <Data>51ddb7de</Data>
        <Data>MSHTML.dll</Data>
        <Data>11.0.9600.16518</Data>
        <Data>52f365cb</Data>
        <Data>c0000005</Data>
        <Data>00175363</Data>
        <Data>1260</Data>
        <Data>01cf32a011d4aeb4</Data>
        <Data>C:\Program Files (x86)\MSN\MSNCoreFiles\msn.exe</Data>
        <Data>C:\Windows\system32\MSHTML.dll</Data>
        <Data>a1704306-9f33-11e3-acde-782bcbac25e5</Data>
      </EventData>
    </Event>
    need help with . . .

    Hi,
    I found a useful link:
    MSN has encountered a problem needs to close or MSN is not responding Error
    https://answers.msn.com/solution.aspx?solutionid=11abae39-d906-4113-bb4e-ecfaa81798f0
    Please take a look of this part
    (Common Faulty Module on MSN
    Mshtml.dll)
    *Instead of MSN, here is a another software called Skype, just instroduce it to you, hope you can enjoy it.*
    Yolanda Zhu
    TechNet Community Support

  • Can I pass info from a frame to another and paint with the new info.

    I want to compare two string one by one and then paint the result as a matrics. such as
    string1 = "ATTACGT"
    string2 ="CAGTCAT"
    then compare and see how they are same or different for every alphabit. then paint the result with a matric style. What can you help? Use applet, swing or other? Thanks.

    You can do this even with simple comparison inside loop and print what you want with SOP formated by space

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How do I get info from Active Directory and use it in my web-applications?

    I borrowed a nice piece of code for JNDI hits against Active Directory from this website: http://www.sbfsbo.com/mike/JndiTutorial/
    I have altered it and am trying to use it to retrieve info from our Active Directory Server.
    I altered it to point to my domain, and I want to retrieve a person's full name(CN), e-mail address and their work location.
    I've looked at lots of examples, I've tried lots of things, but I'm really missing something. I'm new to Java, new to JNDI, new to LDAP, new to AD and new to Tomcat. Any help would be so appreciated.
    Thanks,
    To show you the code, and the error message, I've changed the actual names I used for connection.
    What am I not coding right? I get an error message like this:
    javax.naming.NameNotFoundException[LDAP error code 32 - 0000208D: nameErr DSID:03101c9 problem 2001 (no Object), data 0,best match of DC=mycomp, DC=isd, remaining name dc=mycomp, dc=isd
    [code]
    import java.util.Hashtable;
    import java.util.Enumeration;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class JNDISearch2 {
    // initial context implementation
    public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    public static String MY_HOST = "ldap://99.999.9.9:389/dc=mycomp,dc=isd";
    public static String MGR_DN = "CN=connectionID,OU=CO,dc=mycomp,dc=isd";
    public static String MGR_PW = "connectionPassword";
    public static String MY_SEARCHBASE = "dc=mycomp,dc=isd";
    public static String MY_FILTER =
    "(&(objectClass=user)(sAMAccountName=usersignonname))";
    // Specify which attributes we are looking for
    public static String MY_ATTRS[] =
    { "cn", "telephoneNumber", "postalAddress", "mail" };
    public static void main(String args[]) {
    try { //----------------------------------------------------------        
    // Binding
    // Hashtable for environmental information
    Hashtable env = new Hashtable();
    // Specify which class to use for our JNDI Provider
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    // Specify the host and port to use for directory service
    env.put(Context.PROVIDER_URL, MY_HOST);
    // Security Information
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, MGR_DN);
    env.put(Context.SECURITY_CREDENTIALS, MGR_PW);
    // Get a reference toa directory context
    DirContext ctx = new InitialDirContext(env);
    // Begin search
    // Specify the scope of the search
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the actual search
    // We give it a searchbase, a filter and the constraints
    // containing the scope of the search
    NamingEnumeration results = ctx.search(MY_SEARCHBASE, MY_FILTER, constraints);
    // Now step through the search results
    while (results != null && results.hasMore()) {
    SearchResult sr = (SearchResult) results.next();
    String dn = sr.getName() + ", " + MY_SEARCHBASE;
    System.out.println("Distinguished Name is " + dn);
    // Code for displaying attribute list
    Attributes ar = ctx.getAttributes(dn, MY_ATTRS);
    if (ar == null)
    // Has no attributes
    System.out.println("Entry " + dn);
    System.out.println(" has none of the specified attributes\n");
    else // Has some attributes
    // Determine the attributes in this record.
    for (int i = 0; i < MY_ATTRS.length; i++) {
    Attribute attr = ar.get(MY_ATTRS);
    if (attr != null) {
    System.out.println(MY_ATTRS[i] + ":");
    // Gather all values for the specified attribute.
    for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
    System.out.println("\t" + vals.nextElement());
    // System.out.println ("\n");
    // End search
    } // end try
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    My JNDIRealm in Tomcat which actually does the initial authentication looks like this:(again, for security purposes, I've changed the access names and passwords, etc.)
    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://99.999.9.9:389"
    connectionName="CN=connectionId,OU=CO,dc=mycomp,dc=isd"
    connectionPassword="connectionPassword"
    referrals="follow"
    userBase="dc=mycomp,dc=isd"
    userSearch="(&(sAMAccountName={0})(objectClass=user))"
    userSubtree="true"
    roleBase="dc=mycomp, dc=isd"
    roleSearch="(uniqueMember={0})"
    rolename="cn"
    />
    I'd be so grateful for any help.
    Any suggestions about using the data from Active directory in web-application.
    Thanks.
    R.Vaughn

    By this time you probably have already solved this, but I think the problem is that the Search Base is relative to the attachment point specified with the PROVIDER_URL. Since you already specified "DC=mycomp,DC=isd" in that location, you merely want to set the search base to "". The error message is trying to tell you that it could only find half of the "DC=mycomp, DC=isd, DC=mycomp, DC=isd" that you specified for the search base.
    Hope that helps someone.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • Passing data from one bsp application to another

    Hi,
    I have few queries that most of you would have done in ur projects:
    1. I want to pass data from one bsp application to another:
    eg based upon selected row of table view which populates material no and descriprion to another application which open the entire material master data.
    Now, i have both the pages in diff bsp applications in place but unable to pass the selected material code to the second bsp application.
    Had it been two different pages of same application I was able to achieve it with set parameter()
    2. To stop the application from reprcessing the data:
    eg: Suppose I have a bsp page where user fill details of a customer and on submitinng the details a customer is created in background and the entire page is disabled by my code. Even now if the user press refresh (F5) button then another customer gets created in the background. So basically i want to avoid the reprocess of the onSubmit event
    Few lines of sample code would be very helpful.
    Best Regards,
    Saurabh Tripathi

    Hi,
    When I am writing the following code in appl1/page1:
            export abc from transactionID
            to data buffer lv_page_data.
            CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
              EXPORTING
                NAME                  = 'TRANSACTIONID'
                APPLICATION_NAME      = RUNTIME->application_name
                APPLICATION_NAMESPACE = RUNTIME->application_namespace
                USERNAME              = ls_name
                SESSION_ID            = runtime->session_id
                DATA_VALUE            = lv_page_data
                DATA_NAME             = 'lv_page_data'
    and following code in appl2/page2:
      CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
        EXPORTING
          NAME                  = 'TRANSACTIONID'
          APPLICATION_NAME      = RUNTIME->application_name
          APPLICATION_NAMESPACE = RUNTIME->application_namespace
          USERNAME              = ls_name
          SESSION_ID            = runtime->session_id
          DATA_NAME             = 'lv_page_data'
        CHANGING
          DATA_VALUE            = lv_page_data
       IF lv_page_data IS NOT INITIAL.
         IMPORT abc to transactionid
           FROM data buffer lv_page_data.
       ENDIF.
    still the code doesn't work. Please explain and guide
    Best Regards,
    Saurabh Tripathi

  • Opening pdf's in applications from safari - ipad

    When opening a pdf in an application from safari (i.e. pdf expert, goodreader) the pdf name does not show correctly.  Is there a way to properly create the pdf or open it differently to keep the name in the application?
    Thank you,
    Tom

    Hi Gerard
    You'll need to use at least Adobe Reader 8.1 with Safari 3, otherwise, Safari crashes. To install Reader 8.1.3, go here. At the site, click on the drop down selection menu and choose "Power PC 10.4.3 - 10.4.10". Otherwise, Adobe points you to Reader 9 instead of 8.
    Before installing Reader 8, go to your HD>Library>Internet Plug-ins folder and move to the trash the existing Adobe PDF plug-in. This way, you're ensured of a clean install of version 8.
    After the install, and prior to opening Safari, I suggest you go to your Applications>Utilities folder, open Disk Utility, highlight your HD and select "repair permissions".
    Post back and let us know if that stops the crashes.

Maybe you are looking for

  • My 24" imac has a dim or yellowish cast

    I just bought a Mid 2007 (Model MA878LL) iMac on Ebay. The screen is dimmer than normal has has a yellowish cast or like it needs "it's teeth cleaned". It's not confined to one area or the edges, it's the complete screen. I've run all the updates and

  • Why won't websites load?

    Only some websites work, but most of them don't. My other computers work fine in safari. I also reset my router. Nothing work

  • Import PO with Custom Duty in INR

    Dear All, In the Procurement sceanrio, we places the order on the foregin vendors with document currency other than INR. But if it is the case of Import Procurements then custom is also involved. For such cases we usually specify the custom duty in c

  • Parameters for Table containing only inserts

    I'm on 11.2 DB and need to create an audit table that will be populated by DB triggers of other tables (after Insert,Update and Delete). The triggers will only ever be inserting data into the audit table. I have read that for insert only tables, you

  • ISE 14.7 Evaluation License... Problems supporting specific Virtex-5 device...

    Good afternoon... I'm trying to evaluate ISE 14.7 as an alternative to a very aged version of ISE that is being used to support a legacy design.  The design uses a Virtex-5 (xc5vfx100t).  Synthesis fails when platgen blows up declaring that there is