Block application without visible dialog

Hi
I need the same behaviour like an application modal dialog but without showing this dialog on the screen. On Windows I can give it a position outside the visible screen area and there it works for me.
But not all platforms allow me to move the dialog away from the screen.
Is there another simple way to block the application for user actions?
Thanks in advance
Wolfgang R.

The problem with blindly killing the terminal is that there may be ongoing shell processes running that will also terminate. Sure, from your script perspective, you know you opened one terminal window and that task has finished, but you don't necessarily know what other terminal/shell processes the user has running, or what they're doing, or whether they're safe to quit.
The right approach is to query Terminal.app to find out how many windows/shells are running, and what they're doing. Only if there are no (or maybe your one) windows open, or if all the windows are idle is the app safe to quit.
Using do shell script avoids all those issues. In fact it neither knows nor cares whether Terminal.app is running at all.

Similar Messages

  • Blocking application input without a modal dialog

    Hi,
    Is it possible to block all input to a Swing application while still having the EDT running? I'd want the effect of opening a modal dialog without showing the dialog itself. This is required in order to wait for a SwingWorker thread to execute.
    The API documentation of SwingWorker.get() states that "When you want the SwingWorker to block on the Event Dispatch Thread we recommend that you use a modal dialog." However, I'm using a ProgressMonitor to monitor the progress of the worker which opens its own dialogs, so I don't want any other extra dialogs popping up. If the EDT simply waits for the worker, the ProgressMonitor dialog pops up but does not paint itself.
    I guess it might be possible to open an modal dialog that is invisible, but it probably can't be guaranteed to be invisible in all environments and not to show up in window lists.
    Is this possible using the normal API, or do I need to duplicate the functionality of ProgressMonitor using an always-open modal dialog (which would seem like quite a waste of code)?
    Also, is there any method that could be called at intervals and which would handle any pending EDT events? I've seen this in some other toolkits (for example GTK+), and it would simplify working in the EDT a lot.

    Thanks for the comments. Especially the page about the disabled glass pane summarized both methods well.
    However, my application may have sevelar application panes and dialogs open that modify the document. Disabling and re-enabling all of them manually would be quite a hassle. Unless somebody can give instructions on replicating the disabling effect of a modal dialog, I guess there are two possibilities left:
    1. Using a modal dialog that opens always, even for short tasks.
    2. Re-implementing the functionality of ProgressMonitor and blocking the EDT for the 0.5 - 1 seconds while it evaluates whether the task is long enough to open the dialog or not.

  • Running scripts from Finder, and printing without a dialog

    Two questions:
    1. I need to launch an InDesign script from outside of InDesign -- such as launching the script from the finder (Mac) and having it run in InDesign. How can I do this?
    2. How can I script printing a document so that it automatically prints, bypassing the Print dialog box that a user would need to click on (I want it to print automatically in the background without the user doing anything)?

    1. Just save your script as an application and wrap your stuff in an "on run" statement.
    on run
    tell application "Adobe InDesign"
    --do stuff
    end
    end
    See the Applescript Language Reference at developer.apple.com/applescript for more info.
    2. Yup. The "do stuff" in your case will probably look something like this:
    tell active document
    --Set up options, assumes you have created a printer preset
    -- with the output options you want
    set active printer preset of print preferences to "my printer preset"
    set page range of print preferences to all pages
    --And then print
    print without print dialog
    end

  • Looking for a case without visible branding

    Hello,
    I am looking to get a case to protect against scratches for my MacBook Pro 13" without visible branding. I would like to avoid skins and haven't found any snap-on cases without a logo on them. Any suggestions?
    Thanks

    You should take a look at Fatpaint (http://fatpaint.com) - Free online graphic design and photo editing application, specialised in giving you the tools you need for creating designs and illustrations for iphone cases, ipad cases. The bcase brand is Speck, and is of great quality.
    It is possible to paint, draw make pages and see your pictures on products and buy them, such as: iPhone case, iPad cases, t-shirts, sneakers and much more. Checkout the tutorial videos, it is quite interesting ...
    http://youtu.be/YkBnf5NGC8Y?hd=1
    http://youtu.be/mnP495V9WHw?hd=1
    http://youtu.be/GNctuQ5T858?hd=1
    Fatpaint's facebook page:
    http://www.facebook.com/fatpaint
    What you guys think of it? I have spent 5 years developing this app. I would appreciate any feedback.
    Thanks

  • Classic app changed to epma application without warning

    Hi!
    I have an application which was initially created as classic planning application. (version 931)
    Today when I opened this application I noticed that dimension members were not editable any more, which led me to think that application has "evolved" to an epma application.
    I do not remember having upgraded application (have just checked if it was upgradeable, even today it is upgradeable???).
    When I browse application library this application is not visible anywhere there. So it seeems that it is not an epma application, but it does not have the classic application features either.
    Can I somewhere check whether this application is currenty classic or epma?
    Is it possible to copy epma application to classic application using copy app (just wild question...) I think i already know the answer, but has anybody tried?
    kind regards,
    user637777
    Edited by: user637777 on 10.12.2009 5:24

    Have you eve used the EPMA file generator as I have seen it change the classic settings so it looks to be an EPMA application without warning.
    You can revert it back go into the planning system tables.
    First look in the HSPSYS_APPLICATION, note down the APP_ID for the planning app in question.
    Next go into the table HSPSYS_PROPERTIES, look at column PROPERTY_NAME = EDIT_DIM_ENABLED for the ID you had in the step above, change the PROPERTY_VALUE from false to true.
    Restart Planning application service.
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Applescript application with UI dialogs auto relaunch !

    I have a strange behavior with Applescript Application with UI dialogs (for exemple, just display dialog "toto" ). These scripts run, quit and then always relaunch with no end, a king of "keepalive" option.
    The problem doesn't appear when I run the script from the Applescript Editor, neither with scripts without UI dialogs. I've tried my application script on another Mac, and it was okay, just on normal run and quit.
    I can't find the source of my problem on the particular mac, both Macs are up to date (10.8.2). I've cleaned up some startup damemons, relaunch the dyld database. I tried to find a clue with the ps command, but I just can see that my application is relaunched by launchd, without more information.
    Has anyone experienced the same problem, or have an idea to find the source of this, thanks.

    You're a little light on details there, which is going to make answering your question tricky.
    Are you saying, though, that launchd is starting your script? repeatedly?
    If so it would help to know what your script is doing. Launchd expects to launch executables and doesn't expect them to quit. If it quits (or dies) within 10 seconds then launchd assumes the process failed and relaunches it. That sounds to me like what you're saying (/var/log/system.log will confirm that).
    If that's the case, the problem is that your script is too quick. Slow it down by ensuring it takes at least 10 seconds before it quits (a simple delay added to the end of the run handler should take care of that), then launchd won't try to restart it.
    You can also edit the launchd configuration to not be so sensitive to short-lived tasks, but that's probably more work.

  • Java Web Start 1.6 fails to start application without Java Consol on Vista

    Hi All,
    I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
    There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
    Application consist of 2 JAR files and they are signed with the same certificate.
    When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
    When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
    I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
    When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
    Could someone help me with advice, since the application cannot be started with default heap size settings.
    Thanks in advance.
    Edited by: vovanst on Jul 28, 2009 8:06 AM

    Hi,
    as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
    We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
    6u13 runs, 6u14/6u15 won't.
    I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
    The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
    The interesting parts of the stack trace are these:
    Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
         at javax.crypto.SunJCE_c.a(DashoA13*..)
         at javax.crypto.SunJCE_b.b(DashoA13*..)
         at javax.crypto.SunJCE_b.a(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
    I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
    Patric

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

  • Jdev 10.1.3.1 "ADF Security": Application without a custom login page?

    Hi,
    We are trying to develop an application using "ADF security", which means we can give permissions to certain roles based on "Binding Container", "Iterator Binding", "Method Action Binding" and "Attribute-level Binding".
    After reading the document -- "Oracle® Containers for J2EE Security Guide 10g (10.1.3.1.0) B28957-01" that Frank pointed out. We have a question:
    Can we develop an ADF application without creating a custom login page? Right now we've followed the security guide and modified the configuration files. But when we run the application, we get the "user null" error message. The reason is clear because we do not have a login page. On the security guide, it says that it is possible to use the oracle default login module. But it does not say how. Does anyone have any idea?
    Thanks,
    Annie

    Brenden,
    Thank you so much for the reply. This is our code in the web.xml:
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>default</realm-name>
    </login-config>
    We are using HTTP basic Authentication. This technique worked for the container-managed security. The browser default login page pops up when the end users try to log into a secured JSP. But here we want to use "ADF security" to set up "Iterator binding" and "Attribute level binding" security. The browser default login page does NOT show up. Instead we get the "user null" error message.
    If you have detailed step on how to select HTTP Basic Authentication, it would be very helpful to us. Or if you know any document has the detail.
    regards,
    Annie

  • Running ABAP Web Dynpro Application without host entry of web server

    Hi All,
    I am trying to run a web dynpro application, its working fine when I have done host entry (host nam.domain.extension) of web server.
    But when I remove this entry from host file it not runs.
    Can you tell me the posibility of running this application without host entry? Based on this possibility I have to proceed my work. Please guide me.
    Thanks and Regards
    Sudhir Gupta

    Hi Sudhir ,
    See the below link , its necessary to provide FQDN.
    http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm
    Regards
    Yash

  • Is it possible to enter GR in GR Blocked stock without reference to PO

    Hi Experts,
    Is it possible to enter GR in GR Blocked Stock without reference to PO?
    Regards
    Manas

    HI All,
    I need the GR in GR Blocked stock and not in Blocked Stock.
    Scenario is : Material came to the gate without PO reference. Client told to enter the material into GR blocked stock. Po will be raised soon.
    Please help,
    Manas

  • Application not visible in PDA  after server deployment

    Hi All,
    I developed an Mi 7.1 application.Deployed  all the sdas in the Mi server using sdoe_upload_archive.I created a device.Assigned all the mobile components to the device .I synchronized the device and it is successful.
    I can see the service and mobile ui component in the  mobileapps folder of the device.
    But I am not able to see the application in the application launcher of the  PDA.
    Any clues in resolving this?
    Thanks and regards,
    Rajesh.A

    Hi Rajesh,
    The application link may not be visible for the below given reason. Check whether it solves your issue :
    Reason 1. If the role SAP_DOE_ALL_APP_VISIBLE is missing for the user on the DOE system, then the application link is not visible on the home page.
    Solution 1. Add the role via agents in the NWM portal.You should also perform a delta download for the following data objects in the SAP BASIS 7.10 software component version (SWCV):
    1. USERDETAILS
    2. USER_AUTHORIZATION
    Reason 2. The application link is not visible because of the user authorization issue. Check whether the SAP BASIS 7.10 software component version is assigned to the device or not.
    If the SAP BASIS 7.10 software component version is not assigned to the device, then follow either of the steps specified below (2a or 2b):
    Solution 2a. Disable the authorization check on the mobile client
    (For PDAs)
    This can be done by creating a configuration.properties file in the \MI\Settings\ folder with the entry com.sap.tc.mobile.cfs.deploy.check_authorizations=false. Stop and start the client. The file is consumed, the authorization check is disabled, and then the application is visible in the application launcher.
    Solution 2b. Assign the authorization-related SWCV to the device (in the NWM portal)
    In the NWM portal, go to the DMSWCV tab in Device Management. Manually assign the SWCV containing the authorization data objects (SAP BASIS 7.10). Trigger an extract. Synchronize the device. The authorization objects are now available on the device. The application appears in the application launcher.
    Reason 3. If the installed client version and the NWMCLIENT.SCA version uploaded in the DOE are different, even then the application link is not visible on the home page.
    Solution 3. Upload the NWMCLIENT.SCA (same version of the client) to the DOE using transaction SDOE_UPLOAD_ARCHIVE.
    Regards,
    Suma

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • Standalone application without labview ?

    Hi
    I am trying to build an .exe file using application builder in LabVIEW 7.0. Is it possible to build an application without labview dependency ? In short, I want something like an .exe file which will run on systems without labview. I know visual basic has this facility. Please let me know.
    Thanks
    Sridhar.
    Kudos always welcome for helpful posts

    "Maximus00" <[email protected]> wrote in message news:[email protected]..
    > . . . I wanted an option where he can view my application without having
    to install anything on his PC. Looks like that is not possible ? Am i right
    ?<br><br>Sridhar.
    You are not right. It is possible. With LV 7.0 and previous versions (I
    don't know if this still works for 7.1), the executable will run correctly
    if lvrt.dll and the other support files are in the same directory. So you
    could, for example, put your executable on a thumb drive. Copy all files
    and folders in the C:\Program Files\National Instruments\shared\LabVIEW
    Run-Time\7.0 directory to the thumb drive as well. Then your supervisor
    could just run the program from the thumb drive without copying anything to
    his computer. Or, if you want the drive back, he could copy the entire
    contents to his drive without using an installer.
    But this begs the question, if your supervisor is evaluating executables you
    are creating in LabVIEW, what's the problem with installing LV Run-Time on
    his computer?

  • Why does the mouse cursor move to away from the currrent application without the mouse being moved

    the mouse cursor moves away from the current application without the mouse having been moved - this started with the new version - re-installing Firefox makes the problem go away for a short period - re-installing is not a solution
    == This happened ==
    Every time Firefox opened
    == a few days after installing 3.6.3

    Hello Jim.
    It's probably one of three things:
    #your mouse is getting old (this behavior is common in old optical mouses);
    #you have software that is making your mouse cursor behave unexpectedly (I know of an option in Windows that will automatically move your mouse to windows buttons...);
    #or you may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?

Maybe you are looking for

  • How to use standard Smart forms

    hi All, Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE Thanks, Nitin

  • Add arabic file names to ZipOutputStream problem

    Dear All, i have problem with add arabic file names to ZipOutputStream problem my sample code : zipOutputStream.putNextEntry("عربي.txt");//some arabic text the zip file created successfully and contain files but the files in the zip file with name '?

  • Deleted operation in workorder

    Hi I had deleted operation in the work order after release of work order How can change the material group in the operation which is deleted sicne it is not allowing for teco when the operation was created the material group restiction was not there

  • Reader Nine Printing Set up error

    Every time I print a PDF, the first page prints fine but every subsequent page of the document prints tiny in the upper right had corner of the paper. This is despite the fact that it views perfectly on the Reader program. Can someone please help? Th

  • Save Pdf photo to iPhoto

    Save Pdf photo received in mail to iPhoto on phone?