Resetting Launch Services

Hi
When I try to open a document with the 'open with' menu, multiple copies of a single application appear in the 'Open With menu'. I have reset the launch services using Cocktail, but days later, the same problem reoccurs. Any Idea what is causing the problem and how I can prevent this from reoccurring?
Phil B

Do you perhaps have multiple copies of those apps on your drive(s) or Partitions?

Similar Messages

  • Resetting launch services doesn't stop multiple apps in 'open with'

    Well, I followed Dr. Smoke's advice on Resetting Launch Services but it made no difference. I still have the same multiple copies of a single application appearing in the Open With menu for a given document. What happens when what should work doesn't?

    You could try Mark Douma's Applescript for using lsregister to rebuild the LaunchServices. I put a copy up here:
    http://homepage.mac.com/francines/.Public/RebuildLaunchService.zip
    It evidently REALLY rebuilds things, and requires a restart.
    Francine
    Francine
    Schwieder

  • Launch Services can't find app

    I have installed the program Macspice which has the ability to set the text editor helper application via the bundle code. However, when the edit command is used in Macspice, the error message "launch services can't find app textedit" appears. Does the code need to be entered manually somewhere? I have already tried resetting launch services per an article by Dr. Smoke to no avail. I am, of course, a new Mac user and would appreciate any help. Thanks.

    Hi, mloggins. Welcome to the Discussions.
    I presume you are referring to my "Resetting Launch Services" FAQ.
    This sounds like an issue with Macspice, not Launch Services. I suggest you contact the developer.
    I presume you're running the Universal Binary of Macspice and that you have TextEdit installed in the Applications folder where it should be. If you moved TextEdit.app, put it back in /Applications.
    One thought: If you provided the name of the text editor by typing it, vs. selecting it from an open/save-type dialog, be sure to type TextEdit or TextEdit.app or /Applications/TextEdit.app (full path) and not textedit as UNIX is case-sensitive.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Launch Services - Resetting Generator Caches.

    I'm seeing a lot of messages in my system.log file that look like this:
    Safari[15135]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.Finder[167]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.System Preferences[15180]: [QL] Launch Services Database change notification (com.apple.LaunchServices.DatabaseChange). Resetting Generator caches.
    I see a block of these messages every 5 seconds. I tried googling around but can't seem to find any information about it. Has anyone else seen this? Should I be concerned about it?
    Thanks.

    I'm wondering if this has something to do with a broken spotlight index. I manually deleted my spotlight index from single user boot, and now I'm getting this message hundreds of times as spotlight reindexes my HD. I wonder if some glitch in spotlight causes various *.qlgenerator plugins to be repeatedly found, and thus causes quicklook to reload them over and over again...?
    It is just a theory.

  • Launch Services Database rebuilding at restart

    Well as it says in the title, with every restart of my machine, the computer is rebuilding the launch services database.
    I am not sure — if it's actually rebuilding the database; but every time I restart and open a python script for e.g. — it opens a dialogue box point to the first ever launch of "Sublime Text". Same with Textmate or any other software.
    For some files, it forgets the application associated with it. For e.g. sometime back I set Sublime Text to open files without any extension. That doesn't happen anymore.
    I am currently running 10.8.2.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • That Launch Services thing again?

    OK folks. Please help if you know....all of a sudden my textedit won't open an RTF document or txt document when I double click on it. If I go "Open With" (right click say), then no problem.
    I've read all the forums so:
    1) I've copy/pasted various scripts (involving kill lsregister things) to use in the Terminal...reboot
    2) I've used Onyx and Yasu to reset the Launch Services database....reboot
    3) I've trashed the LaunchServices caches in the Library/Caches plus the LaunchServices plists...reboot
    Each time, the issue is fixed. Then after some time (say half an hour) I retry to open an rtf and bingo, tries to open but nothing happens. Repeat any of 1 to 3 above, temp fix, then....
    Any ideas any ideas? (Save complete reinstall????)
    Message was edited by: Chris Marshall3

    The reason why is that the cache files when they are deleted by a program like Onyx are being written to at exactly the same moment they are being deleted. This results in left over corrupt files which rebuild themselves as corrupt files in an endless loop every other reboot. One thing that may help is to remove issues which cause the disk to be too full*:
    http://www.macmaps.com/diskfull.html
    - * Links to my pages may give me compensation.

  • Launch Services crashing - AFP, SMB, NTFS, exFAT, FAT32 all unmountable

    My Mac Pro was working fine until this month hit... first I noticed that I could no longer mount my network shares (AFP and SMB shares on a Drobo 5n). My first assumption was that there was something wrong with my shares, but that's not the case as every other computer and device I have has no issues connecting and mounting the shares. Not only that, but my Windows partition on this Mac Pro connects fine as well. That's when I noticed my Windows partitions were no longer mountable in OS X either. So I ran some tests with a flash drive in disk utility, after formatting the drive in exFAT, FAT32 or NTFS the flash drive is no longer mountable... HFS still mounts of course, but not anything else.
    So at this point, I've got AFP, SMB, NTFS, exFAT and FAT32 all completely unsuable in OS X. Pretty messed up.
    Taking a look at console shows the same messages over and over again:
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.314 PM ReportCrash[11888]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
    5/3/13 11:49:30.314 PM ReportCrash[11888]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
    5/3/13 11:49:30.328 PM com.apple.kextcache[11922]: Child process /usr/sbin/kextcache[11923] exited due to signal 6.
    5/3/13 11:49:30.328 PM com.apple.kextcache[11922]: Error 107 rebuilding /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache.
    5/3/13 11:49:30.329 PM com.apple.kextd[11869]: kextcache error while updating / (error count: 10)
    5/3/13 11:49:30.329 PM com.apple.kextd[11869]: async child pid 11922 exited with status 6
    5/3/13 11:49:30.362 PM ReportCrash[11888]: Saved crash report for kextcache[11923] version 268.12 to /Library/Logs/DiagnosticReports/kextcache_2013-05-03-234930_LaBonty.crash
    I've tried literally everything I can think of... clearing caches, repairing disk permissions, rebuilding launch services, rebuilding spotlight, rebuilding the kext cache, running maintence scripts, etc. etc.... nothing has helped.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. You won't be able to mount network shares, but a flash drive should mount. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Rebuild Launch Services Database

    I'm about to connect a SuperDuper clone of my Tiger installation to my fresh, clean install of Leopard. I'm worried that when I open the Applications folder on my Tiger clone, the LaunchServices database will be populated with all of these applications that I never intend to use.
    How do I reset/rebuild the LaunchServices database in Leopard, I cannot locate 'lsregister' -- is there a new method, or have things changed in Leopard?
    Alternatively/also, is there a way to tell launch services NOT to scan external volumes, or a specific directory?
    Thanks everyone for your help!

    What do you mean by 'removing it'?
    I hope you don't mean the 'lsregister' file?
    The command to run (adapted for Leopard from other posts I've seen) is:
    "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fra mework/Support/lsregister -kill -r -domain local -domain system -domain user"
    without the quotes. I think Finder needs to be restarted to see the effect there.
    Better still, here's an adapted AppleScript I got from a post:
    BEGIN__SCRIPT
    display dialog "The Finder must quit and will relaunch after the Launch Services rebuild is complete. The rebuild may take several minutes, during which time you should refrain from using any other apps." buttons {"Cancel", "Rebuild LS Database"} default button 2 with icon caution
    ignoring application responses
    tell application "Finder"
    delay 2
    quit
    end tell
    end ignoring
    delay 5
    tell application "System Events" to set runningapplications to get name of every application process
    if runningapplications contains "Finder" then do shell script "killall Finder"
    do shell script "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fr amework/Support/lsregister -kill -r -domain local -domain system -domain user"
    tell application "Finder"
    delay 2
    activate
    end tell
    tell me to activate
    display dialog "The Launch Services rebuild is now complete." buttons {"OK"} default button 1 with icon note
    END_SCRIPT
    Paste the above into (between the delimiters) "Script Editor" and then do a File->Save As. Specify a "File Format" of "Application" and place it somewhere - e.g. Desktop, and run it.

  • Launch Services database?

    I have noticed recently that I have multiple listed applications when I am launching files from my desktop "open with" command. With a fresh bootup their is only 1 of each app. but as the day goes on I can have as much as 4 duplicates of each application which caused much confusion on which app to use to launch a file.
    I was told that this maybe due to the OS Launch Services database and to use Cocktail to correct this problem.
    Can anyone shed some light on this situation also?
    Thanks

    You can reset the Launch Services database as follows:
    Rebuild LaunchServices Database
    For Tiger users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    For Leopard users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.

  • What does this mean: "The program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem"?  I tried reinstalling, but I get an error message saying something about permission to launch services.

    What does this mean: "The program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem"?  I tried reinstalling, but I get an error message saying something about permission to launch services.

    Solving MSVCR80 issue and Windows iTunes install issues.

  • Under reset subscriber services on the iPad, how do I learn the passcode when I never set one?

    Under reset subscriber services on the iPad, how do I learn the passcode when I never set one?

    Assuming that you have created a user pin? As its that.

  • Filevault and Launch Services

    I am having the same problem that so many people reported with Mac OS 10.5: every time I log out, the Launch Services plist is erased. I shouldn't say "every time" since I can't be sure, but it just happened the last three times I logged out. I use FileVault + Time Machine, which are associated with this bug in OS 10.5 (see https://discussions.apple.com/thread/1236250?start=0&tstart=0).
    For instance, I just did a back up by logging out and logging back in, and (after Firefox complained that it was no longer the default app for web browsing), the file ~/Library/Preferences/com.apple.LaunchServices.plist looks like:
        LSHandlers =     (
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = http;
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = https;
                LSHandlerRoleAll = "org.mozilla.firefox";
                LSHandlerURLScheme = ftp;
                LSHandlerContentType = "public.html";
                LSHandlerRoleAll = "org.mozilla.firefox";
    and it has a create date of a few minutes ago (the time of logging in).
    Any guesses about how I might fix this? One solution (which I haven't yet tried) is to make a global launch services, see http://hints.macworld.com/article.php?story=20091112095601678. This was a suggestion for 10.5.
    A

    There is really no need to do that. "lsregister" is automatically run when you startup anyway, and running a secondary instance is only likely to cause problems. See Launch Services Programming Guide: Application Registration:
    All applications available on the user’s system must be registered to make them known to Launch Services and copy their document binding and other information into its database. It isn’t ordinarily necessary to perform this task explicitly, since a variety of utilities and services built into the Mac OS X system software take care of it automatically:
    •A built-in background tool (lsregister), run whenever the system is booted or a new user logs in, automatically searches the Applications folders in the system, network, local, and user domains and registers any new applications it finds there. (This operation is analogous to “rebuilding the desktop” in earlier versions of Mac OS.)
    Hope this helps....
    Message was edited by: MarkDouma®

  • UCCX 8.0(2) reset Unified Serviceability password

    Hello,
    I'm running UCCX 8.0(2) in HA.   It appears that my username and passwords to get me access to the Unified Serviceability (not UCCX Serviceability) pages are out of synch.   I can get into the primary fine but the secondary gives me "Access Denied"   I do not want to reset the platform or appadmin usernames or passwords.   What is the correct command to do this via CLI?
    Thanks,
    Glenn

    Hi Glenn,
    The above screenshot will give you an idea of what users are available and their respective user roles.
    In order to reset unified serviceability password you have to reset the application administrator user role.
    Below document lists the commands that you need to use, pg 2-4
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/configuration/guide/uccx85rtmt.pdf
    "In case you forget the Application User credentials, use the CLI commands “utils
    reset_application_ui_administrator_name” and “utils
    reset_application_ui_administrator_password” to reset the credentials. For more information about
    these CLI commands, see the “Gathering Configuration Information for Installation” section of the
    Installation Guide for Cisco Unified Contact Center Express and Cisco Unified IP IVR available here:
    http://www.cisco.com/en/US/products/sw/custcosw/ps1846/prod_installation_guides_list.html"
    Hope this helps.
    Shirish.

  • Launch services query based on URL protocol

    Heyaz. Technote 2017 describes a means of using LSGetApplicationForInfo() to query Launch Services to see what application is available handling a specific file extension (e.g., .html).. I am curious if the same call can be used to query based instead on URL protocol (e.g., afp:, https:, etc.). Also, am curious if the same API is available in the iPhone beta 8 SDK.
    cheers,
    Scott

    http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcept s/LSCConcepts/chapter2_section_8.html#//apple_ref/doc/uid/TP30000999-CH202-DontLinkElementID11
    No clue if LaunchServices is available on the iPhone.

  • Launch Services event handler

    Hi All,
    I'm currently trying to develop an application that uses a custom URL very similar to iTunes and itms URL. I've read the documentation on Launch Services and edited by Info.plist as described in the documentation.
    All seem to work to an extent. When my application is launched then I click my custom URL example in a text file, the event handler in my applicaton for my custom URL gets called. However when I just click the URL in the text file without first launching my application, my application is launched but the event handler is never called.
    Using a set of NSLogs, I notice that the object that should handle the event never gets instantiated where in its -(id)init method I call
    [manager setEventHandler:self andSelector:@selector(handleOpenLocationAppleEvent:withReplyEvent:) forEventClass: 'GURL' andEventID:'GURL'];
    I must be missing something very basic here but can't seem to figure it out as to why my object is not instantiated and the selector not called for the event.
    Any tips or pointers would be appreciated.
    Thanks,
    rmb
    PowerBook G4 FW800   Mac OS X (10.4.4)  

    Not sure what exactly you are looking but the given below link can help you
    http://help.sap.com/saphelp_scm41/helpdata/en/67/b41e3e3986f701e10000000a114084/frameset.htm

Maybe you are looking for