Set default text editor (no type, creator or extension)

I would like BBedit to be the default text editor not TextEdit.
I work in Terminal a lot and often encounter files that were sent to me by someone using Linux and have no type, creator or extension. I want these to open in BBedit not TextEdit.
The problem can be recreated like this:
Create an empty file in the Terminal like this:
%touch testfile
Select testfile in the Finder and set BBedit as the application to open this file. Click the "Change all" button to make this global.
I then get an error about there being not enough information. I'm given the option to update and I do.
Then double clicking on testfile does, in fact, open the file in BBedit.
Now the rub. If I then generate another file called testfile2 like this:
%touch testfile2
Testfile 2 opens in TextEdit when double clicked in the Finder.
What am I doing wrong?

I'm not sure how to set a default for files like that. What I do for files that aren't cooperative like that is just have BBEdit (well, actually, TextWrangler for me) on the Dock and then just drag and drop them.
You could potentially use an AppleScript or shell script to set the creator code to 'R*ch' for a batch of files. Type and creator codes used to be the Mac's alternative to extensions, but they were unfortunately left behind in Mac OS X, since the rest of the computing world didn't understand them. There's still support for them hiding in the OS, though. Looks like there's a script that'll do the trick here:
http://scriptbuilders.net/files/setcreatorcodeofselection1.0.html

