image
image

|


Go Back   macosx.com > Mac Help Forums > Switchers (Windows to Mac Converts)

Reply
 
Thread Tools
  #1  
Old March 10th, 2007, 05:17 PM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
frey is on a distinguished road
default application for unrecognised filetypes

Hey there

Is there any way to launch a default application when I try to open an unrecognised file type?

On Windows I had it set up so that if I double-clicked on an unrecognised file type it would open it up in a good text editor (this was a registry hack). How do I do something like this on my new Mac?

Also, can I make my Mac remember my Open With applications? I sometimes want to open .js files with a text editor rather than with Safari (the default) - it's a pain having to go through the whole Open With->Other->locate the text editor steps, I'd prefer the text editor to live on the Open With menu by default.
Reply With Quote
  #2  
Old March 11th, 2007, 12:42 AM
Registered User
 
Join Date: Jun 2002
Location: USA
Posts: 2,479
Thanks: 1
Thanked 0 Times in 0 Posts
MisterMe will become famous soon enough
Drag & Drop works.
Reply With Quote
  #3  
Old March 11th, 2007, 03:58 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
frey is on a distinguished road
Quote:
Originally Posted by MisterMe View Post
Drag & Drop works.
But drag and drop is still more of a pain than just double-clicking and opening in a text editor by default. I'm a programmer, I like to see the contents of random files, and I like to do so often, and I don't like using the mouse so much.
Reply With Quote
  #4  
Old March 11th, 2007, 09:01 AM
Registered User
 
Join Date: Jun 2002
Location: USA
Posts: 2,479
Thanks: 1
Thanked 0 Times in 0 Posts
MisterMe will become famous soon enough
Quote:
Originally Posted by frey View Post
But drag and drop is still more of a pain than just double-clicking and opening in a text editor by default. I'm a programmer, I like to see the contents of random files, and I like to do so often, and I don't like using the mouse so much.
In order to get what you want, you are going to have to do some work. As a programmer, you know this already.
Reply With Quote
  #5  
Old March 11th, 2007, 03:56 PM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
frey is on a distinguished road
Yeah, I do. Problem is I have no idea how to even begin, which is why I'm asking here. Should I be looking for some obscure preferences, or is there a file somewhere I can edit, and if so, where? Or am I going to have to write my own context-menu plugin? Can you even write context-menu plugins on OSX? and if so, how do you apply them to all unrecognised files, rather than specific file types?
Reply With Quote
  #6  
Old March 11th, 2007, 04:11 PM
Tech
 
Join Date: Jun 2001
Location: Dover, DE
Posts: 3,732
Thanks: 0
Thanked 5 Times in 5 Posts
DeltaMac will become famous soon enough
You already have a contextual menu that gives you an Open With item. Clicking on that gives you a variety of apps that OS X thinks is a likely match. If you prefer another app, choose Other... and browse to your desired app. Likely that you wouldn't need to do that too often. If you have a normal doc that you open, you can set all like documents to open with the app of your choosing in Get Info for that file.

I prefer drag-n-drop, as you will immediately know if the app will even try to open your file, then quickly move to a different possible app. I have a folder on the desktop with aliases for a variety of video apps. Takes 2 seconds to drag a potential file to the various apps. If the app doesn't highlight, then I move on. Easy to rule out a couple of dozen choices in one mouse-rollover.
__________________
Serendipity is a lucky guess !

Last edited by DeltaMac; March 11th, 2007 at 04:19 PM.
Reply With Quote
  #7  
Old March 11th, 2007, 04:27 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,438
Thanks: 2
Thanked 3 Times in 3 Posts
Mikuro is on a distinguished road
Quote:
Originally Posted by frey View Post
Also, can I make my Mac remember my Open With applications? I sometimes want to open .js files with a text editor rather than with Safari (the default) - it's a pain having to go through the whole Open With->Other->locate the text editor steps, I'd prefer the text editor to live on the Open With menu by default.
Yes. Select the file and go to File > Get Info. Set your preferred app there, and your selection will stick for that file. You can also set that app to be the default for all files of that same type.

As a shortcut to making your selection stick for the one file, you can hold down the Option key while using the contextual menu. That will change "Open with" to "Always open with".

I'm not aware of any way to set a catch-all for unknown file types. I've never really looked for one, though, so that doesn't mean there is no way. If you're itching to hack your way to a solution, I recommend starting your quest with ~/Library/Preferences/com.apple.LaunchServices.plist. RCDefaultApp could also prove useful.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #8  
Old March 11th, 2007, 04:43 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 5,020
Thanks: 2
Thanked 8 Times in 8 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
Get Info on the file like Mikuro said or get the System Preference pane RCDefaultApp.
__________________
PowerMac G5 Dual 1.8(Rev A.), , 7 Gig RAM, Pioneer DVR-110, ATI X800XT, OS X 10.4.11 & 10.5.3, 23'' HD LCD
Mac Book Pro Core 2 Duo 2.16Mhz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.5.3
Tibook 400Mhz, DVD drive, 1024 RAM, ATI Rage, OS X 10.4.7
1TB Time Capsule
5g iPod 30Gig White
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:02 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.