Problem displaying windows

This is my first AppleScript Studio app so please be gentle.
part of my script checks to see what applications are running. If there are applications running that shouldn't be then I want an error window to appear. If the check is OK I want a different window to appear. The problem I've got is BOTH windows appear no matter what. I tink I'm heading in the right direction but can some help??
Here's my code:
on clicked theObject
set goodProcs to {"Finder", "Disc Eraser"}
tell application "System Events" to set theProcs to name of every process whose background only is false
repeat with myProc in theProcs
if myProc is not in goodProcs then
-- Display Warning Window
show window "WARNING"
else
show window "Erasing Disc"
end if
end repeat
end clicked

I haven't had much experience with AppleScript, but I think I see the problem. You are running the test against every process. Every time the loop hits a "badProc", it will display the warning, and everytime it hits a "goodProc", it displays the other window.
What you need to do is set some sort of Boolean variable before you run the loop (i.e.: set badProcsRunning to FALSE), then in your loop, have the following:
if myProc is not in goodProcs then
set badProcsRunning to TRUE
end if
Follow that with another if statement AFTER the repeat loop:
if badProcsRunning is TRUE then
show window "WARNING"
else
show window "Erasing Disc"
end if

Similar Messages

  • Problems displaying a utf-8 page on firefox on windows server 2003 however the same version of firefox is working fine on windows xp, is there any specific thing to check on windows server 2003?

    firefox is having problem displaying utf-8 page on windows server 2003 however the same version of ff is working fine on windows xp, is there any configuration to check on windows 2003?

    Can you post a link and attach screenshots to show the difference?

  • Problem displaying php page in dreamweaver

    I am having problems displaying php scripting on dreamweaver.
    Need your advice.
    Installed dreamweaver 8, Coldfusion 7, mysql, php5.2 (using
    windows installer).
    Created file test.php ror testing containing
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    date is:<b><?php echo Hello ?></b>
    </body>
    </html>

    ulises_arsi wrote:
    > I am having problems displaying php scripting on
    dreamweaver.
    Tell us what the problems are.
    > Installed dreamweaver 8, Coldfusion 7, mysql, php5.2
    (using windows installer).
    PHP needs to be configured with a web server, such as Apache
    or IIS.
    ColdFusion is also a webserver, but as far as I know, it
    cannot be
    configured to serve PHP pages.
    > date is:
    <?php echo Hello ?>
    The only thing that would display is an error message. Hello
    needs to be
    enclosed in quotes:
    <?php echo 'Hello'; ?>
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Temp Profile Problem. Windows 7, Domain

    I have about 50 machines on domain with Windows 7 32bit OS.  We are having a problem with windows not grabbing our default profile for three of our users and instead giving them a Temp Profile every time they log into the domain.  One is a normal
    user account and two are admin.  All other users can log onto any computer at anytime and they do not get the temp profile.  The three accounts get the temp profile no matter which computer on the domain they choose to log in to.  Any ideas?

    Creating a default local profile for Windows 7
    Create a new standard local user account (named STDPROFILE), add this account to the local Administrators group on the PC.
    Reboot, then log onto the PC using the local user account from previous Step.
    Set up profile settings as desired; desktop icons, mapped printers, FRVIS physical/logical, IE home page, etc..
    Reboot when finished, log back onto PC with the local “Administrator” account.
    Double-click “Computer”, then click organize, folder and search options. On the view tab, make sure “show hidden files, folders and drives” is selected; also uncheck “Hide protected Operating System Files”. Click OK
    Under C:/Users, rename the hidden “Default” user folder (NOT “Default User”)
    Make copy of the profile (STDPROFILE) customized in Step 2, rename the folder “Default”.
    Right click the folder—under properties, then security tab—add “Everyone” permissions with Full Control (include all folders and subfolders).
    Run regedit.exe
    Click on HKEY-LOCAL-MACHINE. Under File, select “Load Hive”
    Browse to the “C:/Users/Default” folder, click on ntuser.dat (make sure hidden and system files are displayed). Name the key TEMPLATE_ACCOUNT.
    Right click on the TEMPLATE_ACCOUNT key, select Export, save the .reg file to the desktop.
    Open the .reg file with Notepad, and under “Edit—replace..” put the user name STDPROFILE in the “Find what” field, to be replace with the string %USERNAME% -- choose “Replace All” then save the .reg file. Double click it to re import the changes.
    Re-open regedit.exe
    Under TEMPLATE_ACCOUNT – Control Panel – desktop, change “Wallpaper” path to the wallpaper of your choice (a local OR network path will work here). Check other settings and modify any other keys.
    If RealPlayer is installed to the image—click on TEMPLATE_ACCOUNT—SOFTWARE—Realnetworks. Delete the entire RealNetworks Key. This key will recreate.
    When done, click on TEMPLATE_ACCOUNT. Then click File, select “unload hive”. This will save the changes you made.

  • 've recently upgraded to FireFox v22.0. Originally, a legacy XBAP I use always opened correctly in FireFox and had no problems displaying or running. As of v22.

    I've recently upgraded to FireFox 22. Originally, a legacy XBAP I use always opened correctly in FireFox and had no problems displaying or running. As of 22, it won't even attempt to download the application, let alone try and display it.
    I have the windows Presentation Foundation 3.5.30729.1 installed, which is the same version I have been using in older versions.
    Can anyone shed some light on any changes that would have effected this?

    Hi, I have a similar problem. I did attempt the *.rdf fix on a test system, but it didn't work (em:maxVersion was already 22).
    We got about inflow of phone calls from our clients experiencing the problem mentioned above from the 2nd of July onwards... and more are phoning in.
    All the complaints come from clients (+- 10 so far and rising in number) using Firefox v22 (we have checked), and all of them have said that it was working previously.
    We downgraded one of the clients to an older version of Firefox, and it worked again. So far we are telling our clients to downgrade until a fix comes out, or use Internet Explorer (*blush*)

  • Open GL Problem in Windows Games

    I have a problem playing Windows Games under Boot Camp in the native screen resolution of my imac (1600 x 1200.) The graphic card is the ATI Radeon HD 2600
    When I try to play Doom 3 and try to set the screen resolution to maximum an annoying error occures: In Doom 3 after restarting the game the screen resolution is back to 640x480 and there is no way to get it startet in 1600x1200. In Medal of Honor the game crashs with a "Could not load open gl" error message. Same error comes in Return to Castle Wolfenstein.
    When I set the screen resolution down to 1280x800 everything works fine in all three games and I can play.
    I think there is a problem with the drivers from ATI in connection with the HD 2600 and Open GL based games. I first got the error with the patched ATI Radeon drivers that can be found on the net, so I managed to use the original ATI driver from ATI's website. No effect. The error is still there.
    Does anyone no, what the problem is? I would be very happy to play the games in high res again. (My Dell PC boosted these games with a resolution of 1920x1200, so this hurts a little bit...)

    Hi and welcome to Discussions,
    you can not use a resolution that is higher than the native resolution of your iMac display, which is 1680x1050.
    Even if only one of the numbers is higher as the native resolution (in this case the 1200, while the 1600 will fit) this resolution is not useable.
    Therefor only the next lower resolution can be used.
    Maybe with tweaking some settings of Doom 3 (and the other games alike) following these hints http://www.techspot.com/tweaks/doom3/doom-2.shtml you might be able to get the 1680x1050 resolution.
    Regards
    Stefan

  • Problems installing Windows 7 on new iMac?

    I've heard from users on other forums that there are some problems installing Windows 7 on the new iMacs, mainly that the display goes blank partway through installation due to some kind of driver issue. Can anyone confirm this or elaborate? I've heard there is a workaround but it sounds a bit complicated and I'm wondering if I should just wait until Apple patches Boot Camp with full Win7 support.

    I would wait until Apple updates Boot Camp to officially support Windows 7.
    http://support.apple.com/kb/HT3920
    FYI - There is a forum for Boot Camp
    http://discussions.apple.com/category.jspa?categoryID=237
    so you may find more useful information there.

  • Zen V Plus Display Window Sym

    hello board, My husband surprised me with a new Zen V Plus to listen to audio books. Everything seems to be working ok but all of a sudden there is a new "symbol" in the upper right hand corner of the display window that looks like two circular arrows with a next to them. Can anyone tell me what this is What did I do to make it appear How can I make it go away Thanks to all DJ

    I don't have the Zen V Plus but the sign pretty much seems like 'Repeat Track' or something.
    What you can do is to go to click the Menu button then go to 'Play Mode' and select 'Normal'. That should solve your problem.

  • Frequency display window needs to be able to reference IEC and user supplied reference curves

    Hi Guys,
    the frequency display window displays white noise as a horisontal line.
    Theoretically it is fine, but in the context of audio production it is "less
    fine".
    It needs to be able to reference pink noise as well as user supplied
    reference curves, be it plotted or in table form, table would be fine for
    me, but plotted splines would fit the intuitive gui.
    That saves the incredibly wasteful step of first adding a biasing frequency
    compensation to audio prior to anylyzing it so as to get a display of the
    audio that is actually useful in the context of audio production and
    restoration rather than acoustics.
    Kind regards
    Peter Larsen

    popUp2 is a javascript function included in one of the .js files referenced on every Apex page.
    It is defined as popUp2(URL,width_of_popup_page,height_of_popup_page). Referencing this function instead of calling window.open() should solve the problem you were having with the calling page's text being set to [object].
    If you want only to have to only administer the URL that is popped up in one place you could, as you suggest, use the navbar or, alternatively, you may want to look at using a shortcut to store the URL value (Application > Shared Components > User Interface > Shortcuts).

  • I have using I phone 5c after connected with my HP elite book 6930p laptop, Automatic software driver is not deducting,  and display Windows found driver software for your device (MTP USD Device) but encountered an error while attempting to install it.

    I am using I phone 5c after connected with my HP elite book 6930p laptop, (Installed  Window 7  32 bit).  automatic software driver is not deducting,  and display Windows found driver software for your device (MTP USD Device) but encountered an error while attempting to install it.
    I did install itunes and update also. but the above problem still same.
    Kindly give me solution of it. awaiting.
    Regards
    Abbas Kader

    try it with another computer to check if it shows up
    if so
    uninstall all apple software
    reboot
    use regedit to search and remove all itunes keys
    reboot
    resinstall apple software
    if non of that helps then try another cable
    if that don't help could be your phones connector is damaged

  • Graphic problem in Windows with Boot Camp?

    I only just noticed this today when I was editing some pictures in Photoshop using Windows (Boot Camp). My version is Windows 8 64-bit and the Photoshop is CS 6 but I suspect the same thing would happen even if I were using Windows 7.
    Whenever I view an image in Firefox, Chrome, Windows Picture Viewer or any other program besides Photoshop, the image is always displayed as it is and appears as crisp and sharp as it should. For example, if I load a picture that's 600x600 pixels outside of Photoshop, it would look exactly like it is - at 600x600.
    But once I open it in Photoshop, and if it happens to be a very big picture (which it is for me, most of the time), the picture would look resized (i.e. smaller), but the Photoshop navigator would still say it's displayed at 100% magnification. So a 2000x2000 picture would basically look half its real size but still be at a zoom setting of 100% according to Photoshop.
    That in itself isn't the problem, but trying to edit/crop the image is. If I were to select a part of the picture and resize it to, say, 100x100 pixels, the final image would be a bit blurry, even if I save it at "most high" quality. That obviously makes my image "un-usable" because the quality is so terrible. This doesn't happen at all on a computer without retina display but on mine it makes the task of editing images in Photoshop frustrating and pointless.
    I really think it's an issue with retina display's native resolution not being supported in any version of Windows, so I'm hoping anyone who uses a Macbook Pro RD, Windows AND Photoshop could help me get around this problem.

    Did you grab and install the graphic driver from Nvidia?
    Apple or even Microsoft driver are not always the best.
    Boot Camp 5.0 drivers to start just to enable the various chipsets and basic support.
    http://www.bing.com/search?q=Windows+8+MacBook+Pro+Retina+cuda+driver+Nvidia
    http://www.anandtech.com/show/6008/windows-8-on-the-retina-display-macbook-pro
    http://blogs.nvidia.com/2012/06/new-macbook-pros-make-for-great-cuda-dev-platfor ms/
    http://www.geforce.com/drivers/results/59645
    https://developer.nvidia.com/cuda-downloads
    https://devtalk.nvidia.com/default/topic/528725/forcing-retina-macbook-pro-to-us e-intel-graphics-for-desktop-freeing-memory-on-cuda-device-/
    I see a black screen or distortion when I install Windows 8 on a MacBook Pro (Retina, 13-inch, Late 2012). How do I fix this?
    The Windows 8 installer does not contain the correct graphics driver for your computer. You'll need to attach the USB media that contains the Boot Camp drivers during installation to address this issue. See this article for more information.
    http://support.apple.com/kb/TS4517
    www.apple.com/support/bootcamp
    Windows 8, Thunderbolt devices are being recognized when I connect in. How do I fix this?
    Disable the Windows 8 Fast Boot feature to allow Thunderbolt devices to be recognized. See Boot Camp: Thunderbolt devices not recognized after Windows 8 upgrade for instructions.
    http://support.apple.com/kb/TS4531
    Also with any GTX you may want to see if there is a CUDA driver as well.
    Intel HD Graphics 4000
    NVIDIA GeForce GT 650M with 1GB of GDDR5 memory and automatic graphics switching
    Dual display and video mirroring: Simultaneously supports full native resolution on the built-in display and up to 2560 by 1600 pixels on up to two external displays, at millions of colors
    Also, Intel 4000 graphic driver, switching between Intel HD and Nvidia has been a problem.
    From my (now old) notes:
    I had problems with windows 7 after the installation using boot camp. The GT 650M was not showing up as the graphics adapter. I fixed the problem by inserting my windows support software CD a second time. I did not let it use auto run.  I went into the Windows 7 directory and then into the Nvidia directory and ran setup.exe. This installed the Nvidia drivers for me. If this works correctly, you will have an Nvidia control panel available to you. I set the resolution to 2880x1800. I also set windows to 200% magnification.
    I think what happens is that after you install windows, and then run the windows support CD, the main boot camp setup script seems to stop on the nvidia driver install--everything else installed correctly.
    The 2012 MacBook Air suffers from an EFI firmware bug that under Windows blocks turbo mode.
    Disable Windows 8’s Adaptive Brightness to Fix Dark Screen Problems2012 MacBook Air plagued by audio noise with Apple's Thunderbolt display
    Intel Windows 8 Graphic Driver
    Intel Download Center: http://downloadcenter.intel.com/
    3rd Generation Intel HD Graphics 4000 Windows 8 64-bit
    http://www.guru3d.com/news/intel-whql-graphics-driver-windows-8-download/
    http://www.zdnet.com/blog/hardware/windows-8-an-installation-walk-through/14768
    http://huguesval.com/blog/2012/02/installing-windows-7-on-a-mac-without-superdri ve-with-virtualbox/

  • Lenovo Z500 Intel Graphics and Function Keys problem on Windows 10

    Hi.i have a problem with Windows 10 upgrade.My Model Is Lenovo Z500.  6Gb Ram.  Intel 3230m.  Nvidia GT740m.Since the upgrade to Windows 10 the brightness is at full and i cant dim it,it's always the same.and there are two more problems.second one is my shortcut function keys(Fn + F buttons) don't work :bluetooth,touchpad,turn off screen,refresh etc... .Only buttons that work are for volume and for brightness that dont do anything when i try to lower it down but it shows in upper left corner that the keys are responding.And the third problem is i cant duplicate my display but only can extend .As far for the other stuff everything is smooth and fast.even my games got bigger FPS, for example "Counter Strike Global Offensive". I would like to know if there is fix for brightness and for duplicate screen problem regarding graphics driver, and for my function keys regarding keyboard. Thanks and  i hope for quick response. I know Windows 10 just came out and i know you are at full capacitity for solving everyone's problem but i hope you'll look into this because i'm not the only one with this problems.      

    Hi phitbull,
    Are all the hotkeys on your SL500 not working, or they are simply not displaying the controls on-screen? (ie. increase, decrease or mute will display on screen). It may be possible that you are missing out on some drivers for your system. If you look around the forums, there are many posts on users experiencing hotkey issues, mainly due to missing pre-requisite drivers. You can find a handful of drivers in the Lenovo Support website's Windows 7 BETA page at the following URL:
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=WIN7-BETA
    Perhaps you can give this a try:
    1. Install the Lenovo System Interface Driver (v1.01):
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=WIN7-BETA#sid
    2. Install the Hotkey drivers (which installs OnScreen Display v5.32.00 and ThinkPad FulLScreen Magnifier v2.07)
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=WIN7-BETA#atkh
    Hope the above helps with your issues.
    Lenovo ThinkPad Lover using R60, T60, T61, X61s, T410

  • HP 250 G3 - problems with Windows 10 boot

    I have problems with Windows 10 boot on my HP 250 G3. It often shutdown during boot. But boot is ok with Windows 8.1. Please release upgrade that solve this problem.

    SomeoneWithAnHP wrote:
    Guys this might be solution: Turn off your laptop. Disconnect all devices connected to the PC. Remove battery and disconnect from wall. Press the power button at least 20 seconds. Connect back battery and turn on your PC. It should be fixed by now, I did with my Pavilion 14, and both sleep and turning off problems were fixed.re:  Black Screen and Dead keyboard after locking computer. I tried this with my Envy 17t-3200 3D CTO.  Didn't help.  for this computer this means removing the back cover and unplugging the battery wiring harness form the Motherboard. I currently have sleep mode disabled when on AC and am still getting the black screen, dead keyboard lockup.  I really know I'm hosed since even the caps-lock is non-functional. I see this problem more when I'm at work were I tend to Win-L lock the screen when I walk away from my desk.  Seems like locking the computer then letting the screen blank is doing something evil. After I force a reboot, by keyboard backlight forgets it's setitngs and returns to full brightness. If I lock the screen then bring back the computer before the screen is blanked, it seems fine. I don't think there's any way to adjust the screen blanking when the lock screen is up (even my desktop power-saves the monitors after a few minutes on the Lock screen). I'm not sure it's HP or MS that should be looking into this.  My computer is about 3 years old so I can't pester HP with warranty requests. I'm not sure how prevelant this problem is. Are all Pavellions and Envy's having the problem?  Mine has Radeon graphics which was a bit unusual at the time.  I have to install the HP Display driver before any AMD updates or the screen dimming doesn't work (at least with win 7 and 8). Dave.  

  • IChatAgent hogging CPU, now won't log in or even display windows other accounts

    iChat just started malfunctioning for me, (possibly coincidentally) right after uninstalling Acrobat Reader 9 and installing Acrobat Reader X.  Running OS X 10.6.8.
    iChat will now cause the entire computer to lag, and Activity Monitor indicates iChat Agent is hogging the CPU, and continues to until I quit it through Activity Monitor.
    I have since
    Uninstalled Acrobat Reader X
    Deleted all com.apple.iChat and com.apple.iChatAgent plists
    Repaired permissions, both from normal booting and off the Snow Leopard DVD.
    Reinstalled iChat using the Snow Leopard install disc and then ran the 10.6.8 combo upgrade to bring it into line with current.
    Problems have not subsided, and now, when recreating my account logins (AIM and two Jabber accounts), while it will log into my AIM account, it won't even display windows for the two Jabber accounts or Bonjour when I add them.  The Window menu doesn't even give the option to bring the Jabber accounts up, and when the Bonjour window is selected, it asks to log in to Bonjour and never does.
    And still, iChatAgent goes nuts and has to be forced to quit or my Macbook slows to a crawl.
    Help?

    Hi,
    In iChat Menu > Preferences > Accounts deselect the options to Use this Account on both your Jabber IDs
    Also try and deselect the option to Automatically log in on Launch.
    Shut Down iChat then restart it so it only then loads the AIM Login.
    Has iChatAgent stopped going crazy in Activity Monitor ?
    If it has, delete com.apple.ichat.Jabber.plist
    Restart iChat
    This will causse the .plist to be rewritten from Defaults and info in the Keychain  (It does not hold your Buddy lists - these are held on the server as Jabber IDs only.
    Go to the Preferences > Accounts and Select Use this Account on one Jabber ID.
    Does it Login and has iChatAgent remained settled in Activity Monitor ?
    If one work login the other.
    Reset Automatically Login on Launch and restart iChat.
    NOTE
    All I have really asked is to Delete com.apple.ichat.Jabber.plist and restart iChat.
    I have given other instructions to see if iChatAgent is having trouble with AIM's Login and cannot move on.
    I have also suggested that you make sure both Jabber IDs cannot Login on iChat Start Ip as steps along the way.  (Ity may highlight one ID is more troublesome than the other).
    If It seems the AIM Account is sending iChatAgent bananas then Quit iChat then delete com.apple.ichat.AIM.plist and then restart iChat.
    DON'T Delete all the iChat .plists as we will learn nothing.
    9:28 PM      Monday; June 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Installation problem on windows server 2008 r2 datacenter edition 64bit

    hi
    today, i tried to install the current maxdb 7.8 release on my virtual server with a windows server 2008 r2 datacenter 64bit edition os. at the first installation, i got an error message something with "rte runtime error". at this point, the installation stopped.
    because of this error, i tried to uninstall the failed installation. this was not possible, in the uninstaller, i didn't see any components, so i can't uninstall.
    so i tried to delete the files manually: the entries in the start menu, and the application's path under "program files"... first, i need to kill a process named "serv.exe", that creates a tcp daemon under port 7200... after killing it, the deletion of the dir in program files was successful.
    this is very very weird, now my server is "contaminated" with an uncomplete uninstallation of maxdb...
    why maxdb 7.8 has problems on windows server 2008 r2 datacenter 64bit edition???
    thanks for feedbacks!
    regards, jan

    > no, because i canceled this virtual server - another method to solve this problem. (i have really no time for things like that..!)
    If you take the time to give exact error messages then someone will be certainly able to help
    > on windows server 2003, there are NO problems.
    Windows 2003 != Windows 2008 - they use a different kernel, a different security system (UAC) and other features that may prevent a succesfull installation in the first place.
    I installed a MaxDB 7.8 just today on Windows 2008 R2 and it worked fine.
    Markus

Maybe you are looking for

  • Ipod shuffle no longer works after 10.7.5 upgrade!

    I have the late 2009 iPod (Product) Red Shuffle 2 GB, always worked fine but after the Mountain Lion (10.7.5) upgrade it does not show up in iTunes. Yes I have the latest iTunes and latest everything. I've already tried unplugging it and resetting th

  • Custom command problems on Mac OS X

    I am seeing a problem with custom context commands in our custom connector that is also reproducible with the sample FTP connector shipped with the SDK.  I am using Adobe Drive 3.2.0.41 on Mac OS X 10.8.2 For my test I am connecting to a FTP server a

  • MORE D2G screen issues...

    Ok, so I am having quite a few of the same problems listed in the 'screen issue' threads for the Droid 2, and D2G. The phantom finger on the screen, back/home buttons sometimes don't work, unable to scroll a web page without it zooming in, and when i

  • Credit note due date

    Hi Client wants the due date in a credit note (A/R) to reflect a date according to the Payment term of a customer. This I can achieve with a formatted search. The payment terms for  customers are - 30 days Due date based on posting date Start from mo

  • Why won't the Watermark Menu scroll?

    I have Lightroom 5.3 and I can't get the watermark menu in the export dialogue box to scroll up or down. It's effectively stuck and I can't apply my 2014 watermark.  I've tried deleting some existing watermarks in the main lightroom folder but it has