Similar Messages

  • Setting default text editor for sql+ in win2k

    the define _editor=...command in sqlplus doesn't seem to be
    working for me. Can anyone shed a bit of light on how to make
    this work under windows 2000 pro? I want to get rid of notepad
    and replace it with NoteTab which is a much more advanced text
    editor over the stock m$ editor.
    thx in advance for any assistance.

    I'm using WIN2k and it works for me:
    DEFINE _EDITOR = "c:\program files\lemmy\lemmy.exe"
    SQL*Plus: Release 8.1.7.0.0 - Production on Tue Oct 23 13:35:09
    2001
    Microsoft Windows 2000
    5.00.2195
    Service Pack 2

  • Default text editor for files with no extension

    If I double-click on a file with a name like README, the Finder opens the file with TextEdit.app. I can easily change which editor is used if the file had an extension (e.g. if it was called README.txt or README.html), but without an extension, OS X had no way to set a preferred editor. If I open this from the terminal I can set the EDITOR environment variable, or use open -a appName, but my question is about the Finder. Thanks!

    extremely annoying. when i first switched to OS X, i had to rewite a hundred or so perl scripts for my servers... because any text file or data file or whatever, that didn't have an extension after it, would no longer open in BBEdit, like it always did in 9.2
    3 years later i'm still occasionally getting that annoying 'doh, what do i open this with' message. macs are getting dumber all the time.
    i guess apple thinks windows got it right associating the extension with the app.
    and half my 'change alls' don't stick either.

  • Make Pages default text editor

    How do I make Pages the default text editor? (Double click a .txt file and Pages opens instead of Appleworks)

    Hello kelwhite01,
    welcome to the Pages Discussions. Select a ".txt" Document in a Finder window and open the Infowindow for it (shortcut: "command" and "i"). In the middle of the window you see a section titled "Open with". There you can choose the app you want to open the selected document with. After choosing Pages, press the button at the bottom of the section to order the system to open every document of that type with Pages.

  • [SOLVED] How to open default text editor from bash script?

    as header states i would like my script to open the desktops default text editor. I use xfce.
    I currently have it set to open medit, however i want to be able to use script on other desktops
    Last edited by orphius (2013-07-12 07:24:34)

    Trilby wrote:
    EDITOR will often not be the default desktop environment editor - it is usually limited to being a systemwide (and usually console-ready) editor.
    xdg-open, or a related tool, can give you the desktop's text editor.
    Truth. VISUAL is typically used for the graphical text editor.
    So, to use VISUAL if it exists, but otherwise default to medit, do:
    editor="${VISUAL:-medit}"
    $editor foo.txt
    Last edited by jakobcreutzfeldt (2013-07-11 07:09:02)

  • Set default value for product type

    I want to set default value in product type drop  down box
    in component PRD01QR.
    view  SearchHelp.
    I tried with setter and getter , but not working
    they are using query string.

    Hi,
    You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
    comment out the line       APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
    as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
    No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
    Hope this would help you!
    Regards,
    Ajay

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • Default text-editor

    When I download a text-file in Safari, by default TextEdit is launched. Unfortunately, it cannot recognise the numerous fields in the Word-documents that are involved.
    Can I change the default text-editor to Word ?

    paieye wrote:
    I am not quite sure what you have in mind when you say to select the file-icon. I find the link in Safari, and click on it. That produces the 'Downloads' window, which eventually shows the file as downloaded. I can put the focus on to the row containing the file name, but I cannot highlight it. What ought I to be doing ?
    Find the file in the Downloads folder in your Home folder, not in the Downloads window. Then do as suggested.

  • Pages - Default Text Editor?

    How can I make Pages my default text editor?

    Hi DennisG,
    Thank you for the link. Now I have it, small file download. Yes it does look interesting, it will be fun to play around with getting to know it.
    On a side note to both you and Yvan: Back in my Windows days I did MS Office tech support. That caused me to became quite a Word junky creating specialty docs, brochures, and the like. With the arrival of Pages rarely do I use Word, only when someone needs assistance with a Word doc. I've moved to Pages, for what I do it's so much better than Word 2004 (don't have 2008).
    Some friends using AW want help with their AW thingys, so to assist them I reinstalled AW. Wow, I question why for years I hadn't used it: now I use AW more than Pages and Numbers. It amazes me how fast AW is, plus I like the DB as well. Yes the word processor and spreadsheet aren't as graphical as Numbers and Pages however, the print outs are very good, and both modules do numerous things Pages and Numbers yet cannot do.
    The more I use AW the more I understand why folks wished Apple, rather than start iWork from scratch, ported AW to iWork. Let's hope the next version of iWork will catch up to AW becoming the cats meow perhaps.
    Again thank you for the Bean link.
    Sincerely,
    RicD
    Sincerely,
    RicD

  • How to set Default text when sending a blank mail from SAP

    Hi all,
    How to add Signature with company logo in the mail body.
    User should see at least one default text (eg; Hi) in the mail body if the sender did not type any text in the mail body when sending a mail from SAP.
    Is it possible to set like this on Subject also.
    Kindly share your ideas.
    Regards,
    Mathan A

    Hi Mathan,
    Please check sap note
    SAP Note No. 1304146 Email Signatures feature note
    1163250 - How to Create an Email Signature on several rows
    I hope it will solve your issue.PLease mark thread as answerd.
    Best Regards,
    Atul

  • Open a file in default text editor

    Hi,
    how can i open a file in a given file path with windows specified application. eg. if i want to open *.txt and if windows generally opens it in notepad then it should open in notepad, or if it generally opens in any other text editor like text pad then it should open in text pad.
    if not possible then what is the best way to open a text file in predefined text editor?
    thanks

    hi,
    I do know how to open it with notepad:try
    String cmd = "Notepad " + filename;
    Process p = Runtime.getRuntime().exec(cmd);
    catch(Exception e)
    e.printStackTrace ();
    }It is possible to open it with the standard texteditor, certainly by retrieving it from the windows registry. Perhaps there is a routine for it like for Internet Explorer but that I don't know.
    greetz,
    Stijn
    P.S. to test these commands you can go to start > run, enter notepad (or any other command) and click OK

  • [AA7+] [Windows] Set default text size for "auto" setting...

    Good morning:
    I was wondering if it is possible to set the default font size or specify a maximum font size
    for the auto setting of the font size on a text field when using the auto setting?
    Currently, if the font size is set to "auto" it defaults to 12 pt. text if multiline is checked on the Options tab.
    If multiline is not checked on the Options tab, the font size will adjust to the height of the box.
    I would like to have the multiline checked, specify "auto" for the font size, but have the auto font size be no larger than 8 pts.
    It can go smaller than 8 pts. if there is too much text in the field, but should not be larger than 8 pts. because the other form fields are in 8 pt.
    If someone has any suggestions on how to achieve this, I would be most appreciative.
    Thanks!
    Theresa

    Thanks Jongware!
    I'm aware of the many different forums and I thought I was posting it in the Acrobat Scripting forum.
    That'll teach me to look where I post. I guess I'm the one that needs the glasses.
    Take care!
    Theresa

  • Setting Default applications for file types

    I recently got NeoOffice for my mac and im trying to set file types to open automatically instead of CTRL clicking then open with then the program. Ive had trouble with that to recieving wrong types of files from people on aim and then having to open it with iphoto
    please help

    I'm using 10.4.9 and there is no "Change All"-Option. There is always a checkbox "Always Open With", but it is only related to the single selected file. On a second Mac (same OS version), there is the same behavior.
    Bug???
    Powerbook G4   Mac OS X (10.4.8)  

  • Setting default text to dropdown listbox

    I have a field on my Webdynpro defined as DropDownByKey.
    The field's list for the dropdown list is coming from a domain with a list of all the values.
    I want to default the field to one of the values in the list from the domain, but I want the description, not the key value to default or showup as the default.
    I don't see the method to use in class CL_WD_DROPDOWN_BY_KEY.  Is there a method or someway to do this?
    Thanks
    John

    Sujay,
    I found out the easiest way around this without adding any code. 
    If you have a field on your iView that points to a structure or table field where the domain for that particular field is a list of values, typically the doman has a fixed value as the key and then the short description.
    In most cases the user does not want to see the key fixed value, just the description.
    When you add this field to your iView, you must choose the properties DropDownByKey.  This will take care of showing the description and not the fixed key value.  And not to worry, the value stored to the database will be the fixed value and not the description.
    Johnny

  • Can I set Mail default text color

    Is there a way to set default text color for sent messages?  These settings don't seem to have any effect:

    Only way I know how is to save a Draft with some character, even a space with color set & use that to Draft send.
    Or maybe set a Favorite in CMD+t in Mail.

Maybe you are looking for

  • Computer not responding to ipod

    hello there i have a 2nd gen ipod, and im having some problems with it. when i put it into the dock, the light flashes orange 3 times. but thats it. it doesnt show up on my computer, doesnt show up in itunes. nothing. it does, however, charge, despit

  • Can you import video directly from a video camera ?

    Can you import video directly from a video camera to the iPad 2 ? If so, what is needed?

  • Dynamic characteristics scenario

    Hi experts, Im facing a problem figuring out the best way to do this. In ECC I have data with this structure Msg class; No Msg; Char_name; char_value; numeric_value ZSOMETHING;1;POSTING_DATE; 01.01.2009      ZSOMETHING;1;SOME_RATIO_1; 9.5 ZSOMETHING;

  • Related to table name and field name

    My ques. is     go to tcode IW33. Enter the orderno. From menu bar GOTO   SETTLEMENT RULE.   we are getting some data and column name. Can anyone tell me the column SETTLEMENT RECEIVER is related to which TABLE and what is the FIELDNAME.

  • Why is Forms trying to insert??

    I have a block with items from a table. If I make a change to an item, and leave the block, it updates fine. However, if from another canvas I change the items in the original block (:block.item := :thisblock.item), it wants to INSERT, even though I