Is there anyway to make the dock icon bounce on Mac OS X via a javascript event inside a web page?

I'm creating a task management web app, that will be kept open in a tab, and used only when needed to update a your status, an I would like to bounce the icon when new task is assign to the user or other event regarding him occurs.
It would be also nice if I could some how let my application know if Firefox is currently in foreground so I could turn off the bounce of the icon.
And for it to be complete, it would be nice for my app to somehow let the user know that there was an activity it the tab ( to change somehow to color of the tab or use some sort of badge )
Of course, the dock bouncing or the change of the tab state should not take the focus of the users current application or move the focus from one tab to the tab of my web app.
P.S.
I know that I could do an alert() but this option is way to intrusive ( it probably does bounce the icon, but when in browser it takes the focus to my app tab and I hate that )
Thanks in advance

Well ok, and what about some other methods?
I need to get the user's attention.
For Windows 7 I can use toFront() method.
For Mac I need this library, right?!
I think a feature request for something like javafx.application.Application#requestUserAttention() would be fine, no?
And I think stage.getIcons().add("icon") should also set the dock icon for Mac.

Similar Messages

  • Can't stop the dock icon bouncing when there is an "alert" from Thunderbird

    I posted this question on the MozillaZine forum, but no-one there answered so I thought I'd try here.
    I'm using Thunderbird 2.0.0.14 for my email. Is there a way to stop the dock icon bouncing when there is an "alert"? These happen relatively frequently in connection with my Yahoo account, and every time the icon bounces until I go to Thunderbird and click "ok" on the alert box. This is slowly driving me nuts. I have disabled the "animate dock icon" setting for new mail, and for my whole system when programs start or open, but it hasn't had any effect on the behaviour of the icon with regards to alerts.
    Thanks.
    C

    Sorry, I am not trying to be difficult. I'm just lost.
    Hey, no problem, really... we're here trying to help & just need to find out what is needed to help!
    You really should right click on the whole Thubderbird folder and Archive it first, so we can go back if need be.
    Then, it appears that if you just recreate the account, with the name, email, server, and smtp, then everything comes back for that account... at least for global accounts.
    If you wish to hold off on this then just move the original .js back and start T-Bird again, then I can search for a way to edit the existing .js file, because for some reason, when you change your prefs back, it's not changing that file like it should.

  • I have accidentally clicked 'forget the network' for Bluetooth in my Elantra car on my iPhone. Is there anyway to make the Bluetooth connection discoverable again?

    I have accidentally clicked 'forget this connection/network' on Bluetooth on my iPhone. It was the connection for the Bluetooth in my car. Is there anyway to get it back?

    What I have done whenever I restore iOS to my iPhone and set it up as a new phone is I remove the phone entry in my car's BT; then let my phone discover the car's BT and tap 'Pair' on my phone which would prompt for my car's 4-digit passcode. Final result was the phone re-paired to my car's BT.
    You might be able to still re-pair your iPhone without going through what I described IF it discovers your car's BT.

  • Can I use my late 2013 Macbook pro as a display for my xbox one. I am currently sick with the flu and I do not have a tv in my room. Is there anyway to use the hdmi port on my mac and connect it to the xbox one?

    I am currently sick with the flu and in my room I dont have a tv. I tried plugging my xbox one's hdmi into the hdmi port on my macbook pro late 2013 retina display. I even tried connecting the hdmi cable to a hdmi mini display mort converter and that didnt work. How can I use my Macbook as a monitor to play game on

    I would guess that the HDMI port on your mac is for output only - no input, and that's what your'e attempting to do when you attach the mac to your xbox. I looked in Mactracker and it lists the HDMI port as video output for both the 13" Retina MacBook Pro and the 15" Retina MacBook Pro (your post didn't say which one you have), so looks like that is the issue..

  • Name of bar below status bar and above the dock icons

    What is the name of the grey bar at the bottom of Firefox, version 33 . It sits at bottom of Firefox screen. It is usually empty, nothing on it.. I can also x it out to delete it. It sits just above the dock icons on my Mac desktop.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why does the iTunes dock icon bounce when quitting the app?

    ITunes 11.1.2 on Mac OSX 10.6.8.
    Every time I shut down iTunes, the dock icon bounces. This never happens with any other application. Dock icons are supposed to bounce when you start up an app, not when you quit it, Right?
    Thanks.

    Hello there, ocsimple.
    The following Knowledge Base article clarifies what it means when an icon bounces on your dock:
    About the Dock (Mac OS X)
    http://support.apple.com/kb/HT1779
    Particularly:
    Bouncing icon in the Dock
    An application's icon may bounce in the Dock to request your attention.
    When you close iTunes, is it prompting you with a window or some other message when you click the bouncing icon?
    Cheers,
    Pedro.

  • Dock icon bounces for no reason (seemingly)

    I have my iChat set up so that the dock icon bounces when someone logs in, but occasionally (somewhat often) is does one bounce seemingly for no reason. I've left the window visible so I can see if it's someone logging in and out really, really quick, but it's not that.
    Any ideas?

    It also bounes if the chat window is not the front one and there is more sent by your Buddy (or Buddies in a chatroom/group chat).
    It does not bounce if your Buddy changes their Status Message.
    It will bounce if the Buddy list has lost the sort order and the new person coming on line is out of sight on a long list (Or in a closed off group tab)
    2:56 PM Friday; October 6, 2006

  • Is there anyway to disable the chime when I accidentally catch the microphone icon while texting (phone is in silent mode)

    Hi all,
    I might be being a little dull here, but my question is exacly as in the title: Is there anyway to disable the chime when I accidentally catch the microphone icon while texting (phone is in silent mode)?  I have fat fingers occasionally and whilst people at work don't mind private phone usage to have it occasionally activating the mic and then me cancelling it a little annoying.
    Any suggestions?
    Thanks
    Dave

    There is a proximity sensor that should turn the screen off when you place the phone near your face.  Do you have a case that's blocking this?  Try removing your case.  If no case, try restoring you iPhone.  If still a problem, return it to Apple for a warranty replacement.

  • Bought an album off iTunes and two songs from the album will not download. Is there anyway to make them force load or anything along those lines?

    Bought an album off iTunes and two songs from the album will not download. Is there anyway to make them force load or anything along those lines? The Album is Sunshower-EP by UME and the songs are The Conductor and The Means.

    Hey ChandlerAdaway!
    I have an article here that can provide you some guidance for this issue. First, you will want to check for the songs in your past purchases list for your account, if you haven't already:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    If the songs cannot be found there, you will want to report an issue with your download by following the directions in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Is There Anyway To Make A Composistion Without A Set Time?

    Ok, so is there anyway to make a composistion that doesn't have a set time? Oh yeah...and, whenever i look at the time bar at the bottom it's coming up in 1f - 2f -3f - 4f ...So on, is there anyway to change this to like 5s - 10s - 15s   Like it was before? Thank you.
    (CS6)

    You change the length of a composition with the composition settings. There is no automatic way to expand a comp. If you need to add more time then press Ctrl/Cmnd + K or go to Composition>Composition Settings and change the time.
    In the timeline, you can see more or less of the composition by adjusting the area of view using the icons at the bottom left side of the layer view.

  • HT201269 I have years worth of music on my PC that is about to die.  If I get an iPad is there anyway to get the music from my PC onto the iPad? I have the iCloud but my understanding is only music actually purchased from iTunes lives int he cloud.

    I have years worth of music on my PC that is about to die.  If I get an iPad is there anyway to get the music from my PC onto the iPad? I have the iCloud but my understanding is only music actually purchased from iTunes lives int he cloud. I have music that was legally purchased and loaded to my iTunes account from cd's that I no longer own.  I need a new laptop and am deciding between the iPad and the Mac book.  I use the computer for music, photos, and web - nothing else and nothing fancy.  I don't know that there is a way to save my huge music library without saving it to an external hard drive and then loading it to a new one (does the iPad have a port to plug an external hard drive into?)

    First, you would need to make a backup of the entire iTunes folder on the PC. You could get music to the iPad if the PC was still functioning, or you would have to move the music to another computer. An iPad is not a laptop, and does not have a port to plug an external drive into. You can sync music to the iPad from the computer, but you are correct, unless you get iTunes Match, you would need a computer to copy the music to and then sync to an iPad.

  • My hard drive crashed and everything on my laptop was lost... is there anyway to transfer the music that I had put onto my phone into the itunes on my computer ?

    My hard drive crashed and everything on my laptop was lost... is there anyway to transfer the music that I had put onto my phone into the itunes on my computer ?

    I have a similar issue. My hard drive crashed, so I had a new one installed and I'm basically starting from scratch on my computer.  My iPhone has a lot of my stuff on it (photos and music in particular).  When I plugged into iTunes I did a "back up" of my phone to the computer....this transferred the photos in my camera roll, and music purchased through iTunes.
    So....I still have a ton of photos (saved in folders, not my camera roll), and music (older stuff not purchased through iTunes) that I want to get to my computer.  I am scared to "sync" my phone in iTunes for the first time.....if I do this, will it make my phone match my computer (effectively erasing the stuff on the phone?).  What I want is for my computer to match my phone (thus transferring the additional photos and music).  Is the third party software the only way??  Does it really work well/is it worth the money?  Thanks very much for the help.

  • Is there anyway to use the kerning in a selected sentence?

    Is there anyway to use the kerning in a selected sentence instead of selecting each space between the characters?

    ok that is understandable and fully reasonable. but tech is tech. when one is made to do everything it can also be limited through the code.
    Would anyone be able to make or program something to override the code and just use it to send/receive through the hardware. like said the bluetooth tether feature was not doable but mywi was able to through jailbreaking.
    what i am asking is, would be it possible?
    ( edit: didn't read the part of the profiles. )
    profiles are not editable? ... or even replaceable?
    or is it really just too much work ?

  • Is there anyway to limit the number of users?

    Very straightforward, is there anyway to limit the number of users of the Airport Express for only a certain amount of time during the day?
    There are certain periods during the day that I don't want my cousin to use the wifi, but the only way I can think of is to change the password and only type in the password for him when he needs it, however this is very troublesome? Is there a more sufficient way to do this?
    Thank you.

    You have the ability using Timed Access to establish daily time limits (or no time limits) for each computer that will be connecting to the AirPort Express.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Manual Setup
    Click the Access Control tab located under the row of icons
    For MAC Access Control select Timed Access
    For complete instructions, click the Help menu at the top of the screen and then click AirPort Utility Help. Enter the following phrase into the search box:
    controlling access to your wireless network

  • What happened to the dock icon in safari 6.04

    The most recent Mountain Lion update included Safari 6.04. All of a sudden the dock icon looks as bad as google's chrome. When using the magnify option it pixelates all ugly. Did we finally sell out? Is this the way Tim is going to run things? Someone needs to get the axe for this!

    Boot in safe mode. This will cause certain caches maintained by the system to be rebuilt.
    Safe mode is much slower to boot than normal.
    When the login screen appears, reboot as usual (not in safe mode) and test. There's no need to log in while in safe mode.
    Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.

Maybe you are looking for

  • Nano Connection Problem (1st Gen)

    Hey, everything was going well, then suddenly my iPod nano was no longer recognized by my computer. It is not recognized by iTunes or Windows. When I plug it into my computer USB, nothing happens. It doesnt even start to charge. I have to plug it int

  • EJB3.0 App deployed with warning:Object not found in lookup of JPA_DEFAULT

    Hi All ,            I am working on NWCE7.1. I am deploying Enterprise Application DC wich is having 1 . 3 EJB3.0 session DCs 2.  1 JPA DC I am getting following warning in deployment. I have checked persistence.xml for jta-data-source , it is added.

  • Problem apple hardware test

    my macbook pro early 2011 i5 is too slow so i use onyx with no result so i make an Apple Hardware Test for check and i have a alert! a problem hardware with code: 4SNS/1/C0000008:TPCD--124

  • Import .ics calendar to ical

    I have a class calendar that is an .ics file.  I have the url, but do not know how to import it into ical. Can someone help me out?

  • Syncing selected photos to iPod?

    Hi Have just bought an 80GB iPod Classic and my 17 GB music collection is on there no problem. While there's room for my 27 GB iPhoto collection I simply don't want them all on there. How do I get selected photos on there? Can I, for example, set it