Automatically open a program after opening a program

Here's what I want to do... I have a menubar program that gives me info about the current iTunes track. Thing is, I don't want the program to open until I open iTunes. Is there a way to have the program automatically open when I open iTunes? (and maybe even automatically quit when I close iTunes?) Thanks!

Scripts run under the current user account and can only affect the current user's environment. Therefore you can't have a script run as user A that affects user B's environment (e.g. launch an application in the other user's environment).
Therefore there's no way (I can think of) for a script to initiate a fast user switch followed by launching an app in the second user's account.

Similar Messages

  • Can't open existing topics after opening project

    Hi, I am using RH7 with Win XP.
    When I open up my project and double click on an existing
    topic to edit it, RH7 stalls/crashes. If I create a new topic, then
    open an existing topic, everything works fine.
    I thought the solution was the default editor setting I found
    in the following topic but it turns out that it did not permanently
    fix the problem.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=65&catid=447&threadid =1402188&CFID=10844682&CFTOKEN=7d275f16b55159b7-456A86ED-F54F-16DF-4B9D9568570C63FF&jsessi onid=4830bb267afa04c76c56455d256b71204624
    Any ideas?

    I have not reinstalled yet.  I am trying to avoid it like the plague since I would have to get my IT dept involved.
    My projects are on my local hard drive.
    The sample projects seem to work OK.
    I have played around with the project a little more and I am finding that if I open certain topics for editing first then everything works fine.  It seems like trying to open up some topics right after opening the project will cause a crash.  In other words my problem seems to be topic dependent.
    I looked at the HTML behind topics that work fine and ones that cause a crash and at first I thought the common link between the ones that were causing the crash were that they had some meta tags that started out like:
    <meta name=MS-HAID content=
    but I found one exception so now I have no idea.
    Any ideas?
    Thanks

  • After updating to 6.0.2 firefox now takes a really long time to open a window after starting the program

    Was prompted to update firefox. Did so, appeared to install correctly.
    Now when I open firefox it takes over a minute to open a new window.

    Common problem with other complaints under "stall", "freeze", and "hang". Try clicking the refresh button every 5 seconds until the page loads (usually second, third, or fourth try) instead of waiting.
    Maybe it will be fixed in FF7. Mozilla is simply not addressing the problem.

  • Download problem with JSF: Cannot open PDF-file after opening WORD-file

    Hello,
    I have a JSP (created with Java Studio Creator) which displays a table with links to different files. Some links open PDF-documents, other for instance DOC-files (msword). I download the file as follows:
    public String downloadFile(String fileName) {
    try {
    int dotIndex = fileName.lastIndexOf('.');
    String fileExtension = "";
    String contentType = "";
    if(dotIndex > 0) {
    fileExtension = fileName.substring(dotIndex+1, fileName.length());
    contentType=CONTENT_TYPES.get(fileExtension.toUpperCase()).toString();
    if(!fileExtension.equals("") && !contentType.equals("")) {
    // method that reads file to the byte array
    byte[] fileContent = getContentOfFile(new File(fileName));
    FacesContext faces = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) faces.getExternalContext().getResponse();
    response.setContentType(contentType);
    response.setContentLength(fileContent.length);
    response.setHeader("Content-disposition", "inline; filename=\""+fileName+"\"");
    try {
    ServletOutputStream out;
    out = response.getOutputStream();
    out.write(fileContent);
    } catch (IOException e) {
    e.printStackTrace();
    faces.responseComplete();
    catch(Exception ex) {
    return ("!!!ERROR: downloadFile(fileName) - Could not completely download file "+ fileName + ex.getMessage());
    return "";
    contentType is application/pdf if it`s a PDF-file or application/msword if it`s a word-file.
    fileName contains the full file path.
    link-properties:
    <ui:hyperlink action="#{showOriginalPDF.hyperlinkShowPDF_action}" binding="#{showOriginalPDF.hyperlinkShowPDF}"
    id="hyperlinkShowPDF" immediate="true" onClick="testSubmit()" target="_blank" text="#{currentRow.value['display']}"/>
    and the code of the JS-function testSubmit() (without this function I couldn�t get the right row selection in the hyperlink-table):
    function testSubmit() {
    document.getElementById('form1').submit();
    return false;
    All pdf-links are working fine and the correct document is displayed in a new browser window. but if I open a WORD-document and after that I click on another link to a pdf-file, the WORD-file is loaded again in the new window. Only if I close the window which contains the WORD-document, I can download the correct pdf after that.
    Is something wrong with the response header (I tried "attachment" instead of "inline" too but without effect)?
    Can anybody help?

    More than you asked for but good stuff. Permissions is buried in there somewhere.
    Reading
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions 10.0-10.6|http://docs.info.apple.com/article.html?artnum=25751]
    "Try Disk Utility" (modified from [http://support.apple.com/kb/TS1417])
    1. Insert the Mac OS X Install disc that came with your computer (Edit: Do not use this disc if it is not the same general version as what you have currently on your computer, e.g. use a Tiger disc for a Tiger drive, not a Panther disc), then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk.
    Then boot in Safe Mode, (holding Shift key down at bootup; takes longer to boot this way so be patient), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    [Mac OS X: Starting up in Safe Mode|http://docs.info.apple.com/article.html?artnum=107393]
    [What is Safe Boot, Safe Mode? (Mac OS X)|http://support.apple.com/kb/HT1564]
    [Safe Boot takes longer than normal startup|http://docs.info.apple.com/article.html?artnum=107394]
    [Mac OS X 10.4, 10.5- Computer shuts down during Safe Boot|http://support.apple.com/kb/TA24054]

  • Trouble opening MAC FLA after opening it on PC

    Hi.
    I have created a FLA file in Flash on a MAC. I then attempted
    to open it on a PC running Flash. It wouldn't open. Now when I try
    to open it back on the Mac it says that the windows machine has
    added an object that needs removing before it will open. I've tried
    to open it again on a PC with no luck.

    My PC finds the iPod and says it has updated and even appears to copy selected songs but when I look for them they are not there. A friend told me it can only be used/updated on 1 computer, what I need to know is how to change which computer I use to update/add my music etc to the iPod..

  • Firefox closes a document after opened. Hard to read news articles on some sites. Getting very tired of article closing one paragraph into it.

    Firefox continues to close documents after opened on some sites. News articles opened will close after opened. Very upsetting to have to switch to another browser just to read an article. It also closes down Amazon.com after opened. It is not just one URL. Cache has been cleared, spy ware cleaned, and no viruses. Very frustrating.
    == URL of affected sites ==
    http://

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • When I open Firefox 5.0.1 (using Windows XP Home), Firefox starts to open tab after tab automatically and I have to close the program to stop the proceeding misfunction! ??

    When I open Firefox 5.0.1 (using Windows XP Home), Firefox starts to open tab after tab automatically and I have to close the program to stop the proceeding misfunction! ??

    See [[Firefox keeps opening many tabs or windows]]

  • When viewing documents on a Web Server, IE automatically opens a blank page and then opens the document in the default program. The blank screen should close automatically but isn't happening.

    So here is the situation, my company uses a third party scanning software, that puts documents scanned or created onto a webserver. We use a program that grants a user access to view the documents on the webserver. The user will have to log into the system
    using credentials, we have Kerberos doing this. Once the user is logged onto the system they navigate to the document they want to view or edit. So the user wants to view a .pdf file, they click the document they want, and it is supposed to open in the default
    program associated with file extension. ie: .doc would open Word, .xls would open Excel. When the document is loading in the default program Internet Explorer opens a blank page, this page is supposed to prompt the user if they want to open or save the document.
    (I changed the registry to have the files selected to automatically open without this prompt.) The blank screen generated is still staying open, this screen is supposed to close automatically after the prompt or close automatically after the document is opened.
    So when a user is looking at several documents, this floods the screen with all these blank Internet Explorer pages. This problem is only occurring for users that have Windows 7 PC's, XP users do not have this problem at all. My PC is the only one in the company
    that is Windows 7 64-bit, and working properly with the IE blank page automatically closing. I'm wondering what can be done to fix this problem, is it as simple as registering some .dll files or do I need to make a registry change? Any help would greatly be
    appreciated.

    What is the registry change exactly?  Sounds like one which is supposed to avoid the prompt.  I know
    that there used to be such a thing, before the new prompt and I know that some users think that there should be such a thing for any program but I'm not sure if that expectation is valid or not.  I think this may also be related to a concurrent change
    in the OS.  E.g. in XP we had File Types Options editor but starting in Vista that was removed.  You might get some more clues on this tack from NirSoft's FileTypesMan utility.
    The registry change that I did was to remove the open and save prompt. I will be sure to look into that. Our company
    isn't worried about the user's automatically opening the files since they are all trusted. They also do not have the ability to install anything, so if they were to download a potentially harmful file they could never install it. We monitor downloads as well,
    if they download files off the internet that aren't work related we remove their download capabilities.
    Sounds like a scenario for using ProcMon to take two traces and compare them for their essential differences.
    I talked to my boss about using this tool and he is worried about using it. I'm only an intern at my office and do not have the authority to use a program without their knowledge or consent. I will run the idea by them again and see if it's okay I use this.
    I'll maybe make some presentation about how it can help us with our problem and how much time and money it will save. Because I really want to get down to the bottom of this.
    Probably the most significant thing is going to be the Content-type that the files are being served by. 
    You could use the Developer Tools, Network Capture to check on that and ProcMon could help explain what happens after that.  A related workaround to change the symptom when the Content-type is not what is expected is to disable MIME Sniffing (e.g. in
    Security options, Miscellaneous section).  In fact, perhaps that could explain your machine's difference with anyone else?  MIME Sniffing is a default, previously known as "save according to type not extension" (or some such wording).
    Okay I will be completely honest I have no idea how to use Developer Tools (F12), yes I could google it, when I tried using it on the blank pages it would never work, I also have no idea what I'm looking at. I should mention that I do not have access to
    the web server. Our programming and development side only has access to our AS400, which is where the web server is located. I do have MIME Sniffing enabled and so does everyone else. I may be wrong but, I believe it is needed in order to open the file extension
    in the correct default program, yes? I thought MIME Sniffing would see a .docx file and then find the appropriate program to open that .docx file in. I may be wrong but I know it's used somehow along these lines.

  • Differents between open csv file by mannually and program automatically?

    Dear great master
    I haved been consfused by a problem deeply.
    Why a csv file if already open can be detected by mannually. can't be detected by program automatically.
    I verify this phenomenon by below procedure:
    First:
     Execute <simple_ErrCode_modify_by_NI2.vi>  at both computer respectively.then open csv file mannually,thus two programs both can detect the csv file already
    open. also can enter case5 and wait case5's loop.
    Second:
     Compare with First produre.firstly,execute <simple_ErrCode_modify_open_csv_atloop1.vi> in one computer , Adding while loop  after open/creat/replace file ,thus
     can maintain csv file open all the time.
     secondly,execute <simple_ErrCode_modify_by_NI2.vi> in the other computer.I find that <simple_ErrCode_modify_by_NI2.vi> cann't enter case5.
      Through above,
     I confused that why program can detect csv file already open by mannually.
     cann't detect csv file already open by the other pragram open.
    Why have thus two kinds of mechanism in labview .
      Can who great master help me and answer me .
    mentioned program attached.
     Thanks earnestly.
    Attachments:
    ReadWrite_same_csvfile.zip ‏61 KB

    If I understand your question, the answer lies in the access programs request when they open files. First, a program can have read-only, write-only or read-write access. Second, they can specify exclusive or nonexclusive access to a file. If a program requests and get exclusive access to a file, no other process can open it for any reason.
    Now when you open a file manually, what you are really doing is opening it using the default program specified in Windows. So its a matter of how that program opens files.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I am unable to open my Photoshop program after installing the entire Creative Suite: Premium Production 6. All other programs work, but with Photoshop it says that the program is "locked or in use by another user". I need this fixed immediately.

    I am unable to open my Photoshop program after installing the entire Creative Suite: Premium Production 6. All other programs work, but with Photoshop it says that it "Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Properties' command in the Windows Explorer to unlock the file." Then I select "OK" and the next message comes up "Could not initialize Photoshop because the file is locked, you do not have the necessary permissions, or another program is using the file. Use the 'Properties' command in the Windows Explorer to unlock this file. I installed all of the programs on the same day from a CD. I need this fixed immediately.
    I am not interested in switching to Creative Cloud, so don't even suggest it. I spoke to Mashmi (or something to that effect) on the "Support" Chat and there was absolutely no support. Useless actually.
    Thanks in advance.

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences users and groups login items...then I deleted them from the list but it did nothing.

    I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences>users and groups>login items...then I deleted them itunes and emial from the list but it did nothing.  They continue to open up every time I turn on my Macbook Pro.

    Hi r,
    It sounds like you're running Lion?
    Have you tried running Verify and/or Repair Disk?
    Have you tried running Repair Permissions?
    Do you have at least 15% free space available on your HD?

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • I have a new Mac Mini. When I start it, the message and mail program's open automatically. How do I change this?

    When I boot up my Mac Mini, the mail and message program's open automatically. How do I stop this?
    I heard that all program's that are open when shutting down, will open again on booting up. I always close all program's before shutting down!

    Go to preferences and General and be sure the box is checked that states to close all programs on exit.  Also, right clcik your mail icon in the dock and under options be sure the open at login is not checked.

  • Programs dont open after installing Mountain Lion

    Hi!
    After I installed Mountain Lion last week is my iMac(4 cores, late autumn 2009) very slow and several programs dont open anymore.
    When I click on them they bounce in the dock and vanish again. I approved in the security tab to open all programs, also not `Mac Store programs`.
    The only way to get these programs started again is by unpacking them and than they work for one reboot. After 1 reboot they dont open again.
    What can I do with this?
    With kind regards,
    Silvia

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Click the Clear Display icon in the toolbar. Try the action again. Post any messages that appear in the Console window – the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • I try to open the program after installing it and I recieve and error message: Error: 213:11

    HELP! I try to open the program after installing it and I receive and error message: Error: 213:11

    This issue is covered under document: https://helpx.adobe.com/creative-suite/kb/error-store-does-not-allow.html
    This error occurs when the SLStore Folder is set to read-only. To resolve it, remove the read-only check from the SLStore folder (Windows) or give it read/write access (Mac OS). step in the link above.

Maybe you are looking for