How to close Terminal Windows and terminate processes with Applescript?

I'm trying to quit the Terminal via AppleScript. I need to run 4 different Terminal scripts on a server but would also need to restart this server every day automatically... and my favorite choice would be to do this properly.
I suceeded terminating all other applications, cleaning folders and sending messages, but I did not find a solution quitting the Terminal!
When I tell it to quit, it asks if I want to terminate all processes, even if I use the "ignoring application responses" command. The Terminal gets stuck on that dialog box and one has to manually hit "Terminate".
Anyone knows about a solution how to avoid this prompt or how to default "Terminate"? There must be something like "close window 1 with process terminate", or?
Many thanks in advance!

:-))) Sometimes the answer is so easy... Thanks a lot!

Similar Messages

  • How to close Internet Explorer and other programs running on Windows?

    In order for Flash Player to be installed or updated, any programs that use Flash Player must be closed.  This includes Internet Explorer or other browsers, instant messengers, Skype, etc.
    These programs may be running in the background, not as visible windows, but need to be closed anyway.
    To close such programs use the Windows Task Manager.  To start Task Manager, take any of the following actions:
    Press CTRL+ALT+DELETE, and then click Task Manager.
    Press CTRL+SHIFT+ESC.
    Right-click an empty area of the taskbar, and then click Task Manager.
    Once the Task Manager is running, select the Processes tab.  On older Windows version you may need to click on the Process Name or Image Name header to sort the process names.
    Now right-click on every process that the Flash Player installer needs to close (e.g. iexplore.exe), then select End Process.
    It would be desirable if the Flash Player installer could perform that action by itself; I have therefore created an enhancement request.  If you were affected by this problem, please head over to the Bugbase and vote for this request: https://bugbase.adobe.com/index.cfm?event=bug&id=3548136

    See How to close Internet Explorer and other programs running on Windows?

  • How to close ie window?

    hi,
    i need to write a program that could open and close a particular url in ie browser for a particular number of times. i could open the browser using following code
    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    Process p = Runtime.getRuntime().exec(cmd);but i could not find how to close the window - please help

    p.destroy()... but how do you decide when to destroy the process -- are you using a timer or whuh?
    By the way, if you just want to open a browser in a platform independent way, you could try the new Desktop [browse |http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#browse(java.net.URI)] method.

  • Firefox will close when i close the window but the process doesn't shutdown ever since i had updated to FF25

    I am running Win. 8.1 and had no issues with FF 24. Since upgrading to FF 25, firefox will appear closed when i close the window but the process doesn't shutdown. I have to go into Task Manager to end the process. I can then launch it again.

    SOLUTION (possible).
    Hi all. I had this problem as well. I currently run FF26. A week or so ago, out of nowhere FF wouldn't exit - the window would close but firefox.exe process would keep running in the background using about 50% of CPU. Not sure if it's connected, but just prior to that I clicked on a link on Facebook that looked like spam website, nothing happened, site loaded (sort of, all I saw was a msg - Please Wait...) but nothing happened, I have Eset antivirus and it monitors network traffic and files for viruses, so maybe it prevented my PC getting infected...
    So, I had this problem for a few days, was searching the net for solutions, but nothing seem to help. Then, just out of luck I did something that WORKED!
    Here's what I did. I noticed that svchost.exe was using a lot of CPU alongside with FF. I ran ProcessExplorer to see what might be connected to this process, the list was long and I didn't have any idea where to start, so what I did was - Right click on svchost process, choose Debug and dismiss the warning. In a few seconds svchost process quit and after that FF started closing properly.
    I had to re-enable all my plugins and themes I disabled prior, I also lost my history and preferences which I trashed in the process of searching for solution. But heck, it worked, hopefully for good. Now if someone could point out the real cause of this and fix it for everyone - that would be great. Cheers!

  • How to close open windows with ios7, How to close open windows with ios7

    How to close open windows with ios7, How to close open windows with ios7?

    Guess they thought we needed more exercise so now we have to swip them to close.....miss iOS6. My eyes are blurry now after looking at my phone, and my arms are tired from swipping lol

  • How to close safari window in iPad?

    I upgraded iPad2 to ios5 and Safari is configured differently.  I can't see how to close an open URL.  Previously, you could touch the little open book that had the number of open windows, and a screen with all the open windows opened.  You could just click on the x in the corner and the URL would close.  Now the open URLs are listed across the screen, and little open book shows no numbers and when you hit it you get History.  So, how to close a URL? 

    You can't close it as such, but you should be able to get it to re-open with a blank tab by first clearing Safari's cache : Settings > Safari > Clear Cookies And Data (Clear Cache on iOS 4) and also Clear History
    And then close Safari completely : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    When you re-open Safari you should, hopefully, just have a blank tab.

  • How to close child windows when parent window closed in jsp

    how to close child windows when parent window closed in jsp
    becoz it can't be able to recognise it's parent
    with the whole application
    plz send me some sample code of it

    Hi, I have no idea how to do this is JSP.
    However createing a modal window (with javascript) would mean that the user can not use the parent window untill he closes the child window. However not sure if this is what you are searching.
    Otherwise you can detect the onClose (I think) and close the window from there.
    However both the above are JavaScript and not JSP.
    rwgards,
    sim085

  • When I close firefox window and later open firefox window it opens with blank page and nosidebar bookmarks

    when I close firefox window and later open firefox window it opens with blank page and nosidebar bookmarks

    Sounds like Firefox is "hanging at exit". That problem is frequently caused by an Extension or a Plugin. Read all of the following articles.<br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #*Mac users: http://techheavy.com/2011/02/the-mac-task-manager/
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • When I try to play several games like: FiFa 2011HD, Real Racing2HD and TransformersHD, after I selected the configurations to start to play it, and then the game close  the window and returns to the Ipad main screen. I upgraded my Ipad at Apple store but

    When I try to play several games like: FiFa 2011HD, Real Racing2HD and TransformersHD, after I selected the configurations to start to play it, and then the game close  the window and returns to the Ipad main screen. I upgraded my Ipad at Apple store but nothing happened. Anyone knows how can I resolve it, please ?

    1. first try to reboot your ipad
    if that don't work then try downloading another app don't matter which one
    and if it fix your problem you can just delete it afterwards

  • How do I share windows and iOS on my MAC book pro

    how do i share windows and iOS on the same hard disk on my MAC? will each of the operating system see the whole disk?

    Either you don't understand or misuse just what iOS is, it is only found on iPad, iPhone, iPod and does not run on Macs in any way, and as far as we here the only operating system of interest is Mac OS X Lion 10.7.5 or above.
    There are forums for iPad and if you have a notebook then you want MacBook Pro forum.
    As for Windows, there is a forum for "Boot Camp" to set aside and use part of your hard drive for Windows to run natively.
      MacBook Series Forums
    https://discussions.apple.com/community/notebooks?view=discussions
      http://www.apple.com/support/ipad
    Mac 101: Using Windows on your Mac via Boot Camp
    https://support.apple.com/kb/HT1461
    Helpful Apple Support Resources (Forum Overview)
    Boot Camp Support 
    Boot Camp Manuals
    Learn more about how Mac computers can run Windows 8 using Boot Camp 5.
    http://support.apple.com/kb/HT5628
    Products Affected
    Boot Camp, Windows 8
    General installation questions
    What is Boot Camp 5?
    Boot Camp 5 is not a release of OS X software. Rather, it is a release of the Windows Support Software (drivers). You will need to use this software on your Mac with Windows 8 or Windows 7. For more information on Boot Camp 5, see this article. 
    http://support.apple.com/kb/HT5639
    Which Macs support Windows 8?
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Mid 2010 or newer)
    Mac Pro (Early 2009 or newer)
    Mac Mini (Mid 2011 or newer)
    iMac (27-inch, Mid 2010 or Mid 2011 or newer)
    For more information, see this article.
    What are the System Requirements for Windows 8?
    Please see this article.
    How can I install Windows 8 on an eligible computer?
    Use the Boot Camp Assistant. The assistant will partition your internal hard drives and install Windows 8. For more information on Windows 8 installation, see the Boot Camp Installation & Setup Guide.

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • Why do my animated themes only work the first time I open the window? Every one that I have tried stops animating if I close the window and open a new one.

    The headline pretty much sums up my problem. Basically, I picked a few different animated themes to try out in the Add-Ons section to personalize my browser window. They look great initially, and in the window that is open when I actually enable the theme. However, if I close that window and open a new one, the theme is stationary and no longer animates.

    Sorry......I was just too impulsive. ( Maybe because it was 4 AM at Taiwan, and I was still trying to solve the problem= = )
    Although to install the add-on "Personas Shuffler" can solve the problem to me, I don't think it was the BEST solution. This evening, I read why the add-on "Personas Shuffler" was made, and found that the BEST solution is:
    1. Open a new tab, and type "about:config" at the URL bar, then search for "lightweightthemes" with the filter.
    2. Change the values of "lightweightThemes.persisted.footerURL" and "lightweightThemes.persisted.headerURL" from true to false( by double click on them).
    3. After doing so, restart Firefox and you will see it works! You don't have to install any add-on.

  • How can I use JTA in my business logic and execute process with PAPI?

    HI All,
    How can I use JTA in my business logic and execute process with PAPI?
    When my business logic has exception, the process will rollback.
    or the process has some exceptions, my business logic also will rollback.
    I don't know how to do it.
    Does anyone know how to do it?

    Thank you for your reply, Daniel.
    But I think I did not express my mind clearly.
    There is a scene that I have 2 Application Server.
    My business code is deployed in one Server.
    The BPM is deployed in another Server.
    I want to execute Task use PAPI.(ProcessServiceSession.runActivity)
    In my business code, I will do something before execute Task.
    I need my business logic and Task in same transaction.
    To ensure them "all-or-nothing" .
    As you say, if The transactions are managed by Oracle BPM.
    then can I retrieve OBPM transcaction in my business code?

  • The window couldn't be opened because your computer is low on memory. Please close some windows and try again.

    When attempting to reply to or forward email, or to compose a new message in Outlook OWA I receive the following error message: "The window couldn’t be opened because your computer is low on memory.  Please close some windows and try again."  This
    occurs even if the web application is the only window open.
    My operating system is Windows 7.

    Hello,
    According to the error message, it should be a Windows issue.
    Try OWA and see if we can send/receive email properly. If OWA works fine, I suggest we post this question to Windows 7 Forum below:
    http://social.technet.microsoft.com/Forums/en/category/w7itpro
    Thanks,
    Simon Wu
    TechNet Community Support

  • How i avoid this window and directly fetched date

    hi master
    sir i have three options button when i select anyone then my query change and fatch new data
    but before fetching data system show new windows with this message
    Do you want to save the changes you have made ?
    with yes / no /cancel button
    sir how i avoid this window and directly fetched date
    or how bypass this message
    please give me idea

    bro, when u execute the query to fetch records it tries to validate the form and pops an alert message. if u want to avoid it do this
    change : execute_query;
    to: execute_query(no_validate);
    now it wont ask for validation of the previous records present on the form, but make sure such actions are not not a threat to data integrity.
    zaibi.

Maybe you are looking for