Error opening file, then opens

Frequently, when I click on a file to open it I get the error message below.  It may be from any app - CAD, iWorks, OpenOffice, iPhoto.  Sometimes I am inside the app, such as Keynote  and use Open Recent Files, such as the example in the picture.
When I click on the file the second time, it usually opens.  Sometimes the app opens, but not the file (blank screen).  Another Open command then works.  This has happend on the original motherboard and a brand new replacement board (same HD).

The reason I assumed, or asked, whether it was Windows-only is because of your use of the backslash character as the folder delimiter. To make the script cross-platform try the following:
on mouseUp me
  acro = baFindApp("pdf")
  if ( acro = EMPTY ) then
    alert "This program was unable to find a suitable program on your system to open a PDF document. It will open www.adobe.com, where you can download a free viewer"
    goToNetPage "http://www.adobe.com"
  else
    mPath = _movie.path
    tFile = mPath & "Resource" & mPath.char[length(mPath)] & me.pPDF
    if baFileExists(tFile) then
      OK = baOpenFile(tFile, "normal")
      if ( OK < 32 ) then
        -- see docs for numbers and their meaning
        alert "Error opening file:" && OK
      end if
    else
      alert "File not found:" &RETURN& tFile
    end if
  end if
end

Similar Messages

  • Rename the opening file & then open it

    Hi,
    I am looking for a script which can -
    1. On opening a file rename it. For e.g. Rename "FileName1.indd" to "FileName1-in-use.indd"
    2. Then open the file "FileName1-in-use.indd"
    3. Then on closing rename it back to "Filename1.indd"
    Is it possible?
    Regards

    Hi there
    I am not sure if this meets your needs. What about «race conditions»?
    Give this a try.
    Kind regards
    Daniel (from Switzerland)
    main();
    exit();
    function main() {
        var myDoc = File.openDialog ("InDesign-File", fileMaskINDD);
        if (myDoc != null) {
            // get the actual filename
            myFileName = myDoc.name.substr(0, myDoc.name.indexOf("."));
            myNewFileName= myFileName.replace(myFileName, myFileName+"-in-use.indd");
            // rename the actual doc
            myDoc.rename(myNewFileName);
            // open the InDesign document
            tempDoc = app.open(myDoc);
            // do your stuff here
            do_your_stuff_here(tempDoc);
            // save and close
            tempDoc.save();
            tempDoc.close();
            // rename the document again
            myDoc.rename(myFileName+ ".indd");
            alert("I did my job, what about yours?");
    function do_your_stuff_here(myDoc) {
        alert("Do your stuff here");
        To filter the files and only show InDesign files or directories
    function fileMaskINDD(myFile) {
      if (myFile.constructor.name == "Folder") { return true }
      if (myFile.name.slice(-5) == ".indd") { return true }
      return false;

  • Stand alone application(.exe) : Error 7 occurred at Open File+.vi: Open File (error: L'erreur 7 s'est produite à : Open File+.vi:Open File)

    Dear group members - as i am trying to build a stand alone application , i ran into this problem : "Error 7 occurred at Open File+.vi: Open File" (L'erreur 7 s'est produite à : Open File+.vipen File)
    when i select continue i get this error message: "Error 7 occurred at open/create/replace file in Write spreadsheet string.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi""   (  "L'erreur 7 s'est produite à : Ouvrir/Créer/Remplacer un fichier dans Write Spreadsheet String.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi" )
    i didn't get what's the problem with this vi, i have no problem running my VIs  
    Can any one here help me out ? 
    here is the project : 
     

    Neither can I.  When I opened your Project, there were no VIs present on the top level.  The Build Spec refers to a Mainv12, which I finally found buried in the folder Interface 2, but when I tried to open it, there were multiple missing VIs.  I notice you have an Interface 2.llb -- is this the same as the VIs in the Interface 2 folder?  If so, try getting rid of the .llb (at least for the purpose of sharing your code in the Forum) and re-post your code.  As it stands, when I open your Project, virtually every entry is marked "Warning: has been deleted, etc."  The fact that so much is "missing" means that I can't easily see/understand MainV12, hence can't guess where the File Not Found error is arising.  Sorry.
    Bob Schor

  • Unable to prepare project for publishing the project could not be prepared for publishing because an error occurred. (file already open with write permission)

    Get this message when I try to publish my iMovie project.  "unable to prepare project for publishing the project could not be prepared for publishing because an error occurred. (file already open with write permission)"

    See the discussion here:
    https://discussions.apple.com/message/16784714#16784714

  • Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Using Adobe 11 reader, now comes up with an error, once file is opened. 'Invalid plugin detected, Adobe reader will quit. Closes the program so cannot view PDF files. Running windows 7. I have uninstalled and re-installed Adobe still the same. HELP

    Sounds like something has been added into the Reader folder. I would recommend uninstalling, running http://labs.adobe.com/downloads/acrobatcleaner.html, removing any left over parts of the Reader folder (this might have been the problem), reboot, and reinstall. Hopefully that solves the problem. For future question about Reader, you should consider asking in the Reader forum, this is not it.

  • In CS5, Win7...go to File, then Open...do you see .PSD thumbnails with preview images?

    In CS5, Win7...go to File, then Open...do you see .PSD thumbnails with preview images?
    In all other versions of Photoshop, I can see a preview of the image, even .psd files, but with CS5 now, I just see the PSD icons...this again, is when you go to File, then Open...  Anyone else see this?  In Elements 9, I see the preview thumbnail icon, not generic, same with CS3 and Elements 7, but not with CS5? 

    Well, I was thinking if others tried on their Win7 system, they could let me know if they get the same result or different...so by comparison I could see if I had an issue with my software, such as if it were standard...  However, I did figure it out...  It's a 32-bit vs. 64-bit difference.  Elements 9 is a 32-bit software, and so is CS5 32-bit of course....so both of those softwares show .psd thumbnails in the File, Open view...but the 64-bit does not...in Win7 64-bit...in case anyone else is wondering...  

  • I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like t

    I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like this to export my lightroom images to edit in photoshop as it has always been able to do for me.  What fix do you recommend?

    Hi Ashley Clavette,
    The Initial view setting works perfectly when the file is opened in Acrobat after setting the desired Initial View.
    When you upload the file onto Wordpress, and view it on that website in the browser...it might be using a different pdf handler program which might be causing this issue ( it would be helpful, if you could provide the screenshot) , however when you download the pdf again from wordpress server...and open in Acrobat/Reader...then what  exactly happens ?  Does the pdf opens in the desired Initial View setting?
    Rahul

  • TS1702 Re: Notes App. I opened Notes, then opened a particular note. It opened briefly, and then suddenly several notes, from the past two weeks, just disappeared. Is this a known glitch, and is there any way to retrieve or restore these lost notes?

    Re: Notes App. I opened Notes, then opened a particular note. It opened briefly, and then suddenly several notes, from the past two weeks, just disappeared. Is this a known glitch, and is there any way to retrieve or restore these lost notes?

    The other day i deleted my email accounts off of my ipod and only reloaded a few of them. today i looked at my notes to look at a project i had typed on my notes because i didnt have paper and pen around to write it and i didnt want to froget. I reloaded the rest of my emails in hope that everything would reappear but sadly only some of them from 2010 loaded. Recently i had update some of the files and they were like they were when i first created them there were alos ones that i had deleted long ago. There are other notes i had made that were really important to me to andi wouldn't be able to remember every single one. Help Please!

  • How to make Applescript open AI then open file then run ExtendScript then close?

    Here's the sample Applescript code I came up with using the scripting guide/reference for CS6 and also doing some online searches:
    tell application "Adobe Illustrator"
        activate
        delay 10
        set pfilepath to "/Users/username/Documents/Temp/someFile.ai"
        set pfile to POSIX file pfilepath
        open pfile as alias without options
        delay 10
        do javascript "#include '/Users/username/Documents/Temp/someScript.jsx'"
        delay 1
        quit
    end tell
    I just want to open the app (sample here for AI but also nice to do same for Photoshop), open a file, then run ExtendScript file against it, then close after processing. With this sample script, all that works is the app launches. No file opened, no script ran, app doesn't close at end. I see no errors pop up nor anything show up in command prompt.
    The sample ExtendScript just triggers an alert popup message for testing
    Also to note, the Applescript snippet is executed from Python but I believe where/how it's executed shouldn't matter (except maybe where the error messages might show up). Although in worse case, I'll debug/run through the AppleScript editor.
    Any tips on what's wrong here? Or does it look technically correct?

    No, I don't have specific documentation, but you can put together such for Python from bits & pieces here & there. And yes, I made it cross-platform to anticipate Adobe users on both Mac & PC, for which there currently are, though for what we're doing skews towards Windows for now.
    For the COM API, follow the VBScript reference and code samples. Just convert the method calls to Python COM. There will be slight syntax differences sometimes (e.g. add "()" to method call for VBScritp subroutines that don't need them, etc.). The scripting guide link below should have code samples for VBScript.
    http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator% 20Scripting%20Reference%20-%20…
    http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator% 20Scripting%20Guide.pdf
    For example of Python COM, you can search online, or look at AutoItDriverServer/server.py at master · daluu/AutoItDriverServer · GitHub, which may be bit much/complex for you? For Python COM, you either need ActivePython or regular Python plus Python for Windows Extensions (e.g. pywin32).
    For Applescript and Python, this post might be useful: osx - Calling AppleScript from Python without using osascript or appscript? - Stack Overflow
    for the rest of the the cross-platform support, it's just generic python to parse command line arguments, etc. You may want to query what platform the script is running under using some standard Python modules (os, system). An example can be found in AutoPyDriverServer/server.py at master · daluu/AutoPyDriverServer · GitHub
    Hope that helps.

  • In the Menu Bar, under File, then Open File, how do I change the selections?

    I have Firefox 11.0 and Windows 5.1 (2007). In Firefox, I click on FILE in the Menu Bar, then OPEN FILE (Ctrl+O), and I see a small box; it says Look in: Mozilla Firefox. Below is a selection of files within the folder Mozilla Firefox. To the left is a column of four other folders: Downloads, My Computer, John, Lori. The last two are obviously two of the folders I've created on my computer, using Windows. But I don't know how they got here! I have no recollection of customizing this particular Firefox menu option by adding those folders, nor can I figure out what to do in order to further customize it. Can anyone tell me: (1) how can I change the original "Look in" option so that it opens with something other than "Mozilla Firefox" (which, after all, I never need to access)? (2) how can I add/delete/change the choices offered in the column on the left, so that different folders are listed? (Currently, if I want to access my Windows folders/files, I first have to minimize the Firefox screen; this seems to me a nice shortcut, but I'd like it to include shortcuts to the folders I use the most, which does not include "Mozilla Firefox"!) (3) Is this actually a Firefox feature, or is it a Windows feature? It does look like Windows (Windows style, Windows folders), but it appears only in the Firefox Menu Bar, along with Bookmarks, Tools, etc. Thanks!

    This sounds like a Windows thing ( You can post a photo and I can tell you for certain). Those folders are Windows system created folders that your computer has had since it was installed, all Firefox does is use the Windows File picker, which is what you see when you open that window. So, to customize you'd have to do that from Windows Explorer (not Firefox).
    The Window should however remember what folder you were in last.

  • Error 6 occured at open file+.vi:open file

    Hi
    Iam using lab view 7.1 licensed version.But when i create a stand alone application  and install it in a 4gb touchpanel(ADVANTECH TPC 660G B1-E).iTS WORKING PERFECTLY FOR SOME TIME.But after some time i get an error (error 6 occured at open file+.vipen file).Iam attaching the snapshot
    plz help me out
    ekanth
    Attachments:
    untitled.JPG ‏55 KB

    This indicates a problem with your code. Since you haven't shown us any code we can' tell you what the problem is. Are you trying to open a file that's open by another application? Are you trying to open a file that's on a network, and the network is temporarily unavailable? You should know what file it's trying to open - after all, you wrote the app, right?

  • Error 1 is to open file vi:. Openfile occurred - Fehler 1 ist bei Open File .vi:Open File aufgetreten

    Hi there,
    I'm using Labview 7.1 and Windows 7.
    I built a VI and it ran perfectly yesterday. Today when I tried to run it, the following message appeared:
    Fehler 1 ist bei Open File+.vipen File aufgetreten
    Mögliche Gründe:
    LabVIEW:  Ein Ausgabeparameter ist ungültig.
    NI-488:  Befehl erfordert, daß der GPIB-Regler der aktive Regler ist.
    Translation (google translator):
    Error 1 is to open file vi:. Openfile occurred
    Possible reasons for this:
    LabVIEW: An input parameter is invalid.
    NI 488: command requires that the GPIB controller is the active controller.
    In the attachment I am sending the file. The file is very simple. I'm just importing some data from excel.
    Regards
    Solved!
    Go to Solution.
    Attachments:
    Error.jpg ‏49 KB

    Cottbus wrote:
    I have the VI in a loop, because I want to make operations with a specific cell from Excel in each iteration. First loop, use the first cell, second loop the second one and so on. Maybe there is another way to do that, but that is how I figured it ou. If you have any suggestions to make it simpler I appreciate.
    First of all, you don't have an "excel" file, which is a proprietary format. You have a delimited plain text table with semicolons separating columns and linefeeds separating rows.
    You have only one loop. You are probably talking about first iteration, second iteration etc.
    Your loop spins so fast that you will only see the last row after the VI has completed. Use a small wait.
    All you need is the following code (looks slightly different, because it is LabVIEW 2010). This will display all rows in sequence for however many rows you have. If you only want to display the first 5 rows, you can wire a 5 constant to the N of the FOR loop.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ReadRows.png ‏3 KB

  • Error 7 occurred at Open File+.vi:Open File,NI-488: Nonexistent GPIB interface

    I did some clean-up of my computer and have been having issues ever since.
    I'm not the one that did the programming; the person who did is long gone.
    The VI loads fine but when I hit run I get:
    Error 7 occurred at Open File+.vipen File
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    =========================
    NI-488:  Nonexistent GPIB interface.
    All the necessary VIs are available and I've tried changing all the file calls in the VIs to the new locations but the error is the same.
    Any suggestions?
    Thanks.

    Error 7 is a generic file not found.  If it is happening after cleaning up files, more than likely you moved some subVIs called in a main VI to a new location on your computer.  If all the VIs are in a project, a possible solution would be to remove the vis in the project directory and add them back to the project as they may be pointing to a previous location where the files were once stored.  Perhaps this is what Anon123123123 meant by "linking".  Hope this helps.
    Regards,
    Isaac S.
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • Any idea why my saved documents are unable to be read? "convert file from" box pops up, applications are listed to use but if any are chosen, the file then opens but is in symbols

    When attempting to open saved documents for viewing a box pops up "convert file from" with applications that can be chosen from to use. When any of the options are chosen the document then opens but is in symbols and is unreadable. This is happening with all saved documents.  Can you offer any help with this?

    Hi,
    If you don't find any clue, you can send your file to me (guillaume.rouyreATgcosiDOTcom, replace cap) so I can give a try.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • 4.0 EA2 - Previously Open Files Not Opening on Start

    Just started using 4.0 EA2 from 4.0 EA1.  Thanks!  Noticed is much faster than EA1!
    I have noticed that previously opened files no longer are being opened when starting SQLDeveloper.  Prior to EA2, any files that were open when SQLDeveloper is closed were opened then next time SQLDeveloper started.  Is there a setting I am missing that governs this behavior?
    Thanks!

    True but I think that the disk image mounter is not working so I'm not getting the option to drag anything anywhere. How do I repair the disk image mounter?
    Just tried after reading on a www forum;
    Run /Applications/Utilities/Disk Utility.
    Click on "Macintosh HD� in the left column and then press the "Repair Disk Permissions� button. I don't think this step was part of the solution to my problem.
    Delete the file called /System/Library/Extension.kextcache
    Delete the folder called /System/Library/Caches/com.apple.kernalcaches/
    Restart
    But the deleted files just re apear after start up and the issue continues.
    There is no issue with the hard drive, also just booted to Disk Utility again and done a volume repair, no problems there. Grrrrrrrrrrr

Maybe you are looking for

  • Banco de dados / manipular dados

     Olá amigos, sou novo no LABView, mas venho estudando e obtendo alguns resultados bons. Bem, como um projeto educacional, resolvi partir para um desafio que esta fritando meus miolos. A proposta inicial era um sistema de controle e acesso a maquinas,

  • How to setup the DirectAccess on windows server 2012 r2 essentials with 2 nics

    I have a server with two network cards (the first card NIC called "Internet" and the second NIC called "Local Network") with static IP both. The computer has "DomainName.local" I still have not connected to the internet with my company domain-name fr

  • How to call TRFC from diff SAP server?

    hi all,         i have created one rfc enabled FM on a SAP server, and i am calling that FM from different SAP server using TRFC. I am calling using this statement, CALL FUNCTION 'ZMKV_RFC' IN BACKGROUND TASK   DESTINATION 'zmkv' But it doesnt show m

  • ORACLE APPS TECHINICAL TRAINING ??

    Hello Freinds... Can anyOne tell me about any institute or company offering training on ORACLE APPS TECHNICAL in Mumbai/Pune ?? and lemme is there ny PREREQUISITE for doing this course ?? right now im working on ORacle forms and reports since last tw

  • Time Machine Failing Over and Over

    So I am backing up my EX HD with Time Machine for the first time and it keep failing. It stops between 3 gb and about 20gb (I have 180 total). Keeps giving the error "The backup was not performed because an error occurred while copying files to the b