My custom javascript interface/dialog in photosohp is taking too long to load, draws empty window sometimes. How can I get it to wait?

I have a long script that loads a lot of variables and icons.
Unfortunately it sometimes just draws an empty window.
I've been working around it by putting a break in before it draws the window, and then I step over and it displays fine.
I've added a $.sleep of 25000, but that seems to not work too well. Not sure its doing anything.
I've split the code into a few scripts and I've had them as one giant script. No difference.
I'd appreciate some ideas/solutions on this topic as I'm feeling like I'm out of ideas.
Thanks.

There are bugs in ScriptUI that Adobe needs to fix perhaps you have run into one. I know the Paul and X have reported bugs to Adobe... Try asking in the scripting forum...Photoshop Scripting

Similar Messages

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • How can I get an ucropped image in a Custom Package when using Stroke and/or Border??

    How can I get a picture in a Custom Package that has a Stroke and/or a border and get the image shown fully, and not cropped in one way or other?
    When I add the stroke/border it adds them inside the cell, thereby altering the ratio of the area for the picture inside it, which crops it in some way. How can I get the image to be uncropped?  The controls available seem to all be for the ration of the outside of the cell, but my image is inside the stroke/border and nothing seems to work on it directly ... 
    Many thanks,
    Gary

    Perhaps I misunderstood your requirement.  I have been frustrated by LR print module and labs effectively squeezing individual shots into existing frames. So I have used LR2Mogrify to export (and then re-import) a 'new image' which manages the discrepancy between a crop and a cell of a different aspect ratio by adding padding - usually 'white' - around the image to a canvas corresponding to cell dimensions. Adding stroke borders can be accomplished in Mogrify inside or outside the image.  A custom package, with multiple cell dimensions can be populated with images created in the corresponding aspect ratio(s) for the relevant cells.
    I'm not aware of a way of automating the creation of cells in a page to dimensions which change with the crop as discovered  - drag and drop images onto a blank page creates cells of the same standard size.  

  • How can i get the h:selectOneRadio value with javascript

    Hi all.
    I have this code
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor()" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor()
    var tipoRelacion = document.getElementById("form:color").value;
    alert("color" + tipoRelacion);
    And what i get is that color is undefined. How can i get the value of the selected radio?
    Thanks a lot

    you just need to pass this while calling javascript function
    check this-
    <h:selectOneRadio id="color" style="font-family: Arial;font-weight:lighter;font-size: 12px" onclick="showColor(this)" >
    <f:selectItem itemLabel="RED" itemValue="1" />
    <f:selectItem itemLabel="BLUE" itemValue="2" />
    </h:selectOneRadio>
    And javascript function is
    function showColor(obj)
    var val = obj.value
    alert("color" +val);
    }

  • How can I get a credit card re-instated with ITunes/Apple Store?  It was blocked due to an ITunes billing error.  Called customer (lacking in) service, but they were no help!

    How can I get a credit card re-instated with ITunes/Apple Store?  It was blocked due to an ITunes billing error.  Called customer (lacking in) service, but they were no help!  The rep emailed that I had to get a new credit card   No way.... --PB

    Only Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
    Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
    Regards.

  • How can I get a tooltip to show up on a custom button obj on a dashboard?

    I have added a ClearAll button object (to clear the filter criteria) on a dashboard that I am working on, and have added some text in the comments section of the properties. I can see the resulting tooltip when I hover over the button in the Client Side IR studio tool; however, when I upload the .bqy to the server and view the report in the web EPM version, the tooltip does not show. I can see the other tooltips for the buttons that were originally on the dashboard template I used, but I cannot see the one for the custom button I added. Does anyone have any ideas how I can get this to show up?
    Thanks in advance,
    Cindy

    I copied an existing clear filter object (I believe this is an image object, but not sure how to confirm) from the provided square tab sample template in Express Template.bqy. After your post, I took a second look at the object and remembered I had changed the name from picClearAll to ClearAll. I had changed the name because the button was continually disabled when navigating within the dashboard before I renamed it. I am assuming this is because the object picClearAll in the provided templates is associated with results filters. I do not have any results filters, so it was showing as disabled. I have filters on the query itself, and was hoping to use this same image on my button to clear the query filters (I put java scripting behind the button to do this).
    Another interesting thing about this is that when I change the name of the object back to picClearAll, and during runtime force the button to be enabled, I DO see the tooltip I am trying to get to work; however, as soon as I navigate or refresh the dashboard in some way, the button goes back to disabled.
    How can I get the button to be enabled (without having filters on my results), and still show my tooltip?
    I am using Hyperion version 11.1.1.3.0.956.
    Thank you for your help,
    Cindy

  • I accidently deleted my ap-manager interface How can I get it back? WLC440

    I accidently deleted my ap-manager interface How can I get it back? WLC4400
    Thanks in advance..
    admin_users 1 301 10.147.1.8 Dynamic No
    hvac 1 268 172.19.15.8 Dynamic No
    management 1 447 10.147.8.8 Static No
    nwlan 1 862 10.147.6.8 Dynamic No
    service-port N/A N/A 192.168.168.200 Static No
    switch mgmt 1 1 192.168.15.8 Dynamic No
    virtual N/A N/A 1.1.1.1 Static No
    voice 1 860 10.147.4.8 Dynamic No

    Take a look at this documentation:
    http://www.cisco.com/en/US/docs/wireless/controller/5.2/configuration/guide/c52mint.html#wpmkr1159694
    It should help with creating ap-manager interfaces.

  • Custom Webdynpro text field is taking too long to accept input values

    Dear All,
                   I hvae created custom web dynpro for PO header fields in SRM. This WD contains a lot of fields. When i try to put cursor on a text field it is taking too long for the cursor to appear in that input text field. There is no problem with other fields which have search helps associated with them. This field with the problem is just a text field.
    Please help.
    thanks.

    Dear All,
                   I hvae created custom web dynpro for PO header fields in SRM. This WD contains a lot of fields. When i try to put cursor on a text field it is taking too long for the cursor to appear in that input text field. There is no problem with other fields which have search helps associated with them. This field with the problem is just a text field.
    Please help.
    thanks.

  • How can i get localecontext within customer validator?

    Hi,
    I want to localize my error message ,so I need to get entity attribute label
    within customer validator,I write code as follows( eo is entityImpl object eo=valCtx.getSource();)
    String attributeLable=eo.getStructureDef().findAttributeDef(tempAttrName).getUIHelper().getLabel();
    but getLabel need localeContext parameter,How can I get it or where can set it ?
    thanks very much
    lixz
    2006/12/5

    Hi,
    try this:
    DefLocaleContext dlc = new DefLocaleContext();
    String attributeLable=eo.getStructureDef().findAttributeDef(tempAttrName).getUIHelper().getLabel(dlc);

  • How can i get customer material??

    if i just have a material number and the plant which the material is belong to and material group 4(mvgr4),how can i get this material's customer-material(knmt-kdmat).
    if the knmt-kdmat is null,how can i do??
    ths.

    just put this in sequence ,,
    <b>u want customer material for vkorg\vtweg\kunnr\matnr</b>
    or
    <b>customer  for vkorg\vtweg\matnr</b>
    or just tell me ur fields and what to fetch (customer / customer material).
    regards,
    VIjay
    VBAK, VBAP is sufficient for ur query ..
    just explore this tables ..

  • How can I get customer service?

    How can I get costumer service

    Hi Iris and welcome to the Skype Community,
    Please follow the instructions here to contact Skype customer service
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

Maybe you are looking for

  • I am getting error messages when trying to open itunes. I have tried to reinstall but the error keeps coming up.

    I am getting error messages whe I try to open itunes.  I have tried to reinstall three times.

  • Volume won't mount - xsanctl returns error 5

    Dear List, One of our Volumes has failed to remount following scheduled software updates and cvfsck disk utility run. PromiseGroups, the problem volume starts, shows up in cvadmin and the GUI but won't mount either through the GUI or CLI. Recent filt

  • URGENT : dbms_job

    Hello every body. I work with oracle 8i server 8.1.7 . I created procedures and job . Here are the codes : create or replace procedure importer_remise_transac(p_fichier varchar2) is v_file UTL_FILE.FILE_TYPE; v_buff long; v_affect varchar2(25); v_lon

  • Ant conditional target in Build.XML

    Hi! I am new to the Ant Build process & I am looking for some condition type build parameter in build.xml so that the user can use some command line option to execute the same target but with some modification & if not passed then the normal executio

  • OTROS

    I have too much space in "OTHERS" when sync with iTunes... I followed the instructions on the recomendations of the Apple pages, but space still used... At least 10Gb on iPad and 7Gb on iPhone.