Terminal: "open -e/t" question.  Windows group question

2 questions regarding Terminal
1. Is it possible to make it so the open -e, or open -t command, instead of opening TextEdit, opens a different text editor?
2. Is it possible to open a Windows group, and have JUST 1 of the windows execute an ssh command?

1. Is it possible to make it so the open -e, or open -t command, instead of opening TextEdit, opens a different text editor?
Sure. 'open -t' uses the default text editor application, as defined by LaunchServices. On a standard system this is TextEdit.
If you want to have 'open -t' use a different TextEditor then you need to specify an alternative application as the default text editor.
This is easiest done by selecting a plain text (.txt) file in the Finder and choosing File -> Get Info. In the 'Open with' pane you can choose an alternative text editor and clicking the 'Change All' button will update the LaunchServices database with the specified application as the default.
Now any .txt file you open will launch in this application, whether it's opened in the Finder, or via 'open -t'.

Similar Messages

  • 2 simple questions about opening and closing seperate windows via iWeb...

    I'm a web newbie, so please excuse me for my lack of terminology. My questions are... 1. How do i have iWeb open a separate browser window "simultaneously" from my main page to display a quicktime movie or piece of artwork? 2. Is it possible with iWeb to create a "close" window button within that same seperate window so that the veiwer does not have to click the red button in the upper left hand corner. Thanks guys and girls!
    G5 Dual 2.3   Mac OS X (10.4.5)  

    Sorry! i meant I tried all of the links that are on your web page. There are quite a few of them and I watched most of the movies but there aren't any that open on a new window with a link to close it. I thought that happened because I had a pop-up blocker but even after dissabling the blocker and trying opening some of them again they still opened in the same window. I did come accross a couple of links that changed the window and made it do wacky thinks like moving fast left and right and forcing the window to get smaller. Kinda fun but this is not what I had in mind.. lol The rollover javascript is nice but I couldn't find it on the page's source. Is it the part that says "<script language="JavaScript1.2" src=..."? I'm just curious to know which software you used to make the flash movies and how difficult it was. Maya rocks by the way!

  • Terminal: Window group with commands

    Hi, how can I set up a Terminal window group that executes a different command for each window?
    What I'm trying to do is restore an array of Terminal instances each pointing to a different location when Terminal opens (so one window should execute "cd x," the next "cd x/src," etc.).
    With Tiger I could create a .term file and set an "ExecutionString" (that's how commands were labeled in the .term file format) property for each window, but with SL I'm only able to create one shell command in Preferences|Settings that is executed by all Terminal windows in the group.
    So basically, how can I get Terminal to remember a group of windows and their associated file system locations?
    I've spent a few hours searching and trying stuff without success. The window groups are stored in Terminal's .plist file so I opened it with Property List Editor and see the Window Groups stored in there but no properties resembling a command for each group.
    Thanks!

    neenach2002 is basically correct on this one; this post got me pointed in the correct direction. I've gone a little farther to suit my needs (and answer your question directly), so I figured I'd post my results:
    First, create a file called "~/window1.bashrc" and place the following in it:
    export MYHOME=/Volumes
    cd ${MYHOME}
    Next, go to Terminal -> Preferences -> Settings. Create a new profile called "MyProfile_Window1" based on one you like, then go to the Shell button, and type "bash --init-file ~/window1.bashrc" (without quotes) into the filed labeled "Run command." Be sure the check box next to it is checked.
    Repeat for as many windows as you want, changing your label to Window2, Window3, etc. Be sure you have created the associated ~/window2.bashrc, ~/window3.bashrc, etc also.
    You should now be able to open a new window or a new tab via Shell -> New Window -> MyProfile_Window1 or Shell -> New Tab -> MyProfile_Window1, and it should go directly to the directory you want.
    Once you have used the menu options above to launch all your windows, save THAT as your window group via Window -> Save windows as group, and under Terminal -> Preferences -> Startup, be sure your newly saved window group is set to launch.
    Hope it helps!
    - Kevin
    PS: If you would like to use this to attach to multiple servers, you can do the same thing by just launching a shell script that performs an SSH to the appropriate server. To take it one step further, consider using the unix "screen" utility to allow you to instantly reconnect to a dropped setup! I think I'll write a User Tip for this - it's a very handy setup!

  • Firefox will not open or won't start (see /questions/964132 )

    was Ok till recently

    Please include more information, such as your Operating System (Windows?) and version, plus exactly what happens when you try to start Firefox. The information that's listed in a recent Firefox crash report, if available, might also help. See [[Firefox crashes]] under '''Get help fixing this crash''' and post any crash Report IDs recently submitted (they'll start with '''bp-''' )
    Your question title says "Firefox will not open or won't start (see /questions/964132 )" I looked at that question and it was started by another Firefox user. [/questions/964132?page=2#answer-477049] has a number of suggestions if Firefox won't start. Which ones did you try?
    For other possible solutions see
    * [[Basic Troubleshooting]]
    * http://kb.mozillazine.org/Browser_will_not_start_up
    *[/questions/958850] ''Firefox won't open after restart''
    Note: A "clean reinstall" was one of the suggestions in [/questions/964132]. It means removing the Firefox application files and then reinstalling Firefox from a fresh download, as explained in the "Reinstall Firefox" step in [[Basic Troubleshooting]]. If that allows you to start Firefox, but if the problem returns after restarting the computer, you should do another "clean reinstall" and then troubleshoot your plugins by disabling all of them, as suggested in the [[Basic Troubleshooting]] article.

  • I cleaned up my mac and now all my applications are gone. I try to open them and it has a question mark on the app icon. Everything from System prefrences, Everything in itunes, iphoto, preview and mail? Please help

    I cleaned up my mac and now all my applications are gone. I try to open them and it has a question mark on the app icon. Everything from System prefrences, Everything in itunes, iphoto, preview and mail? Please help

    These question marks are on your dock? And you can't open applications from your dock?
    If so, try this: Open a new finder window and navigate to the Applications folder in your hard disk. The applications in question should still be in there (the Applications folder). So drag each of the application icons that you want to be available on your dock from the Applications folder onto your dock, one by one. Take each of your question mark icons that are on the dock and drag them off the dock to get rid of them. See if that fixes you up.
    Now, if your hard disk no longer has an Applications folder in it, or the Applications folder is empty, you are going to have to reinstall OS 10.6 then do a software update to bring you back up to OS 10.6.8. You may be able to just go to the "optional installs" folder on the installer DVD and maybe all the stock applications are there -- I don't remember and I don't have an installer DVD handy to look. That would be way easier than doing a full blown OS reinstall. Also, as I recall, if OS 10.6 was on the computer when you bought it from the store, I think there should be an "extras" DVD that has a handful of applications that could be reinstalled from it, too.

  • Window autosizing question

    Hello! I have a question:
    When dialog window opens (action="dialog:someWindow") and size parameters is not set, window size calculates automatically. I have a page, which opens in dialog mode:
    <af:commandButton text="Show panel grid" actionListener="#{backing_dialog_window.actionShowPanelGrid}"/>
    <h:panelGrid columns="2" width="100%"
    columnClasses="columnLeftAlign30,columnLeftAlign70"
    rendered="#{backing_dialog_window.act == 1}">
    ... some content
    </h:panelGrid>
    public void actionShowPanelGrid(ActionEvent ev) {
    this.act = 1;
    When I press button, method actionShowPanelGrid sets act equals 1, panelGrid becomes visible. I should increase page height. How can I calculate it? The better way to solve this problem is call some function, which resizes this window automatically. How can I do this?

    When working with javascript in multiple windows like this, it is very easy to get lost.
    I think what you missed in accessing your applet was a "document" object.
    There are a couple of hints for writing javascript:
    1 - you can type javascript into the address bar like so:
    javascript:alert(window.opener)
    You then follow the path to the object you want as long as you can. Build it up slowly, so you see where the chain breaks.
    javascript:alert(window.opener.opener)
    javascript:alert(window.opener.opener.document)
    javascript:alert(window.opener.opener.document.applets)
    javascript:alert(window.opener.opener.document.applets.length)
    2 - General design: Don't reference stuff on other pages - call functions on the page only.
    Rather than calling window.opener.opener.document.applets[0]. (ie referring to the applet from window 3)
    do this
    window.opener.opener.saveApplet() (from window 3 call the saveApplet function on window1)
    and on the first page have
    <script>
    function saveApplet(){ 
    document.applets[0]. ...
    </script>
    This provides a sort of interface for other pages to use, so they don't have to refer to details on the page.
    If you change the layout of the page, or the name of the applet etc etc, you only have this one place to modify it. It can save you a nightmare in javascript errors later on.
    Good luck,
    evnafets

  • Why do Terminal Window Groups Get 2 Columns Wider Every Launch?

    I set up 3 terminal windows of different sizes, place them where I want, and save as a "Window Group." Then I set this Window Group to be used when launching Terminal.
    Lion has introduced a bug whereby every time you launch the Terminal app, each window in the Window Group gets wider by 2 columns. It is 100% reproducible and incredibly annoying.
    For example, follow these repro steps:
    Launch Terminal. Your first window in the group is 140 columns wide, just as you saved it.
    Quit Terminal.
    Launch Terminal. Your first window in the group is 142 columns wide. The other windows are similarly wider by 2 columns.
    Quit Terminal.
    Launch Terminal. Your first window in the group is 144 columns wide. Again, the other windows are also wider by 2 columns.
    ... and so on...
    If you select "Window > Open Window Group" and choose the same group, it will open them at the intended sizes. However, this doesn't solve the problem.
    Is there a work around to prevent this?
    Thanks,
    Tim

    a fix from apple will probably take some time (apple is not fast about bugs they consider minor).  in the meantime, you can use something like the following as a workaround.  copy the following into a plain-text editor and save it as <whatever>.applescript (somewhere out of the way - it doesn't matter where you save it so long as there are no permissions issues).
    tell application "System Events"
              set terminalPlist to property list file "~/Library/Preferences/com.apple.Terminal.plist"
              tell terminalPlist
                        set defaultWindow to value of property list item "Default Window Settings"
                        tell property list item "Window Settings"
                                  tell property list item defaultWindow
                                            if value of property list item "columnCount" ≠ 80 then
                                                      set value of property list item "columnCount" to 80
                                            end if
                                  end tell
                        end tell
              end tell
    end tell
    You could also save this as a compiled script (.scpt) using script editor; doesn't really matter.
    Then, copy the following into a plain-text editor and save it as user.terminal.widthFixer.plist (the name doesn't really matter, so long as it ends in .plist), in the folder ~/Library/LaunchAgents.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>user.terminal.widthFixer</string>
              <key>ProgramArguments</key>
              <array>
                        <string>osascript</string>
                        <string>/Users/<yourname>/path/to/script.scpt</string>
              </array>
              <key>WatchPaths</key>
              <array>
                        <string>/Users/<yourname>/Library/Preferences/com.apple.Terminal.plist</string>
              </array>
    </dict>
    </plist>
    <yourname> should be your short user name, obviously, and the path in the ProgramArguments array should point to the script.  Log out and log back in, and this script should (in the simplest case) automatically reset the window width.
    caveats:
    I can't test this (the external disk with my Lion installation died), so I can't guarantee it will work out of the box
    depending on whether the increment occurs at startup or shutdown, you may need to set columnCout to 78 instead of 80 to get the right final size
    make sure you use a plain-text editor (TextWrangler, TextEdit in plain text mode, or any programmer's editor).  using a formatted text editor will mess things up.
    if you have a complex setup you may need to reset Window Settings other than the default one. All this means is changing tell property list item defaultWindow to tell property list item "window settings name".  adjustments should not be difficult, but post back with details if you need specific instructions.

  • Where is the Terminal Window Groups settings saved?

    Where is the Terminal Window Groups settings saved?  Would love to copy my Window Groups and customization to another computer.

    It's stored in the standard Terminal preferences file, namely ~/Library/Preferences/com.apple.Terminal.plist

  • Live Tweet Windows 8 Questions to @Windows and @HPSupport #winchat - Nov. 13th, 1 - 2 pm PT

    On November 13th, HP and the Microsoft Windows team will team up for a Twitter chat to discuss the new Microsoft Windows 8 operating system. The goal of this Twitter chat is to help users smoothly transition to Windows 8 and take full advantage of the new operating system and its features and benefits.
    The conversation will be co-moderated by @Windows, @WindowsBlog, and @HPSupport, and will take place from 1-2 p.m. US PST on November 13th immediately after the regularly scheduled time of the popular #winchat.
    Follow the conversation using #winchat or use Tweet Chat and enter #winchat to join the conversation!
    Topics:
    Using Windows 8
    Windows 8 Upgrade Questions
    Windows 8 Tips
    Share Windows 8 Experience
    Special Guests:
    Tim Fisher (@AboutPCSupport) of the About.com PC Support Guide
    Richard Hay (@winobs) of WindowsObserver.com
    David Murphy (@thedavidmurphy) of PC World
    Paul Thurrott (@thurrott) of WinSuperSite.com
    Jeremy Likeness (@jeremylikeness)  - Author of Building Windows 8 Applications with XAML and C#
    Peter Bright (@DrPizza) – ArsTechnica
    Blog Coverage:
    Jeremy Likeness
    Windows Observer
    About.com PC Support
    The Windows Experience Blog

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • Open image in same window

    Hello, I have two questions. First, how do I make an image
    thumbnail open in the same window as that thumbnail?
    Two, what is the best way to learn how to use Dreamweaver?
    Any books or tutorials that I could buy or subscribe to?
    Thanks, Saingbey

    On 26 Feb 2007 in macromedia.dreamweaver, Saingbey Woodtor
    wrote:
    > First, how do I make an image thumbnail open in
    > the same window as that thumbnail?
    <a href="myImage.jpg"><img
    src="myImageThumb.jpg"></a>
    > Two, what is the best way to learn how to use
    Dreamweaver?
    Learn HTML and CSS. Then come back to DreamWeaver.
    > Any books or tutorials that I could buy or subscribe to?
    See any number of posts to this group, including a few today.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Open in new tab on right click fails to open in the current window when used in a dependent window called with window.open command from original window this worked fine until ver 4.0

    i have been using this page in all versions of firefox until ver 4.0 and it has worked fine
    https://npwas.com/dummy/charts/charts.html
    when this page is loaded enter a stock symbol in the text field "AAPL"
    then click one of the lower links --"Yahoo Headlines"-- and another window is opened with this code
    - function yahoolink(sqlstring, winnum) {
    - var myurl = "http://finance.yahoo.com/";
    - var mysymbol = document.SymbolForm.symbol.value;
    - var mysrc = myurl + sqlstring + mysymbol;
    - var mywindow = "mywindow" + winnum;
    - //alert("mywindow- " + mywindow);
    - if (sqlstring == "mb/")
    - mysrc = "http://messages.finance.yahoo.com/" + -sqlstring + mysymbol;
    window.open(mysrc,mywindow,'resizable=yes,titlebar1=1,toolbar=1,scrollbars=1');
    all this works but when i right click on a message or news item and select "OPEN IN NEW TAB" - it fails to open the tab in this current window it opens it in the parent window --
    the way i have always used this is to able to select news and right click all news items to read as new tabs and have all news items or messages to be grouped in the child window
    this is now broken or do i need to recode something??
    https:\\npwas.com come is my secure server and you may load the page and see the code
    so far i really love ver 4.0 especially the sppppppeeeeeeeeed!!!!
    keep up the great work
    thanx in advance
    tojo

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • The right-mouse-click dropdown on links in FF4.00 has swapped the positions of 'open link in new tab' & 'open link in new window'. This is infuriating as I keep opening windows when I want tabs. I want to swap back - how?

    Please swap them back!

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Problem opening Bridge CS5 in Windows 7

    When I open Bridge CS5 in Windows 7, I get a pop-up window from User Account Contro that asks "Do you want to allow the following program to make changes to this computer?"  The program listed is Bridge.  If I say NO, Bridge doesn't open.  If I say YES, Bridge opens normally.  This question pops up every time I open Bridge but not with any other CS5 applications or any other program.  Any suggestions?  Thanks,

    This is a permissions issue within the OS.  Next time you start Bridge right click on the icon and select "run as administrator" and choose yes.  Perhaps it will stick that way.

  • SharePoint Foundation 2010 - Your client does not support opening this list with windows explorer when clicking Open with Explorer

    when I tried to open document library in Windows explorer view by click 'Open with Explorer', it popped up “Your client does not support opening list with windows explorer”
    OS: Windows Server 2008 Enterprise x64
    IE: 9.0 32bit
    webcient service is runing
    HKLM\System\CurrentControlSet\services\WebClient\Parameters and changed the BasicAuthLevel to 2 instead of 1.
    Anybody knows how?
    Thanks.

    Did you add your site to trusted site list?
    http://sharepoint.stackexchange.com/questions/15098/your-client-does-not-support-opening-this-list-with-windows-explorer
    --Cheers

  • How to open page in new window while handling event on link.

    Hi all
    I have a requirement where page should be opened in new window when I click on link.My item style is 'link'.Despite of mentioning target frame _blank, I m not able to open it in new window.I m handling event by setting Action Type as fireAction.I hope this might be the reason because of that this happened. Can somebody suggest some solution so that I can open it in new window.
    Thanks,
    Bhupendra

    Hi ,
    though i am not able to answer, i can get some answer for my question.
    How the link item is handled thru the ActionType and event in the Client Action..?
    The reason for this question is that we are trying to extend the customer search page in AR - EBSR12. there the search result page has the Account Name as a link and the Action event says viewAccountName and the action type says firePartialAction. I am trying to understand this so that i can add more parameters to the link so that i can use them in the target page of the link..
    Any help is appreciated..
    Thanks
    Chidam

Maybe you are looking for

  • How do i get sql plus to start in something other than command prompt?

    I have just installed oracle 11g enterprise addition. I am use to a different type of editor for the sql plus, the one I am use to comes up in a white area and has drop downs for file, tools, spool, help and so on. You can also open notepad with a sh

  • Sort key too long message from view

    has anyone come accross the message "sort key too long" when selecting from a view, and if so what causes it ?

  • URGENT PLEASE HELP: iTunes Will Play Songs With No Sound.

    Hello all. I recently did the following and significantly screwed up my iTunes: -Tried to move my directory to an external hard drive. -This didn't work, so I then had to reload my iTunes. -I did this by doing the standard copying the .xml library fi

  • How can I delete an image on LR?

    When I try to remove a photo from the "disk", I now get a message that the files are on a volume that does not support Trash. What does that mean? Cindy

  • Error message when playing iPlayer

    Hello, I recently purchased  Apple TV and have been trying to play iPlayer via my iPad 2 since, without joy.  iPlayer doesn't recognise it (the Airplay symbol doesn't pop up) and when I tried to stream 4OD it showed the message "an error occured".  A