Terminal "open" command misbehaving

In Terminal, when I use the "open" command on any folder, I expect that folder to open in the Finder. For example, "open /Applications" should open the Applications folder in the Finder.
This does not happen for me. Instead, iTunes opens and starts to import any music files it can find in the folder I specified. This does not happen when I double-click on a folder in the Finder.
I have rebuilt the LaunchServices database (using Yasu) but that didn't help. Any advice would be greatly appreciated.

(highland_park:~)$ which open
/usr/bin/open
When I double-click Applications (or any other folder) in the Finder, the folder opens normally. (This is with View->As Icons selected.)
I have nothing in ~/LIbrary/Workflows.
I just discovered that if I put any folder in the dock, right-click on it, and select "Open [folder name]", then it opens in iTunes. (Does this just trigger the open command?)
I'm enjoying poking around, and I very much appreciate all the suggestions.

Similar Messages

  • Open command in Terminal

    When I try to open a folder from Terminal using the open command, instead of a Finder window opening for the folder, another Terminal window opens up with contents like the following:
    *Last login: Sat Nov 14 16:14:45 on ttys001*
    *jt-imac:~ terrator$ /Users/terrator/Music ; exit;*
    *-bash: /Users/terrator/Music: is a directory*
    logout
    *\[Process completed\]*
    In addition, I get the same symptom when I try to open folders from the Dock and Spotlight so I think the problems are related.
    I have done the following in trying to resolve this problem:
    1. Repair permissions and repair disk with Disk Utility using the Installation DVD after booting from it.
    2. Repair LaunchServices using Onyx
    3. Created a test user to see if this user has the same problem. No, the problem doesn't happen in this user.
    4. Deleted the com.appl.terminal.plist and some other plist files.
    5. Reinstalled Snow Leopard on top of my existing installation.
    None of those attempts have resolved the problem.
    Anyone has any ideas on how to resolve this problem?

    For Terminal.app I don't see anything with name "Folder" but I see one with roles "Editor":
    The Terminal does not execute anything. It is a character terminal emulator that is connected to pseudo (fake) serial terminal device (/dev/pty**)
    The other side of that pty device is attached to an independent process that happens to be running a shell of some kind (default being the bash shell).
    The shell will create child processes on demand and run commands requested by the user. Any text send to standard out or standard error by the shell or any of the children processes started by the shell, will be sent to the pty and the Terminal will read the other side of the pty and display the text in the Terminal window.
    The Terminal will also listen to the keyboard, and send any text you type to the pty where the shell or a child process created by the shell will read the other side of the pty and do what you tell it via the keyboard.
    That is the Terminal's job. communicate through this fake serial device. It does not execute commands. I knows nothing about Folders, nor files, nor TYPE/CREATOR fields, nor file type suffixes. Just reads text you type, and displays text sent back from the shell or its child processes.

  • Opening files from terminal directly (not usign 'open' command)

    Hey guys,
         Is there a way of opening files in photoshop usign the terminal without usign the open command just as in windows?
    In windows I can simply put the file name as an argument, but in OS X I can´t do the same, is there a special way for such thing? Rathen than usign "open -a Photoshop myFile"
    Thanks

    Hey guys,
         Is there a way of opening files in photoshop usign the terminal without usign the open command just as in windows?
    In windows I can simply put the file name as an argument, but in OS X I can´t do the same, is there a special way for such thing? Rathen than usign "open -a Photoshop myFile"
    Thanks

  • Where are the settings for the "open" command, located at /usr/bin/open?

    I have Windows XP installed on a partition on my Macbook and I use Parallels to access some of the Windows applications.
    When I am in Mac OS X, and I don't even have a virtual machine running, if I enter the following command in the terminal, I get some really strange behavior:
    /usr/bin/open -a firefox http://localhost/~myname/somewebpage.html
    The open command will launch firefox within Mac OS X and display the page, but, it WILL ALSO TRY TO LAUNCH FIREFOX VIA PARALLELS. So, it starts a Parallels session and tries to launch Firefox. I see the Firefox icon in my dock twice, once normally, and once with the Parallels version of the Firefox icon. But, I cannot view the Parallels instance of Firefox.
    In order to debug this, I removed Firefox from Mac OS X (deleted Firefox.app from my applications folder) and I un-installed it from the windows partition using Add/Remove programs in windows.
    Now, running the open command as stated above launches Safari in Mac OS X and it still launches parrallels.
    Where is the list of application associations that the "open" command uses? I assume there is some incorrect associate that is causing this but, I have no idea how to find it.
    Thanks in advance for any advice you can give.

    Thank you for your reply.
    I actually checked out the man page for "open" but, I was unable to find LaunchServices in the finder. I was hoping there would be some sort of manifest, or application map, within LaunchServices that might be the source of my problem.
    Regarding using the full path: Good suggestion. That will clear it up when I use the command line, or if I were writing my own app, etc...unfortunately, I became aware of this problem because Netbeans is using the command in the abbreviated form I posted above (to launch web applications I am debugging), and I can't edit it.
    I removed Firefox from both Windows and Mac OS X on my machine, and tested the Netbeans functionality, it launched my application in Safari with no errors. I reinstalled Firefox on my Mac OS X partition and selected it in Netbeans preferences as the browser to use when debugging an app. When I tried to debug an application in Netbeans again, I got the same behavior...parallels launched. Ugh.
    There was a folder, on the Windows side of things, called something like Parallels\Shared Applications. It had a shortcut to Firefox in it but, I removed that before doing my testing. I was hoping there would be something similar on the Mac OS X side but, I haven't been able to find anything.
    Thank you both for your help. I think I might need to visit the Parallels forums for this one.

  • Odd trackpad behavior, opens Command+ F in any program.

    I have an odd behavior on my Mac that's starting to get pretty annoying.
    I have a late 2009 model. If I am in say Safari, and I wiggle my finger near the bottom of the track pad, (wiggling up and down on the bottom center edge of the trackpad) it opens up the search bar for Safari.
    Basically Command+F.
    If I am on the desktop (Finder) and do the same action it opens Command+ F once again, this time just in Finder.
    In iTunes, the same motion on the trackpad puts me in full screen, which is, you guess it. Command+ F.
    I have tried to get rid of this behavior by terminal commands killall Finder, killall Dock, and also by moving the user/library/preferences folder contents to the desktop, so that programs rewrite their preferences, but everything still has the same behavior.
    Any ideas?
    - Pixel -

    Never heard of anything like it, frankly. Run the Apple Hardware Test you'll find on one of the DVDs that came with your MBP, and make an exact note of any errors it reports. Then make a Genius Bar appointment at an Apple Store and demonstrate the problem to the Genius. Also show the Genius the text of the error report (if there was one).

  • Spinning rainbow wheel for long periods on File Open commands in Acrobat and Office 365 programs

    Hardware & Software:
    MacBook Pro (17-inch, Mid 2009)
    77GB of free hard disk space
    8GB RAM
    Running OS X Yosemite (Version 10.10.2)
    Over the last few days, when I try to execute a File Open command from Adobe Acrobat or Office 365 programs (even from an innocuous location such as Documents), I get the spinning rainbow wheel for long periods of time (10 seconds to minutes) before I am able to select a file to open. I copied messages from Console after a File Open command for each of Adobe Acrobat and Excel (the selected location was Documents), given below:
    Excel Log Messages
    2/24/15 5:50:50.970 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Microsoft Excel" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:51:01.280 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.739 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Microsoft Excel" after 11.77 seconds (server forcibly re-enabled them after 1.00 seconds)
    Adobe Acrobat Log Messages
    2/24/15 5:58:22.145 PM     bird[257]        Assertion failed: ![_xpcClients containsObject:client]
    2/24/15 5:58:23.454 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Acrobat" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.722 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Acrobat" after 7.27 seconds (server forcibly re-enabled them after 1.00 seconds)
    Can anyone give me an idea of what these messages mean and how I can solve this problem?
    If I'm not in the correct Community for this question, could someone kindly tell me where I should re-post?
    Thanks.
    David Walker

    Yes; I have previously connected to an iMac at this location using File Sharing.  However, in my attempts to solve this problem last week, I had already unchecked File Sharing in System Preferences.  Tonight, I also deleted the folder from the window in the File Sharing System Preferences page, then rebooted.  The problem still persists.
    I try not open files across a server line, i.e., I try always to copy a file to the local computer and open it there.  I may have gotten careless and tried to open a file from the Windows server with either or both Acrobat and Office 365.  Although this was an SMB share, is it possible that these programs are now trying to connect to the Windows server on a File Open?
    I had about decided to quit chasing this problem; we spend about two weeks every two months at this Boston location, and I'll be returning to my Florida home this weekend.  So I decided I would see what the situation was when I returned to my native habitat, although I may be chasing this problem again in our trip to the Boston area in April.
    The other thing I wondered (I guess I can't quite let it go), is whether there is a command line in Terminal that would kill all AFP shares.
    In any case, thanks for your help; you're very knowledgeable.

  • Why, if I have to restart my iMac does the terminal open and I have to restart again to make Mail (6.3) open without showing it offline?

    Why, if I have to restart my iMac, does the terminal openm and why do I have to restart again to make Mail (6.3) open without showing it offline?
    early 2009 iMac 320  4GB memnory

    Triple-click anywhere in the line below to select it:
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application.
    Paste into the Terminal window (command-V).
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • Terminal Startup Commands

    So I was reading online about how to make Terminal run a command on startup. When entering the commands to make it run a command on the start of Terminal I guess I messed up, now whenever I start Terminal it says [Process Completed] and wont let me enter any more commands. It also does this when I open a new shell. I want to know if there is a way to delete this startup command so Terminal opens as it does out of the box.

    Or this shell script->
    #!/bin/sh
    #showallfiles
    # Description and usage message
    usage () {
    echo "
    Description:
    A simple shell script to reveal/conceal files
    hidden in Mac OS X Finder application.
    showallfiles excepts one option.
    Usage: ${0##*/} [-h|--help] to show this help
    ${0##*/} [on|ON] to show hidden files
    ${0##*/} [off|OFF] to set the default hidden files
    Example: ${0##*/} on
    # Test for more than one option
    if [ $# -gt 1 ]
    then echo "${0##*/} -h to access help"; exit
    fi
    # Get the AppleShowAllFiles status in the domain com.apple.finder.plist or create the default off setting
    STATUS=`defaults read com.apple.finder AppleShowAllFiles 2>/dev/null` || STATUS=`defaults write com.apple.finder AppleShowAllFiles OFF`
    # Function to check AppleShowAllFiles status and change the status if necessary
    finderfilesstatus () {
    if [ "$STATUS" = "$SAF_OPT" ]
    then
    echo "AppleShowAllFiles is set to $SAF_OPT"
    else
    defaults write com.apple.finder AppleShowAllFiles $SAF_OPT
    osascript -e 'tell application "Finder" to quit' -e 'delay 1' -e 'tell application "Finder" to launch'
    fi
    # Parse the command option
    case "$1" in
    '-h'|'--help') usage; exit;;
    'on'|'ON') SAF_OPT="ON"; finderfilesstatus;;
    'off'|'OFF') SAF_OPT="OFF"; finderfilesstatus;;
    *) echo "${0##*/} -h to access help"; exit;;
    esac

  • "open" command alternative?

    Hello everybody,
    I recently got the g95 Fortran compiler running on my 12-inch PowerBook G4. I've since compiled HST3D, a finite difference heat and solute transport groundwater model put out by USGS. When I launch HST3D from the Terminal, using the command "open" (ie, "open hst3d"), I am prompted for the input file name. Every time, the file is not seen. This program is supposed to be launched from the same directory as the data files. Using the "open" command makes this impossible (I think. Maybe the issue is with the program being opened in a new shell....).
    So, my question is... how do I set up Mac OS X Tiger so that when I simply type the name of a command-line fortran program, then press return, the program will launch (in that shell)? My problem with HST3D may be something else, but having to type "open" before every program is annoying.
    I check my email frequently and will be happy to clarify any points. Thanks for reading,
    Greg
    PowerBook G4 12-inch: 1.5/768/80/SD   Mac OS X (10.4.5)  
    PowerBook G4 12-inch: 1.5/768/80/SD   Mac OS X (10.4.3)  
    PowerBook G4 12-inch: 1.5/768/80/SD   Mac OS X (10.4.5)  
    PowerBook G4 12-inch: 1.5/768/80/SD   Mac OS X (10.4.5)  

    The PATH variable contains a list of directories that the shell uses to go looking for executables. When you issue a command in shell it will look through each directory listed in the PATH and run the first executable it finds. If an executable is not found in any of the directories in the PATH then you'll get "command not found".
    If you type an absolute/relative/partial path in front of your command then the shell will look for the command at the location you've specified.
    Depending on what your current directory is in Terminal, in most cases your current directory (which can be represented by ./) is not in the path. That's why issuing just the name of your program will get a "command not found" but issuing ./yourCommandName works (because you've specified the path to your current directory).
    Some folks tend to want to add "." to their PATH so it becomes easy to test apps they're developing, but doing this can be a security problem. Here's a link that explains why.
    Steve
    EDIT - directories listed in your PATH do not necessarily have to contain only executables.

  • Unix open command

    Hello everybody,
    I have made a program in QT and because I'm working in the terminal I use the open -a applicationname command. But it doesn't work any more, at least for my program.
    This is the error message
    LSOpenFromURLSpec() failed with error -10660.
    It only works when I use the open -a absolutepath/applicationname.app
    Does anybody know how to solve this?
    Maybe an old symlink?

    CyberboyNL,
    how did you solve this? i use the 'open' command all the time, and once in awhile this error kicks in and won't go away until i restart.
    eric

  • Hyperlinks from my MSWord files suddenly don't work because "/FirefoxHTML\Shell\Open\Command" has somehow been added to the end of each URL.

    When I click to open the hyperlink in my Word file, the message I get in Firefox is "The requested URL /submissions.htmlFirefoxHTML\Shell\Open\Command was not found on this server." When I delete that portion of the URL, the website opens fine. What can I do to make the hyperlinks work properly?

    Thanks for the suggestion. I tried it, but it didn't work. The link information is written correctly on the MSWord page. But when I click on it and the Firefox tab opens, the page can't be found because "FirefoxHTML\Shell\Open\Command" has been added to the end of each URL. Might it help if I reset Firefox?

  • エラー Could not complete the Open command because there is not enough memory(RAM).

    Windows 版 Adobe Photoshop CS6 13.0.1(32 ビット)を使用して JPEG 2000 ファイルを開くと、エラー “Could not complete the Open command because there is not enough memory(RAM)”を発生しました。
    詳しい情報:
    http://helpx.adobe.com/jp/photoshop/kb/cq04220115.html
    上記の文書を参考にしてください。

    リンク先に下記のように書かれています。
    追加情報 (Additional Information)
    Photoshop CS6 に付属の JPEG 2000 プラグインに問題があることが確認されています。開発チームは現在、問題の修正に取り組んでいます。
    修正の取り組みはいつまでかかるのでしょうか?
    Photoshop CS5 に付属の JPEG 2000 プラグイン を入れれば直るなら、
    Photoshop CS5 に付属の JPEG 2000 プラグイン配布するのは無理なんでしょうか?

  • Open command for Appleworks Imac G5 OS 10.4.2

    When I use the open command from the file menu it takes 20secs before the document window appears, same when I save as or save for first time.
    Also occurs with Office 2004 applications and other applications but strangely not with "pages trial"

    You have 10.4.11 Macs that iTunes can connect to the iTunes Store???
    I was pretty sure they changed to a minimum of 10.6.8
    Are downloading iTunes 9.2.1 from here...
    http://support.apple.com/kb/DL1056

  • I have tried to install office for mac and an iWork trial and each time I go to install my "terminal" opens with the heading bash-80X24 and in the box reads Joel$-office installer.mpkg joel$ . nothing further happens

    I have tried to install office for mac and an iWork trial and each time I go to install after downloading my "terminal" opens with the
    heading
    bash-80X24 and
    in the box reads Joel$-office installer.mpkg joel$ .
    nothing further happens

    This is thread from Apple discussions.
    Look for the suggestion from Shootist007 towards the end of the 2nd page.
    It is just may be useful.
    https://discussions.apple.com/thread/3709115?start=15&tstart=0

  • Open a command window and send some keystroke to the opened command window

    Hi All,
    I am trying to open command prompt and send some key stroke to that command prompt. Here I am using Robot to send keystroke. But the problem is, the keystrokes are not sent to the prompt. I guess I need to activate progamitically the command prompt to accept the keystrokes . Please find the code below ( as I did).
    try
    String command = "cmd.exe /c start";
    Process child = Runtime.getRuntime().exec(command);
    Robot robot = new Robot();
    Thread.sleep(5000);
    String lol = "indranil";
    for(int i=0;i<lol.length();i++)
    robot.keyPress(lol.charAt(i));
    int g = lol.length() - 1;
    robot.keyRelease(lol.charAt(g));
    catch (Exception e) {}
    I guess I am doing some mistake here while sending the keystroke/openning the command prompt. Can anyone please help me how can I open a command window and send some keystroke to the opened command window. I am in fix.
    Thanks,
    Indranil

    The first thing to do is read the API and examples for the Robot class.
    Also check out this thread with a similar discussion: [http://forums.sun.com/thread.jspa?threadID=5385677]
    The short spoonfed answer - keyPress() and keyReleaseI() do not take chars. Read up on KeyEvent

Maybe you are looking for

  • Will MDM for windows phone 8.0 support for windows phone 8.1

    We have successfully implemented MDM solution for windows phone 8.0 . Enrolment and polling working properly. Now devices will come for windows phone 8.1 .Will this existing system work for 8.1 also? Or is there any changes need to be done?

  • Adobe Reader Won't Print (ver. 10 or 11)

    I have a well-maintained Windows 7 32 bit machine running in a VMWare Workstation virtual machine that prints to a network printer via TCP/IP. It has worked well for years, including printing PDF's from Adobe Reader 9. Some time ago I updated Reader

  • Why Can't I Export to Quicktime from Garageband?

    Has anyone else experienced this or would know how to fix it... I created a .mov file from Keynote and brought it into Garageband as a Video Track to sync the music to the Keynote presentation. Now I'm ready to Export to Quicktime from Garageband. Wh

  • Problem Reinstalling Adobe Photoshop Elements

    I cannot reinstall Adobe Photoshop Elements. I had to reinstall my OS (7) last night. The "setup" keeps saying that I need Internet Explorer 4.0 or higher. I have 9.0. Can you help me? Thanks.

  • Insane Photoshop Elements 12 installation setup

    I'm told in troubleshoot error # 1311 to copy the installation files to a different than the default installation path.  Which I may be able to do IF i knew which were the goddamned installation files!!! If installing Japanese, Chinese and/or Greek c