Reboot and shut down scripts failed on open dialogue window

I have a headless server.
It is scheduled to shut down at 01.00 AM via the control panel.
I have a script (tested it works) to shut down the server should the control panel fail.
tell application "System Events"
shut down
end tell
Should this fail for some reason there is a second script that tell the computer to reboot shortly before the control panel schedule should start the server.
tell application "System Events"
restart
end tell
Yesterday it failed to execute either script. ITunes had been running and checked for updates and found one. It was installed and this resulted in the dialogue box appearing that wants you to promise not to steal the code etc. No person there to click OK so it hung and cancelled all processes.
So this stopped the shut down as well as the reboot.
The reason I have this script is as to make sure the computer has no hanging programmes or windows and shuts down and fires up on the desired time.
Anybody knows how to make it force to quit the programme?
Or better would be (and my preference too) to have it check if such windows are open and OK them before shutting down.
I know this is only a one in thousand occurrence, but it would be nice to have it not happen again, this time I was there to fix it.
Thanks.

'b4' - ?
Your problem is not with the provided instructions; but, the version of 'Script Editor', SE, you use.
I use SE, v. 2.0 (43) from a 'Panther' (MacOS X 10.3.x) installation. This application version works on PPC Macs running 'Panther' and 'Tiger' (MacOS X 10.4.x), and Intel Macs running 'Tiger' and (dog crap) 'Leopard' (MacOS X 10.5.x). At least here.
The features and (intuitive) ease of use of SE v. 2.0 are superior to its equivalents of 'Tiger' and (dog crap) 'Leopard'. Besides allowing one to view the 'Description' textarea field of a 'Run Only' script, SE v. 2.0 allows one to select all of the 'Suites' titles in the left side list, click on the right side panel, and then search for any character, word, or string - such as 'a', 'is', 'the', 'reference', 'in MHz' - anything. Try such a search with SE v. 2.1 and v. 2.2.
Try this example:
Select SEs' 'Window, Library' menu item. A window titled 'Standard Additions.asdictionary' will appear.
From the 'Library' windows' list, double click on 'StandardAdditions'.
SE v. 2.0 only - Select all of the suites of the left side panel, then click once on the right side panel.
In the search field (SE v 2.1 and v. 2.2) or search window (SE v. 2.0) enter 'in MHz', and press the <return> key. Did SE v. 2.1 or 2.2 find it? SE v. 2.0 goes right to it; even highlighting the search string result.
As an exercise - waste your time looking for 'in MHz' in SE v. 2.1 and / or v. 2.2.
Hint 01: Search for 'system'. Now you have a one (1) in four (4) chance of locating the user desired string (of 'in MHz') by viewing the text of each listed result.
Hint 02: Try searching by 'Description' - click on the search 'magnifying glass' and a popup button of choices appears - click on the 'Description' menu item. Still, unlike with SE v. 2.0, SE v. 2.1 or v. 2.2 does not actually highlight the located character, word, or string.
Ok, you finally located the line of 'in MHz'; but now - you want to see all of the commands of the related 'Suite' - how do you do it? In SE v. 2.0 you may have to scroll up a little; but, in SE v. 2.1 and v. 2.2 ...

