InDesign won't close files

Hallo everybody,
I'm new her at InDesign-Scripting-Forum, but I have a great problem, and hope there is somebody out who can help me:
My problem is that InDesign won't close files which have been opened.
Just a little Javascript (I have reduced it to the minimum):
var myFile="1.indd";
// Open the file
var myDoc=app.open(File(myFile));
// Close the file
myDoc.close(SaveOptions.no);
if(app.documents.length > 0)
        alert("Still " + app.documents.length + " files opened");
If this script starts from InDesign Javascript Panel, there are no problems or errors.
InDesign will open the file (1.indd), and closes the file, and no alert will appear.
But.... if the Javascript ist copied to the InDesign "startup script" folder, so that InDesign should
run this script on InDesign Startup,the alert will appear.
If you are running the script in a loop, just like working with 10 files of a current directory,
InDesign will show alert of 10 opened files at the end.
So.. at the end of the script, I want to move the (opened and closed) file to another directory.
But when InDesign "says" the file is opened, I cannot move or rename the file.
(It is only possible when running the script manually by the Javascript Panel).
Can anybody help me, so that I can close the file, or that InDesign will close the file
when running as a "startup-script"?
Thanks very much.
Martin.

I have 8 MB of RAM. I restarted all the software, but not my computer.
It is in the left column that I am having the problem.
There was a previous discussion thread where a user on Mountain Lion was having the same issue, but it wasn't resolved in that discussion thread either.

