Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 05-24-2007, 09:27 AM   #1
macosnoob
MVP
 
Join Date: Jan 2007
Posts: 1,266
Multiple instances of same program in "Open with" contextual menu

It's a minor annoyance that I've had around for a long time. The "Open with" contextual menu shows several lines for the same program. Selecting an AIFF file, for example, brings up three QuickTimes (default + 2 others), three iTunes, two RealPlayers, etc. I don't have multiple versions of the same program on the computer. Restarting doesn't change the situation.

Is there a way to tidy up the menu so that I see only one entry for each program?

MBP, 10.4.9
Attached Thumbnails
Click image for larger version

Name:	Picture1.png
Views:	182
Size:	75.8 KB
ID:	1897  
macosnoob is offline   Reply With Quote
Old 05-24-2007, 11:18 AM   #2
melon
All Star
 
Join Date: Mar 2005
Posts: 549
I get this problem from time to time and from what I can tell, it's something to do with my external hard drive which has a clone of my current Tiger install. Some where along the line something gets mixed up and I get duplicates in the Open With context menu.

I'm not sure if there are any other methods, but what I do is rebuild the Launchservices database: http://www.macosxhints.com/article.p...31215144430486

I have a quick Applescript app which I use I think it's from here:

Click here to open the script automatically in Script Editor Or open Script Editor and copy & paste the code below.

Then go to File > Save As and in the File Format, choose Application and save.

Code:
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 running_applications_ to get name of every application process
if running_applications_ contains "Finder" then do shell script "killall Finder"
do shell script "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/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

Last edited by melon; 05-24-2007 at 11:25 AM.
melon is offline   Reply With Quote
Old 05-24-2007, 04:10 PM   #3
macosnoob
MVP
 
Join Date: Jan 2007
Posts: 1,266
Yes, that was the solution. Thank you, melon.
macosnoob is offline   Reply With Quote
Old 05-24-2007, 04:19 PM   #4
melon
All Star
 
Join Date: Mar 2005
Posts: 549
Cool, just a small note, the only small problem with this method is that when you open a file afterwards it treats it as if it's the first time you've ever opened that specific kind of file and asks you if the default application is correct - if you get me.

Not a major problem, it only does it once for that specific file type.
melon is offline   Reply With Quote
Old 05-24-2007, 05:00 PM   #5
macosnoob
MVP
 
Join Date: Jan 2007
Posts: 1,266
Now you tell me? Just kidding. It's not a problem.

I'm also noticing that files created by Apple software open immediately, without the need to approve the default app the first time: so far, QuickTime, Preview, TextEdit, AppleWorks, iMovie, FinalCutPro, etc. So do some 3rd-party apps: files created with NeoOffice, MacLinkPlus, and BBEdit. Word and Excel files needed the first-time approval, as did a GraphicConverter file.
macosnoob is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.