Getting foreground application

Is there any way for my app to know when the foreground application has changed? So if my app is running in the background and Safari is running, then the user switches to iTunes, can my application get alerted that iTunes is now active? All the code I have seen on the net for doing this doesn't seem to work anymore with OS X. Is there any code that does, or do I have to resort to polling with a timer to keep checking what the foreground app is?

I think you can still install an AppleEvent handler in the system dispatch table but I haven't tried that in years and may not know what I'm talking about.
I don't remember any kind of notification callback for this sort of thing off the top of my head. What have you tried so far?

Similar Messages

  • I have installed Adobe packages and cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?

    I have installed Adobe Creative Cloud for teams CC Packages which says that Acrobat XI Pro is installed. Your support page says it does not install Acrobat and I have to look in the Extensions folder for an MSI file.  I have run a number of searches and  cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?
    Also I now administer the teams and have accepted the invitation to I received to be a team member and download the apps.  The admin page shows that I have been sent an invitation but does not show my account as "ACtive" unlike my other team members.  I tried to use the link in the invite to accept it become active but the link displayed an error saying I had already accepted the invite... why is no account not active?
    Finally what other product downloads in Creative Cloud do not actually download as part of the Creative cloud Packager for downloading the apps? e.g. acrobat and what else?

    My apologies Eadeszoo I believe our support agents are unavailable on January 1.
    Are you able to copy the contents of the DVD to your computer?  Are you receiving any particular error messages when you are trying to install?  Finally which operating system are you using?

  • How to get SAP application language only with SQL code

    Hi all,
      is there a way to get the current language only whith a sql query on the Database?
    I know that Ican find that information from the Application object of the UI Api but in this case i can't access them.
    Thanks in advance, Luca.

    Hello
    You cannot get the Application language (GUI Language) from SQL, because it is stored on the client machine filesystem
    Location is defined in
    C:\Program Files\SAP\SAP Business One\Conf\b1-config-path.txt text file, which by defaulf is:
    %USERPROFILE%\Local Settings\Application Data\SAP\SAP Business One\b1-current-user.xml file
    Regards
    J.

  • Not able to get the Application ID value in ADF Phase listener for Custom ADF application which integrates with Ebiz R12.2.3

    Hi All ,
    I am working on one custom Order Mangement ADF Application which integrates with EBiz R12.2.3.
    We are trying to get the Ebiz userid ,username,Responsibility ID and Application ID in ADF through below Code
           public HashMap checkEBSSession(HttpServletRequest request,
                                       HttpServletResponse response) {
            System.out.println("In AMImpl.. checkEBSSession1");
            Session session = null;
            HashMap hmap = new HashMap();
            try {
                Connection conn =
                    getDBTransaction().createStatement(1).getConnection();
                System.out.println("In AMImpl.. checkEBSSession2");
                EBiz ebiz =
                    new EBiz(conn, "012E7E82CD8852BBE053860F6E0AD63413191049361744553610276495342217");
                System.out.println("In AMImpl.. checkEBSSession3");
                AppsRequestWrapper wrapper =
                    new AppsRequestWrapper(request, response, conn, ebiz);
                System.out.println("In AMImpl.. checkEBSSession4");
                session = wrapper.getAppsSession(true);
                System.out.println("In AMImpl.. checkEBSSession5");
                Map columns = session.getInfo();
                System.out.println("In AMImpl.. checkEBSSession6");
                String respId = (String)columns.get("RESPONSIBILITY_ID");
                String currentUserId = (String)columns.get("USER_ID");
                String currentApplId = (String)columns.get("APPLICATION_ID");
                String currentOrgId = (String)columns.get("ORG_ID");
                System.out.println("In AMImpl.. checkEBSSession7...respId : "+respId);
                System.out.println("In AMImpl.. checkEBSSession8...UserId : "+currentUserId);
                System.out.println("In AMImpl.. checkEBSSession9...APPL_SERVER_ID : "+currentApplId);
                System.out.println("In AMImpl.. checkEBSSession10..OrgId : "+currentOrgId);
                logger.info("respid:  " + respId);
                //System.out.println("In AMImpl.. checkEBSSession8");
                hmap.put("RESPONSIBILITY_ID",respId);
                //System.out.println("In AMImpl.. checkEBSSession9");
            } catch (Exception e) {
                System.out.println("Error: " + e.getMessage());
            return hmap;
    By using this code I am Getting all the Information Except the Application ID.
    If someone  have any idea how to get the application ID please share it .
    Thanks in Advance !!
    Thanks & Regards
    Apurv Agarwal

    Hi,
    since you implements the backing bean from PagePhaseListener. some where the same view is excuting before getting the selected record. Even if you select the record after excuteQuery() it will set the first record as selected. Please try to check some where query is excuting.
    try give some more details like what are all the methods you are using in PagePhaseListener and where you worte u r coding.
    Reg,
    Brahma

  • Itunes wont open, I get "itunes application could not be opened. An unknown error occurred (-50)"

    I'm on Windows 7 - using itunes daily without problems and suddenly itunes wont open, I get "itunes application could not be opened. An unknown error occurred (-50)"  The only thing I can think is I think there was a download in progress when I shut down the computer.
    I tried uninstalling and reinstalled, but I get the same thing. I tried clearing the itunes folder and reinstalling, same thing. help!

    Doublechecking. When you did the complete uninstall, were you using the following document as a guide?
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    (If damaged program files are involved here, a standard install might not remove them, and a reinstall might not then replace them. So the Verify iTunes and related components are completely uninstalled section is an important step.)

  • How to get web application to use Tuscany without conflicting with SAP SDO

    Hi,
    We are attempting to run a web application on SAP NetWeaver CE 7.1 SP1 which uses Tuscany SDO.  As it now stands We must use Tuscany because the web application will not run with the SAP SDO implementation provided by Netweaver. To ensure that Tuscany is loaded with priority, we have packaged the Tuscany JAR files and their dependencies as a heavy resource, as described here:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257?overridelayout=true
    The final check showed that Tuscany was correctly deployed as a heavy resource and included the following JAR files:
    common-2.2.3.jar
    ecore-2.2.3.jar
    ecore-change-2.2.3.jar
    ecore-xmi-2.2.3.jar
    tuscany-sdo-impl-1.1.1.jar
    tuscany-sdo-lib-1.1.1.jar
    tuscany-sdo-tools-1.1.1.jar
    xsd-2.2.3.jar
    We also verified that the web application using Tuscany has a hard reference to the Tuscany heavy resource.
    However, when we try to run the web application, the following error is logged:  java.lang.LinkageError: Class commonj/sdo/DataGraph violates loader constraints
    The issue is definitely due to some kind of classloading conflict with the SAP SDO library, as the application runs normally when SAP SDO is manually removed from the classpath. Doing this on a production system is unfortunately not an option, though.
    So the question is: how to get web application to use Tuscany without conflicting with SAP SDO?

    I took a look at the "printerReady" example.  Looks like I may be able to use the InetPing (...) function to ping through a range of IP addresses looking for a response.
    Any ideas on how to find the MAC address associated with the IP addresses that respond?
    We may have multiple units responding and the MAC address will allow the operator to determing which unit to connect to.
    I'll try the InetPing to see how it works,
    Kirk

  • I have an ipod touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    I have an Ipod Touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    It sounds like you essentially have a new computer and unless you restored from a backup your iTunes library would be empty.  You can transfer your iTunes purchases from your iPod to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    SInce you changed syncing computers. after you move the stuff you need to restore the iPod to factory defaults and sync the stuff back to your iPod.  If you had the iPod backup file you could restore from backup.
    If you have non-iTunes pruchases you can copy them to your computer by using one of the third-party programs discussed in this previous discussion:
    Best iPod to PC

  • TS1368 Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

    Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

    Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

  • I can't get my applications to open to full screen. The apps are opening at about 75% and I cant figure out how to get them to open to the full screen.

    I cant get my applications to open to full screen. The apps are opening up to about 75% and i cant get them to extend to full screen.

    Which applications are you talking about? 
    Example: Browser application - At the bottom right corner of a browser window you will see a small square with 3 diagnal lines.  Place your cursor in that corner to stretch out your window to full screen.  The next time you open your browser app, the window will be full screen.

  • HT2474 when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    This could be a plist corruption problem, but I'm not sure.
    Sometimes, the preference list files get corrupted. You can usually just remove them and they'll get re-created. This may require you to reset certain settings. A notable exception to this is the Mail plist which actually stores the Library structure of your email accounts. Deleting the Mail plist will definitely cause lots of problems, but is recoverable.
    The plist files are stored in the /Users/username/Library/Preferences/ folder. They usually have the naming convention of com.company.programname.plist.
    A simple troubleshooting technique is to move a suspect plist file out of the Preferences folder and start up the app, again. It will re-create the plist from scratch.
    In your case, I would try the com.apple.dock.plist. You can use Activity Monitor to kill the Dock app and it will restart. Or, you can log out and log back in.
    There is a new file with Leopard called com.apple.dock.db. I haven't figured out what it does, but you might try moving it out. If anything gets worse, you can move the old file back in replacing the newly created one.
    This all sound somewhat odd, so I don't know if this will help.

  • Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).

    Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).  I have uninstalled/reinstalled I Tunes several times and this has not resolved the issue.  I also uninstalled/reinstalled Microsoft.net Framework 4 since this was suggested by Apple support.  This also has not resolved the issue.
    When I reinstall I Tunes, I get a message that the “Service ‘apple mobile device’ failed to start.”  Verify you have sufficient privileges to start system services.  I attempted to manually start the Apple Mobile Device service but get a pop up stating, “Error 1053: The service did not respond to the start or control request in a timely fashion.”Unsure what I should try next. 

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component, such as Apple Mobile Device Support, won't install normally.
    In your case I suggest you start with a clean download of the setup file using the direct link. If reinstalling AMDS alone doesn't work try tearing everything down again.
    tt2

  • When I open Firefox on my Mac, I get "The application Firefox quit unexpectedly."?

    clicking on my firefox icon, I get "the application Firefox quit unexpectedly."
    It asks me to relaunch and the same msg pops up.

    That is an issue with the "Cool Previews" extension.
    It is Packman's birthday and Google has placed a Packman game on it's home page.
    See [tiki-view_forum_thread.php?locale=en-US&comments_parentId=678288&forumId=1]

  • To get the Application name

    Hai experts,
    I have a requirement as follows:
    I have a component named as ZComponent which has 3 view.
    i am creating 2 applications for the component named as zappl1 and zappl2.
    zappl1 starts from first view itsef where as zappl2 starts from second view.
    I have an ALV table in the second screen.
    it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
    Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
    Is there any method to get the application name.
    If so plz help me as soon as possible.
    IF any doubts revert back to me ASAP.
    Cheers,
    Madhu

    Hi Madhu,
    You do not need the application name for this. The following would work:
    1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
    2. Create a node in your component controller with an attribute denoting the editable property.
    3. Map this node in the window's context.
    4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
    5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
    6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
    Launch both applications, your control should be editable in one and read only in the other.
    Regards,
    Nithya

  • HT1338 I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    If you can run it under chrome, you have java installed.
    There was some malware that exploited an older version of Java (not javascript) running in a Browser. Since few people use it Apple turned off Java by default in the Safari Browser.
    If you need it for something, just turn it back on in Safari preferences (inside Safari). After a few months of non-use, you may find it has turned itself off again.

  • He XML message is going over to SRM from XI , but getting an application error (Exception)  when checking in sxmb_moni on the SRM side

    hi experts  ,
    we are using classic scenario (ECC 6.6 & SRM 7.0)
    we have are configured Procure-to-Pay Scenario ,Note 1263876 - SAP SRM: Configuration of Procure-to-Pay Scenario.
    but facing issue.
    The XML message is going over to SRM from XI , but getting an application error (Exception)  when checking in sxmb_moni on the SRM side. So we are not able to see the PR in the Sourcing cockpit in SRM.
    error as below
    <SAP:Category>Application</SAP:Category>  
    <SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText />  
    <SAP:ApplicationFaultMessage namespace="http://sap.com/xi/SRM/SE/Global">ExchangeFaultData</SAP:ApplicationFaultMessage>  
    <SAP:Stack>Application has thrown an exception</SAP:Stack>  
    <SAP:Retry>M</SAP:Retry>  
    </SAP:Error>

    Hi Vijay,
    Can you tell us the interface name?
    If it is stuck in FEH (Application Error) in SRM then you can check the detail error by going into tcode /n/sappo/ppo2.
    You need to enter the Business Process, Order Assignment and Mode Of Postprocessing Order and then execute.
    It will show you all the messages stuck in application error for that interface and if you double click on any one of them you will get to see the detailed error with options to Discard, Repeat etc.
    Let us know if this helps you.
    Regards,
    Mayur

Maybe you are looking for

  • Easy way to add a calendar???

    with events I can link to other pages I have made???

  • 20" vs. 24" iMac

    Does the new 24" iMac run cooler and quieter than the 20", given the same configuration? I'm trying to decide between the two, and I'm worried that the the 20" is so crowded inside that it'll heat up faster and run the fan louder. It's probably a sil

  • Calculate elapse time of a Java thread  before execution

    Hi, I would like to enquire how can I calculate the elapse time of a Java thread BEFORE this thread is executiing or running.? I wish to estimate the elapsed time of each Java thread before execution to better schedule these threads to run on multipl

  • UPDATE NO WAIT

    Hi, When a particular record is being updated by user1, at the same time user2 try to update the same record, then the user2 will be suspended until user1 commits the transaction. Is it mandatory that user2 has to wait till the user1 commits the tran

  • Entering a paragraph type text in database

    HI !! I am trying to retreive a pragraph type text say a RESUME from a html page and insert into database. If i use string type it removes all the spaces and inserts the whole thing as a single word. Which data type should i use???