Can't open file - file manager error

I can't open a couple files I was working on this afternoon. I shut down my computer when I left the office, now that I've booted again, when I try to open either of these 2 files I can a message that says "While attempting to access "file name" the file manager reported an error - 39."
I haven't made backups of these files, so that isn't an option.
I've rebooted a couple times, I've repaired disk permissions, but nothing works.
Previous files I worked on DO open correctly.
HELP! PLEASE!

I'm not sure if you have time to hold the hand of a "newbie" to Terminal
Of course! I'm always happy to introduce people to the command line
1) prompt$ - is my name bryceinman$
Most likely, yes. The default prompt usually contains the machine name, and sometimes the folder you are sitting in, and will usually end with a $ or a % (for a normal user), and typically a # for the root user.
2) cd - is that the name of the hard drive or do I just type "cd"
That is a command which means "c"hange "d"irectory (when you hear "directory", think "folder") and is how you move from one directory to another from the command line.
3) after that, it appears that I'm simply typing the path to the location of the file.
Yep.
Are you saying the "filename" will be the next string displayed by Terminal if, indeed, the file can >be found correctly? (Right now I'm getting the following: -bash: Macintosh: command not found)
That's correct. Once you've changed directories to the directory/folder that contains your problem file, you type at the prompt "ls -l filename", except that you will substitute the real file name for the word "filename" in my example.
And yes, using this same logic, the "cat filename > /dev/null" you will use the actual file name in place of "filename".
Maybe an example will help. Let's say I have a machine named tomservo, and a file called SmithDoc.txt, and it's located in my Documents folder, in a sub-folder called Work. To perform my above suggestions from the command line, I would do the following (I also show example output):
(Launch Terminal from Applications->Utilities)
tomservo$ cd Documents/Work
tomservo$
tomservo$ ls -l SmithDoc.txt
-rw-r--r-- 1 glsmith staff 512 Jun 10 22:01 SmithDoc.txt
tomservo$ cat SmithDoc.txt > /dev/null
tomservo$
A few things to note here. Since I added example output to the above steps, you may wonder why there is a blank prompt after the "cd" and the "cat" steps. This is normal Unix behavior. Many times, commands will not print out anything if they operated correctly. So, since I was able to change directories correctly in the first step, I got no output. In the second step, I'm asking the system to print information about the file ("ls" means "list", think "dir" in Windows), so that's why we see output. In the third step, I'm asking the system to read the file ("cat" means "concatenate"), but to redirect the output to the system bit-bucket (/dev/null). Don't worry too much about what /dev/null is -- think of it as a black hole. Anyway, since all the output is going there, that's why we don't see any output there either.
Why do I want to do this? Well, since "cat" will read the file without caring about what application created it, it's a good way to test the file's integrity in the filesystem itself. If there is something wrong with this file, the "cat" will get throw an error.
One last thing to mention, and hopefully this won't confuse the matter. If you have a file that doesn't have spaces in its name, please use that one to test with. That's why I used SmithDoc.txt. The command line can certainly interpret files with spaces in the name, but you must enclose the filename in quotation marks, or escape the space (don't worry about what that means). So, if my filename was actually Smith Doc.txt, anytime I typed this on the command line, I'd have to do:
prompt$ ls -l "Smith Doc.txt"
and
prompt$ cat "Smith Doc.txt" > /dev/null
Hopefully this all makes sense!