Similar Messages

  • Mini Bridge in CS6 InDesign won't sort files

    I am running CS6 on Snow Leopard.
    When I open the mini bridge panel in InDesign I can't sort any files in the Nav Pod. It has no effect on the file sort.
    I have updated the CS software and reset my bridge preferences. Do you have any other suggestions?
    Bridge works fine.

    I have 8 MB of RAM. I restarted all the software, but not my computer.
    It is in the left column that I am having the problem.
    There was a previous discussion thread where a user on Mountain Lion was having the same issue, but it wasn't resolved in that discussion thread either.

  • InDesign won't open file - says I'm not signed in to Adobe C Cloud, but I am!

    Anyone know how to fix this?
    When I try to open the file, it tells me I am not signed into creative cloud - which I definitely am.  And it tells me I have to go to 'help' then sign in, then restart adobe indesign.
    I am already signed into adobe creative cloud however. 
    I have done this several times - completely signing out of everything, restarting computer, signing back into creative cloud, etc,... no solution.
    Can source files be 'locked' or only opened by their original Adobe ID creator?  I was sent these files by a good designer.  Did he lock them by accident?
    I don't even know if that is possible.  He is now on a month long jungle adventure.
    Please help - I don't want to spend anymore hours trying to get these files open.
    Thank you community!

    You are no longer signed into your Creative Cloud applications
    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • CS3 InDesign won't open a CS2 In Design .INX file

    CS3 InDesign won't open a CS2 In Design .INX file.
    I sent my graphic designer an .INX file created on CS2
    and he got an error message and said he could not open.
    He said it is not possible.
    He lost the job - because he didn't want to investigate further.
    I can't imagine ADOBE leaving this problem unsolved!
    What do I do??

    I don't recall that. I can visualise the situation, but then I would expect it to create the same lost feature problems as encountered in opening with an earlier version. So there would still be a risk that the file would lose something in translation.
    And then again, if a CS2 plug-in has been used and is required to open the file, I would expect the translation into XML to ignore anything that can't be translated, and for the depleted file still to open in CS3.
    k

  • Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools

    Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools. Like I click to open a file from the finder, and Indesign makes that temporary file in the finder, but won't display the pages. At other times I can have the pages displayed but I can't open the tools such as the colour swatches or the paragraphy styles. This all happens at random, although I suspect it is more likely to happen if I have been working in some other program such as Typestyler or Aperture, and come back to Indesign. Kind of like Indesign gets snooty at me working in another program.
    I've done the thing of dicing the preferences, but so far the only workaround that has worked so far is quitting and restarting the program. I don't remember this happening so much until recently, in other words the problem seems to be getting more frequent.
    But I am wondering if this has happened with anyone else and if there are any other suggestions for avoiding it.
    Back in the good old days you would reinstall PageMaker and that would settle things for a while. But now I don't know if a program like Indesign CS4 actually gets corrupted and if it does I don't know what to do. Does the program get corrupted? And should you reinstall a fresh copy? If it's a good idea to reinstall the program how do you do that? Is it possible to download a fresh copy? And if I do, what happens when the fresh copy phones home? I've tangled with the Adobe Microsoft corporation before when Indesign phoned home and got a crossed line.

    Other things to try:
    Examine your specific version of Optima by going to Type menu > Find Font, clicking on the Optima font and choosing More Info (I think) and find the specific version number. See if you can uninstall the font and reinstall another Optima font with a different, preferably newer version number. There has (historically) been a bad version of Optima floating around for years. Maybe you have it.
    Use a free utility like FontNuke or FontFinagler to get your Mac OS to reset its font plists. Sometimes that makes the OS feel better.
    Use the built-in Disk Utility to repair file permissions. You never know.
    Export your old document out to IDML and reopen that resulting idml file back into a new freshly written INDD file. This might remove internal database corruptions.
    All these are chicken-soup things to try and they might be good for you.
    Best,
    Mike Witherell in Florida

  • InDesign won't open at all and no error report is given, I can't even open up my existing files.  Any suggestions?

    InDesign won't open at all and no error report is given, I can't even open up my existing files.  Any suggestions?

    i have the 30 day trial because I'm doing a project for a college class. Im running the most updated version of windows

  • InDesign CS6 Linked Word file issue

    Hi, I have a number of 100+ page InDesign files which have a large (linked) Word file that threads though multiple text boxes throughout all of the document pages.
    The files need to be shared amongst multiple computers within our studio. This setup was used with InDesign CS5.5 last year and worked fine, it was still working fine with CS5.5 this year but we needed to upgrade to CS6.
    We have the trial version of CS6 installed throughout the studio now however we have been having big problems just opening the InDesign files up in CS6. They predominantly seemed to only open up 95% of the way and then hang (spinning wheel) and when (on occasion) we did get 1 open, it was clearly struggling and normally crashed. Can't get most open at all any more.
    I have tried opening files on different computers (Mac & PC), tried changing format of linked Word file, the only thing that seemed to ever work was breaking the link to the Word file
    (from within CS6) and then saving without Word file linked. This is not ideal for our workflow but even if we wanted to do this to all files, I am unable to even get in to some of them to unlink them now (as they are now all saved as CS6 files which won't open). Moving Word doc from location (so that InDesign can't pick it up) also doesn't work.
    I have tried deleting InDesign preferences & all recovery files several times, still no joy. It may be related to being on the trial version (seeing as 5.5 still seems fine) but I am hesitant to upgrade everything if it is not going to work. Does anyone have any ideas??

    Thanks Peter (and Bob), thought last solution was going to be a winner but still hangs at same point (on several files) unfortunately.
    Strangely, an older version of one of the files (a CS6 one that is linked to the same Word file) just opened, which suggests to me that the issue may not actually be wholly to do with it linking to the Word file.
    We just setup a brand new PC with just CS6 trial & Office on it, copied InDesign files to desktop, turned off the auto link boxes in preferences and still no luck. Getting close to giving up stage I think, just can't figure out the cause.

  • Hidden tab won't close, constantly loading.

    There's a tab on my Firefox that doesn't show on the window. It seems to be a tab that was previously open, that I thought I'd closed. While it doesn't show on the window, the tab preview when I mouse over it in the windows taskbar shows that the tab is still open. When I click the x in the preview, the tab won't close. Also on mousing over the tab, it shows that the page is blank, but it seems as though it is loading something. It may or may not be causing my computer to run slower than usual, but I can't be sure. Either way, it's annoying and the only way I can get rid of it is by restarting my browser, but even then after using the browser for a while another tab like that shows up and I run the same problem. How do I close a tab like this?
    Extra notes:
    The tab is not open from the start. It is not a homepage, as my homepage is set to about:blank, and opening a homepage upon starting my browser is disabled.
    The tab is not visible on the Firefox window. It is only visible on the windows preview when mousing over the Firefox application in the windows taskbar.

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with preferences and rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default value.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • Trying to install Cs2 but old indesign won't uninstall or repair?

    Trying to install the "new" posted on adobe, Cs2. Win vista for business. 1st step- add/remove programs. old indesign won't uninstall or repair! Get " was interrupted - try again" "can't find xxxxx file in dat 1 cabinet" ???
    Searched forums for hours now! Help please!

    Just went back through my start menu, and it CS, not CS2 that would not install under any condition on Windows 7. CS2 is running in the Windows XP mode Virtual Machine. XP mode is a free feature of Windows 7 Pro and Ultimate, and does not install on Vista.
    That said, you can download and install Windows Virtual PC (http://www.microsoft.com/windows/virtual-pc/support/virtual-pc-2007.aspx) which is a virtualization environment, and you can install Windows XP as a virtual machine from a set of XP disks.
    There are people (and you seem to be one) who have successfully, more or less, gotten CS2 to install on Vista. I never ran Vista, so I'm shooting in the dark here a bit, but I would make the following recommendations for trying to get the programs installed:
    First, run MSconfig and turn off all the unnecessary startup programs like Anti-virus and spyware scanners, third party firewalls, instant messengers, iTunes, browser helpers and toolbars, etc, and also go to the Services tab, hide all Microsoft services, and you can probably turn off just about everything that is left (lots of antivirus stuff runs as a service, for example). Re-boot into an adminsitrator account, cancel MSConfig when it reopens, and find the downloaded installer. If you have not already run the .exe file to extract the installer, do that next.
    Once the installer is extracted, find the Setup.exe file, and right click it. In Windows 7 I have an entry to Troubleshoot Compatibility, and hopefully you have something similar. Choosing that gives me two options, Use Recommended Settings, which might work, but there's no indication of what they might be, or Troubleshoot Program. Choosing that should bring up another dialog where hopefully you can see a checkbox that says the program used to work in an earlier version, which you should check, and clear any others, then press next, which should bring up a list of previous versions where you can select Windows XP.
    From there it should run the setup program in XP comaptibility mode, and once installed you should be able to set the program itself to also run in XP compatibility mode.
    When the installation is complete you can run MSConfig again and click the Normal Startup radio button and reboot.

  • My elements 11 won't open files, can someone help?

    I have photoshop elements 11. It was working and then I had to close the program and go do something else. When I turned my computer back on I couldn't get elements to open any of my files. It won't open Jpg or Raw. I've tried restarting my computer mulitple times and It hasn't changed. It still won't open files. It will freeze and then close out of the program. Can someone please help me? I just recently got this program for christmas and i'm really wanting it to work.

    Please try this:
    Solution 1:
    1) Close Elements.
    2) Hit on PSE desktop icon to launch welcome screen
    3) Click Alt+Ctrl+Shift on your keyboad and with all three keys pressed click Photo editor. Do not release when you will see a dialog box asking you to delete the PSE preferences.
    4) Hit ok and check now.
    Solution 2:
    1) Launch Editor.
    2) Hit File->open and choose any small file of size < 1 MB and see if it opens fine
    3) Try file->open as and choose any file and choose camera raw from file format and when shown ACR dialog box hit ok and will open file in editor.
    I hope you are not importing fron any network location which might cause the process to slow or freeze depending on network settings and secutiry issues.
    Let me know your comments,
    thanks,
    Garry

  • Outlook won't close with iTunes 10 Addin

    Hey Guy's
    since I updated to iTunes 10 (on two pc's) my Outlook 2007 won't close completely. There is always a grey Outlook icon in the statusbar and I have to close it with the taskmanager. If I deactivate the Outlook Change Notifier (an iTunes Addin) my Outlook will work fine. Is there anybody else with this problem? Any solution? I'm using Windows 7 64bit.

    I'm having a similar problem - since I updated to iTunes 10, my Outlook 2007 just isn't working properly. When I close Outlook, it doesn't compeltely close. Like you, I have the grey Outlook icon in the status bar and have to close it (which probably isn't doing wonders for the .pst file) Disabling the Change Notifier doesn't seem to make any difference. Also when I actually have Outlook open, my messages are not being sent or received correctly - it seems to just sit there saying receiving message X of X and doesn't do anything else.

  • Itunes won't close

    I got the latest iTunes on windows XP 64. I can open it up but when I go to close it. It won't close! I just keep pressing the exit button it won't close. Not even Alt+F4 works. Or File>Exit.

    I have the same problem intermittently (though I have XP, not XP 64). 
    I can tell when the program is not going to close properly because iTunes DJ stops updating properly...it'll keep playing, but the counter will still be stuck on a previous song, and once I force-quit through Task Manager, none of the "last played" times from that song on are saved.  Happens at least once a day since I upgraded from 9 to 10.5.
    When iTunes DJ is updating properly, though, it closes without a hitch.

  • Mail won't close after security update

    I just installed the recent security update (running 10.4.8) and now Mail won't close on either my Dual g% tower or on my iBook. In fact, both computers were unable to reboot after the install because the mail program needed to be force quit.
    This was never a problem prior to the install of the security update.
    Anyone have any ideas?
    Thanks!

    Problems arising right after installing a system update are usually the result of the problem already being there, or not having installed the update properly, or ignoring Apple’s "Important: Please read before installing" warnings, etc., rather than being caused by the update itself. In order to ensure that the update is installed properly, proceed as follows.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, reinstall the update that appears to not have been installed properly.
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.
    The above won’t solve the problem, but will allow us to at least troubleshoot it properly. Post back with your observations when done.
    How many accounts do you have and what type are they (POP, IMAP, .Mac)?
    In Mail, open Window > Activity Viewer. What do you see there when Mail refuses to quit? Actually, you may be able to avoid having to force quit Mail by canceling whatever it’s doing (by clicking on the red stop icon of the activity).
    Do you have any Mail plug-ins or any system utilities that could interfere with Mail? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    ~/Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/Mail/Bundles/
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

  • Indesign won't let me save, save as or undo!

    Hi there.
    This started when I was working on a particular file and so I thought that one was corrupt but it now seems to be happening for every file I work on. It's a crisis to be honest.
    Indesign won't allow me to Undo, Save or even Save As. I am able to export but that's about it. All the other options are greyed out.e help??
    Can anyon

    If your using a eternal hard drive that only has a NTFS read, then you might want to save it to the computer but I'm not sure if that will work. But heres a link so that you could change the read only permissions.How can you change read only permissions on an external hard drive on a Mac?

  • When I try to close my tabs, they won't close. Am I doing something wrong?

    I try to click on the little x to the right of the website name on the tab, but for some reason it won't close. I go to file, close tab and it still won't close. Help?

    Macbook Pro
    System Preference > Trackpad > Point and Click
    At the bottom adjust the Tracking Speed slider.
    Best.

Maybe you are looking for