Similar Messages

  • IPod Touch 2.0.1 Reboots and shuts down randomly

    I have an 8gb iPod touch on the 2.0.1(5b108) firmware that now reboots and shuts down randomly while just sitting idle. I've tried restoring and resetting and it still does this. In terms of the shutting down randomly it seems like my hold button is sticking or broken, but I can't explain the random restarting. This has only been happening since I updated to 2.0.1. Any advice?

    As posted before as m9performance but the forum would not let me logo on as that.
    This has been going on for some time now Apple was to fix this problem with the 2.0 update absolute rubbish it is now worse that before just turning it self off and resetting it self e.g. tonight from 17-30h to 18-45h it did this 3 soddin times.
    Where as before it would be about once every 3 weeks or monthly it is about time Apple started to honour their customers with a product that works e.g. it dose what it says on the box and plays music until the customer tells it not to.
    Come on Apple fix up and fix your product lots of people have mp3 players with out the touch problems like I have said before never mind bringing out a new bigger one 32G get the old ones working first. At the end of the day it is down to YOU Apple and not for the users to have to keep posting the same problems hoping that you as a company decide to fix your mistakes and eventually look after your customers.

  • System sleep and shut down not working after upgrade to windows 10

    HiI upgraded my OS from win 8.1 to win 10.After the upgrades the system shutdown and sleep are not working properly.It's like when I shutdown/sleep the system ,the screen shuts down but the power key keeps glowing and also the battery keeps draining.So eachtime I have to foercefully press the power button to shutdown the system. I have updated the display driver . Please someone  suggest, what to do ?

    Hi there ,  Thank you for visiting the HP Support Forums and Welcome! I read your post on the HP Support Forums and seen that you are having issues with your HP Pavilion 15-n260tx Notebook PC and the Sleep/Shut down options. It sounds like you might be having an issue with one of the features of Windows called Hybrid Shutdown that is used for the Fast Startup feature.  Here are a couple of links for you about Fast Startup, Hybrid Shutdown and How to Shut down your Notebook completely. They also have some troubleshooting steps in them.   1. Fast Startup - Turn On or Off in Windows 10.2. Shut Down Computer in Windows 10. If those do not work, I do have some more documentation for you to read and try.  1. Shut down (turn off), sleep, or hibernate your PC - This document is from Microsoft. 2. HP Notebook PCs - Managing Power Options (Windows 8)3. HP PCs - Sleep and Hibernate Issues (Windows 10, 8) Sometimes a BIOS Update will work. You can update all of your drivers by going to the HP Driver's website or by using the HP Support Assistant. On the Driver's page there is not an update for the Windows 10 Column, but there was an update that just came out under Windows 8.1 on Aug 7, 2015 that should work for your Notebook.  Another fix that may work is to Run the Troubleshooter. Please follow this link to run the Windows Update Troubleshooter.   I hope this helps!  Have a great day!

  • HELP: torch keeps rebooting and shuts down

    I've tried the application loader software on desktop and from the BB site and with and without the battery in and in all cases it does not recognize any software is loaded.  All i get is that i have to add some software and I found online some forum that suggested to download any game and add it so it will stop it from rebooting.  I can't figure out how to download a game with .ali or alx.  Can anyone help as I have gone through all the help messages on here.

    Make sure to remove your battery from the 9800 then do the following >
    If you have desktop software downloaded you will need to go into your windows files on your computer.
    Go to > program files (x86) > Common Files > Research In motion > App Loader > Loader.exe
    Click on the loader.exe
    Once it loads up click next then plug usb cable form your computer to the 9800 it will detect it.
    Keep the battery out, once it finishes loading and it goes into reboot put the battery back in.
    Viola like a brand new 9800.

  • Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it

    Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it at all.

    Without proper system information and the application logs nobody can tell you much.
    Troubleshoot Creative Cloud download and install issues
    Mylenium

  • If I have more then a few tabs open such as gmail, facebook, and a zynga game no tabs will load at all. I close and reopen firefox numorous (Im talking 7 or 8 times or many more) and shut down the zynga game and still it wont load

    If I have more then a few tabs open such as gmail, facebook, and a zynga game no tabs will load at all. I close and reopen firefox numorous (Im talking 7 or 8 times or many more) and shut down the zynga game and still it wont load the tabs or if it does and I then try to add the game or any other site at all on a tab it causes firefox to stop working (though not close) and I have to restart opening and closing it many times to get it to work at all.

    1st, you will not be able to activate your PPro1.5 on ANY new computer, see next link for the special version you MUST use
    CS2 (and earlier) Activation Server http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l
    2nd, you already mentioned Virtual XP, so if a direct install doesn't work, that would be the way to go... or, to just do what SHOULD work from the start, just do Virtual XP

  • SubVI will open and shut down immediately

    When I run this program, the VI that is called opens, then shuts down immediately. I open the subVI from the VI Server then i want the VI Server to wait until it recieves a signal to shut down the subVI.
    Ron Deavers, CLD
    Attachments:
    Tier3Main1.vi ‏45 KB

    You should use the Error In and Error Out to see if you have Datasocket errors. Run the vi with trace execution on, and use probes to look at data outputs and error out of various steps. You may have a datasocket error, you may have an error opening the Final1 vi, or the FinalDone boolean might be True before the vi is done. Also, you could clean up your wiring a bit before posting. It makes it very hard to follow the logic when you have wires hidden and wires looking like they are connected to the right side of a funtion when they are actually connected to the left side. We are here to help you, please don't make it more difficult with bad wiring practices.
    - tbob
    Inventor of the WORM Global

  • Computer crashes and has to be shut down whenever Firefox is opened.

    The problem started when I tried to open specific websites and then it worsened so that whenever I attempt to go to a page other than the Firefox home page, my computer has to be shut down. I can open Firefox but I can't do anything else; it even bombs my computer when I try to do troubleshooting. The problem doesn't occur when I use either Safari or Chrome.
    Have tried the following:
    1. Resetting preferences.
    2. Doing a clean reinstall.
    3. Opening Firefox in safe mode.
    4. Updating active plug-ins.
    I can't send any crash reports because there are none listed. I think it's because the computer bombs and is unable to record any info. I've tried to attach the troubleshooter.xpi file below, but it never loads. Don't know if it's because I'm working in Safari.
    Application Basics
    Name: Firefox
    Version: 35.0
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:35.0) Gecko/20100101 Firefox/35.0
    Multiprocess Windows: 0/1
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: DivX Plus Web Player HTML5 <video>
    Version: 2.1.2.145
    Enabled: false
    ID: {23fcfd51-4958-4f00-80a3-ae97e717ed8b}
    Graphics
    Device ID: 0x71c5
    GPU Accelerated Windows: 0/1 Basic Blocked for your graphics card because of unresolved driver issues.
    Vendor ID: 0x1002
    WebGL Renderer: ATI Technologies Inc. -- ATI Radeon X1600 OpenGL Engine
    windowLayerManagerRemote: false
    AzureCanvasBackend: quartz
    AzureContentBackend: quartz
    AzureFallbackCanvasBackend: none
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 2
    browser.places.smartBookmarksVersion: 7
    browser.startup.homepage_override.buildID: 20150108202552
    browser.startup.homepage_override.mstone: 35.0
    extensions.lastAppVersion: 35.0
    gfx.blacklist.direct2d: 3
    gfx.blacklist.layers.direct3d9: 3
    gfx.blacklist.webgl.msaa: 4
    media.gmp-gmpopenh264.lastUpdate: 1421453305
    media.gmp-gmpopenh264.version: 1.1
    media.gmp-manager.lastCheck: 1421453305
    network.cookie.prefsMigrated: true
    places.history.expiration.transient_current_max_pages: 80531
    plugin.disable_full_page_plugin_for_types: application/pdf
    privacy.sanitize.migrateFx3Prefs: true
    Important Locked Preferences
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.7
    Version in use: 4.10.7
    NSS
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSMIME
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSSL
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSUTIL
    Expected minimum version: 3.17.2
    Version in use: 3.17.2
    Experimental Features
    Please note that I can't update my computer's OS X because it's too old for the latest versions.
    Please help me fix this problem. Firefox has been my favorite browser for years and I'd hate to have to use something else after all this time. Thank you.

    Ok, sorry to hear that the crashes are not recording. I did notice that there was an issue with the graphics card. There are two things we can try:
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    #Open Firefox ''Options'' window (''Preferences'' on Mac or Linux) as follows:
    #* In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]] and select ''Options'' for Windows or ''Preferences'' on Mac or Linux.
    #* In Firefox 28.0 and previous versions, click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    #In the Firefox Options (or Preferences) window, click the ''Advanced'' tab, then select ''General''.
    #In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    #Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    Or try this:
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • HT4933 I mistakenly opened a Word doc attachment to an email.  It was a one-pager about a "business proposal" I know nothing about. I deleted mail and shut down Mac.  What now?

    I mistakenly opened an attached Word document in an email from someone whose name I knew, but then discovered it was someone else I didn't know apparently using that name.  The document was about some "business proposal".  I closed the document, deleted the email, and shut down my computer.  The document was open on my computer for about two minutes.  My question is whether opening this document might have exposed my computer and files to a virus or some other malware?  What should I do now? 

    My question is whether opening this document might have exposed my computer and files to a virus or some other malware?  What should I do now?
    1. No
    2. Nothing
    Barry
    edit: simultaneous posts!

  • IDVD opened and shut down

    I clicked iDVD to open and it s opening and shut down again and again. Any solution for that? Jerome

    Trash the plist and repair permissions.

  • New firefoxis great. i keep many windows open. in ur earlier ver. I used to close it, it would ask for save and shut down as one of the three option,but in this new version it close all my window, how do i save my window tab?

    new firefox is great. I usually have many windows open. in your earlier version, when ever I used to close it, it would ask for save and shut down as one of the three option,but in this new version it close all my window, how do i save my window tab?

    See [[Firefox does not ask to save tabs and windows on exit]].
    Does this work for you?

  • After cleaning my mac it opens and shuts down again please help!!!

    after cleaning my mac it opens and shuts down again please help!!!

    I opened the cover (there where the battery is) and I cleaned the dust gently with a dry napkin ...remove the battery and placed it again ...closed the cover and when i turn on my macbook bro now it shows the Apple logo and after some seconds it just shuts down (i have OSX 10.9 Mavericks)....
    I tried to boot in safe mode, also tried to repair it and even re-install Mavericks and so on, but I could not fix it. I did a hardware test and the no problems occurred.

  • TS1702 My Kindle app suddenly stopped working on my iPhone 4s. All my software is up to date and I have restarted the phone, uninstalled and reinstalled the app and it still opens and shuts down instantly. Any ideas?

    My Kindle app suddenly stopped working on my iPhone 4s. All my software is up to date and I have restarted the phone, uninstalled and reinstalled the app and it still opens and shuts down instantly. Any ideas?

    We need clarification here.
    Please don't just state version numbers, also state which software.  iTunes 10.7 requires OSX 10.6.8 or higher.  Leopard is OSX 10.5.8.  You have two alternatives right now.  One is to stay with Leopard for a while (ultimately you should upgrade) and install iTunes 10.6.3 which is the last version to work with Leopard.  This should work with iOS6 on an iPhone4.  The other is to call Apple and order OSX 10.6 (Snow Leopard) and upgrade the computer to 10.6.8 which will allow you to run iTunes 10.7.  The caveat is we know nothing about which computer you run and if it even can run any system higher than Leopard.
    Here is iTunes 10.6.3
    iTunes 10.6.3 - http://support.apple.com/kb/DL1575
    If you want to try upgrading:
    Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About this Mac" and "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).  If it says something about Intel or Core Duo or Core 2 Duo in the processor you can upgrade to Snow Leopard (assuming you have sufficient RAM/"memory").  If it says PPC or PowerMac, you cannot.
    Kappy 08/2012 post on upgrading to Snow Leopard, then Lion or Mountain Lion -  https://discussions.apple.com/message/19401628 - including how to get Snow Leopard and Lion since Apple removed them from the online store. 
    It would help when posting issues here if you would state exact error messages you see.  "It's still not working!" while a description of the situation does not speed us to a diagnosis of the underlying issue.

  • I updated itunes now itunes says there is a problem and shuts down the program everytime I open it.

    I updated itunes now itunes says there is a problem and shuts down the program everytime I open it.

    Hello there, cskilli.
    The following Knowledge Base article offers up some great, in-depth and practical steps for troubleshooting the issue you're describing:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Every time i open doc in reader it tells me there is a problem and shuts down

    every time i open a doc in adobe reader x1 it tells me there is a problem and shuts down any body know how to fix
    its driving me nuts

    What is your operating system?