Similar Messages

  • Can't open file , error message 1310 & 2203

    can't open file , error message 1310 & 2203

    reproduce is easy. anytime i click to open an attachment or a pdf file.
    it won't open.  comes up with notice that adobe acrobat has stopped
    working and the program will close.  I can go to READER AND OPEN THE
    FILE BUT NOT FROM ACROBAT X PRO.   RATHER SILLY.
    ERROR MESSAGES ATTACHED
    THANKS FOR THE ASSIST
    Dan Valentine, GRI, e-PRO, MA min
    Broker-Owner
    Valentine Sales & Management
    "Building & Maintaining Rental Portfolios"
    "One-Stop-Shop: AcquireRehabLeaseManagementStrategic Disposition"
    www.ValentineTeam.com
    www.ValentinePropertyManagement.com
    www.InvestAZRentals.com
    12031 N. Cave Creek Rd.
    Phoenix, AZ 85020
    Cell-Text 602-377-0621
    Office- 602-866-0150
    Fax-602-926-8260
    [email protected]

  • Vi error on nfs mount; E212: Can't open file for writing

    Hi all,
    I've setup a umask of 0 for testing on both NFS client (Centos 5.2) and NFS server (OSX 10.5.5 server).
    I can create files as one user and edit/save out as another user w/o issue when directly logged into the server via ARD.
    However, when I attempt the same from an NFS mount on a client machine, even as root I get the following error using vi;
    "file" E212: Can't open file for writing
    Looking at the system.log file on the server, I see;
    kernel[0]: add_fsevent: no name hard-link! dropping the event. (event 2 vp == 0xa5db510 (-UNKNOWN-FILE)).
    This baffles me. My umask is 0 meaning files I create and attempt to edit as other users are 777, but I cannot save out edits unless I do a wq! in vi. At that point, the owner of the file changes to whomever did the vi.
    This isn't just a vi issue as it happens using any editor, but I like to use vi.
    Any help is greatly appreciated. Hey, beer is on me!

    Hi all,
    Thanks for the replies
    I've narrowed it down to a Centos client issue.
    Everything works fine using other Linux based OS's as clients.
    Since we have such a huge investment in Centos, I must figure out a workaround. Apple support wasn't much help as usual however they were very nice.
    There usual response is "its unsupported".
    If Apple really wants to play in the enterprise of business space, they really need to change there philosophy. I mean telling me that I shouldn't mount home directories via NFS is completely rediculus.
    What am I supposed to use then, Samba of AFP? No, I don't think so. No offense to Microsoft but why would I use a Windows based file sharing protocol to mount network shares in a Nix env???

  • Error message: "Can't open file"

    Using Keynote 3.0.x I try to open a keynote file created a year ago and when I try to open the "Opening" dialog comes up, you see the progress bar, and then, I get the error message, "Can’t open file" followed by the file name. Any recourse?
    PowerMac G5   Mac OS X (10.4.7)   FInal Cut Pro 5.1

    I later discovered the file was damaged. Went back to a backup copy and things were fine. Good think we have backups.

  • Error message: "Can't open file "[File path, file name].key"

    If I attempt to open any Keynote files, I now get this error message.
    "Can't open file "[File path: file name].key"
    To clarify, the text in the square brackets above would be the file path and then the file name.
    The file then will appear on the screen, but is unresponsive to any clicks or menu commands.
    The files will open successfully on other Macs, so they aren't corrupt.
    Also - I've just checked, and opening Keynote and trying to create a new presentation leads to the same problem: All screen menus / buttons are dead - all I can do is drag the window around the screen.
    I've tried to reinstall Keynote, but this hasn't resolved the problem.
    Is there some corrupt preference file (or similar) that I need to get rid of? Is there an easy way to do a complete uninstall of Keynote so I can try another install? Or is this a symptom of something else?
    All ideas gratefully appreciated!
    Message was edited by: Brendan Donlon

    All the issues I describe in my questions around this time re: Keynote were actually symptoms of a soon-to-die laptop. The Hard Disc was corrupting, and Keynote was the first application to be affected.

  • Error: can't open file (-43)

    Hi Guys,
    I am a newbie to iphone development....I was trying my hand on audio recording module using apple SpeakHere demo....
    The problem is that I want to save the audio file in NSDocumentDirectory and want to playback the audio recorded from there...
    But if i am changing the path from NNSTemporaryDirectory to NSDocumentDirectory i got error stating "can't open file (-43)".
    I searched forum , but did not found any satisfactory answer...Can any body please tell me a way how to overcome this error.
    Waiting for your valuable suggestion.
    Thanks in advance
    Quest.

    It would be best to post a little example code showing where your problem is.

  • Adobe photoshop lightroom won't install on my Mac - error can not open file

    Adobe Photoshop Lightroom4 will not install on my Mac. "Error can not open file" when trying to open will installer. If I cannot get it to work I would like to return product.

    What version of Mac OS are you using?  What is the exact name of the file which you are double clicking on?  If you right click on the file and select Get Info what does it state under the Open With section?

  • Can't open file error in Keynote 3. But OK in 2.

    I have a file (with custom themes) that opens fine in keynote 2 but can't be opened with keynote 3. It gives me the error "can't open file ... ".
    Any ideas?

    Just forgot about the issue.

  • My iWeb site is receiving an error - can't open file.

    I've got quite a big iWeb website (5.51GB) and this is the first time I encountered this problem. Today, I tried starting my website and it would not open. The error was "can't open file '.../domain ed.sites2.' I can't seem to fix it with the things I'm finding on this community support centre.

    The following might be helpful: in Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    You can download an already compiled version with this link: iWeb Switch Domain.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Fatal error : can not open file 'msvcrt.lib'

    Hello dudes !
    I am using windows and jdk1.6. I want to develop one application using JNI. As steps for JNI, i have created Helloworld java class and compiled it, then created header file using jnh. After that i have created HelloWorld.c file.
    To build dll file, i am executing the below command
    "cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll".
    Command giving the output as follows:
    HelloWorld.c
    Microsoft (R) Incremental Linker Version 8.00.50727.42
    Copyright (C) Microsoft Corporation. All rights reserved.
    /dll
    /implib:HelloWorld.lib
    /out:HelloWorld.dll
    HelloWorld.obj
    LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
    Can anybody say why it is giving this problem.
    Also i tried giving the msvcrt.lib path as the value for -MD option,
    cl -Ic:\java\include -Ic:\java\include\win32 -MD"c:\Microsoft Visual Studio 8\VC\lib" -LD HelloWorld.c -FeHelloWorld.dll
    Then it is giving "can not open file LIBCMT.lib" .
    Note : ...\VC\lib and ....\VC\include are added in the path.
    Can anybody tell the solution for this ?
    Thanks in advance!!

    Hi,
    I was with the same problem. You have set the your VCC environment.
    Path, Include and Lib.
    In your directory VCC (2003 toolkit), you have a .bat file (vcvars32.bat)
    Run the bat, or copy and past this command in your command prompt.
    In my compilation, I run the code, wihtout -MD and -LF. In your, just:
    cl -Ic:\java\include -Ic:\java\include\win32 HelloWorld.c -FeHelloWorld.dll
    thanks,
    Fabio Pinheiro
    Brasil.

  • Iweb installed on a new computer but i have this error message: Can't open file "~/Library/Application Support/iWeb/Domain.sites2."

    I have just installed ilife on my  new computer from my disk. I have several backups of my webpage from my  old computer. Everything would be great if I could just run the program. When I click the icon for iWeb I get the following message:  Can’t open file “~/Library/Application Support/iWeb/Domain.sites2.”
    Somebody please help! I desperately need to update my website.

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    You can download an already compiled version with this link: iWeb Switch Domain.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Keynote error message: "Can't open file..."

    I use Keynote almost every for work. Recently I got this message "Can’t open file [insert file name]". I thought if I update to Lion and then got Keynote '09 I would fix the problem. Unfortunately it did nothing. Any help would be greatly appreciated.

    Hi Trevor26,
    We had the same problem here. This amazingly simple solution worked: http://www.tuaw.com/2012/08/07/invalid-keynote-document-calm-down-and-try-this-f ix/

  • Getting error Can't open file "~/Library/Application Support/iWeb/Domain.sites2." when trying to open iWeb?

    I recently had to replace my harddrive a few months back and tried to open my iWeb to update my website.  When I click to open it, I get "Can’t open file “~/Library/Application Support/iWeb/Domain.sites2.”  I uploaded iLife again but that didn't seem to help.

    Did you confirm that you have a Domain.sites2 file in your Users/Home/Library/Application Support/iWeb folder?  If so double click on it to try to open with iWeb.  If that doesn't work try the following:
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home()/Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • Can't open files in iCloud

    Just recently, I haven't been able to open files stored in iCloud using either Pages or Numbers. When I try with either application, I get an error message saying, e.g.,  "The file “Wines.pages” couldn’t be opened." What can I do to fix that?

    Possibly you have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 110 features from Pages 5 and added many bugs.
    Peter

  • Can't open file "~/Library/Application Support/iWeb/Domain.sites"

    I was working on iWeb today, doing the usual adding pictures, and gave a few pages some color, and a few pictures here and there.
    I restart my computer, because as usual, I almost have no memory left. When the computer is running again, I opened iWeb, and I get this odd message:
    Can't open file "~/Library/Application Support/iWeb/Domain.sites"
    Why is this here? I didn't do anything weird to trigger such message. The site was working perfectly fine! I tried taking the domain file to the desktop, then opening it once iWeb launches from there, and same message appears. I put it back to its place, and tried putting the iWeb plist on the desktop, and same deal!
    Everything is back in its place, I haven't changed or triggered anything to deserve this. I ran Onyx, full optimization update. I restarted computer, and conducted a full disk permission repairs. Only 1 error found out of another app.
    My computer is healthy, my programs are running fine. What is going on? Does anyone know how I can fix this?

    Hi
    Whaow 3.1GB. I'm sure iWeb has problems with that. I have the same problem with my iWeb. I have about 100 BLOG pages with a lot of pictures. Although iWeb scales the pictures when publishing (good!) it does not scale them when they are stored in the domains file/dir (bad!) So if you have an 8MP camera, this adds up after a while.
    You can open the comains file and try to figure out what causes the trouble. (Right click/CTRL click, open content) sort on size to see if you have some extremely large stuff in there (Movies???) Take them out and try to make them smaller.
    Good luck!!
    Walter

  • Numbers 3.0.1 - Can't open file "Work.numbers"

    Hello, all Community!
    Here's a iWork Numbers file, edited and successful saved yesterday to local folder, named Work.numbers.
    Today this file not opening anymore. Number's says: "Can't open file ..." And just one button "OK".
    In system log here's next lines:
    iTrancemind # tail -F /var/log/system.log | grep Numbers
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Error: -[TSPReader runReferenceCompletions] TSPReader.mm:564 No object unarchived for identifier 3022
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Error: -[TSPReader runReferenceCompletions] TSPReader.mm:564 No object unarchived for identifier 3019
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Error: -[TSPReader runReferenceCompletions] TSPReader.mm:564 No object unarchived for identifier 468721
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Error: -[TSPReader runReferenceCompletions] TSPReader.mm:564 No object unarchived for identifier 3022
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Assertion failure #1: __97-[TSPObjectContext readWithReadCoordinator:finalizeHandlerQueue:rootObject:error:readCompletion:]_block_invoke TSPObjectContext.mm:1129 Could not read document object with error: Error Domain=com.apple.iWork.TSPersistence Code=1 "Произошла ошибка при чтении документа." UserInfo=0x600001069600 {NSLocalizedDescription=Произошла ошибка при чтении документа., TSULocalizedErrorAlertTitle=Произошла ошибка при чтении документа.}
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Assertion failure #2: -[TSADocumentRoot dealloc] TSADocumentRoot.mm:246 Someone neglected to call -willClose on the document before releasing it.
    Dec 30 17:31:23 iTrancemind.local Numbers[2446]: *** Assertion failure #3: -[TSADocumentRoot dealloc] TSADocumentRoot.mm:246 Someone neglected to call -willClose on the document before releasing it.
    What I done to try resolve this problem:
    1. Checked permissions and repaired.
    2. Tried to open file in iCloud web-editor - no result. iCloud says that it can't open this spreadsheet.
    3. Tried to convert file via some online file type converters to xls document (i will not put link here). Converter says that I have wrong file format.
    Also I tried to open file in some other programs. No luck.
    That's all.
    File Work.numbers has been closed correctly and was no errors. Unfortunately, we have no any backup copy of this file anywhere. I know, this is stupid, but question now: How can I repair this document? Is any repair tools for iWork files?
    The file seems like has right structure.
    iTrancemind # ls -la Work.numbers/
    total 4776
    drwxr-xr-x@  8 max  staff      272 30 дек 16:44 .
    drwx------+ 19 max  staff      646 30 дек 17:53 ..
    drwxr-xr-x@  2 max  staff       68 30 дек 00:28 Data
    -rw-rw-rw-@  1 max  staff  2306978 30 дек 00:28 Index.zip
    drwxr-xr-x   5 max  staff      170 30 дек 14:47 Metadata
    -rw-r--r--@  1 max  staff     1690 30 дек 00:31 preview-micro.jpg
    -rw-r--r--@  1 max  staff    13602 30 дек 00:31 preview-web.jpg
    -rw-r--r--@  1 max  staff   112911 30 дек 00:31 preview.jpg
    Unzipping Index.zip is passing without errors. It has many "iwa" files with binnary content and I can't get data from it. But, data in that file is very important for one person.
    Could anybody help me to resolve my problem to restore Numbers document?

    Hi rabg,
    I am using OS X 10.8 on a Mac. This may be different if you are using iOS.
    Does Numbers'09 still exist in your Applications folder? Maybe inside a new folder? Perhaps you could use Numbers'09 to open your documents.
    Regards,
    Ian.

Maybe you are looking for