Maybe you are looking for

  • How to populate table editor which has dropdown by index in a column

    Hi Experts, I have a table editor with 3 columns. Column 1. DD By Index - Subjects Column2: marks ( input field ) column3: Result ( text view) On an action of button on top of the view, i am getting the data for column2 and 3 and populating the node

  • Populate a table field based on another field in the same table

    Hi,     I have a table with fields collection profile and collection prfile text. When maintaining this table, the collection profile name should appear automatically ( from table UDM_COLL_GRPT) based on the collection profile entered.. In UDM_COLL_G

  • Airport Extreme, Airdisk, and Vista - large file problem with a twist

    Hi all, I'm having a problem moving large-ish files to an external drive attached to my Airport Extreme SOMETIMES. Let me explain. My system - Macbook Pro, 4gb ram, 10gb free HD space on macbook, running latest updates for mac and vista, external har

  • Authorization for generic object services - GOS - payroll data

    Is there anyway to restrict what people see via GOS?  I can't see any authorisations behind it except S_OC_ROLE.  Seem users can view payroll details of a workflow agent in the workflow logs(view with technical details).   Its a wild shot that an end

  • Record more than 2 shows

    Does Verizon Fios intend to compete with AT&T U-verse and upgrade the recording capability to include more than 2 shows at a time (and if so, when)?  I often have to watch tv on one of the smaller televisions because I'm recording 2 shows on the main