[CS5 - JS] Open the document as a copy...

Sorry guys,

really but, how can noob question I open a copy of an open document without rebuild his way?

Thank you

Maybe something like this:

var myFile = File('/myFolder/myFile.indd');
app.open(myFile, undefined, OpenOptions.OPEN_COPY);

Hope this is what you are looking for.

--

tomaxxi

http://indisnip.WordPress.com/

Tags: InDesign

Similar Questions

  • Open the Document as a COPY on MAC

    Hello world!

    A very simple question about the different behavior of InDesign on Windows and Mac. On Mac whenever a document is open, it always opens a copy of the document regardless of the selection of the options of the dialog open ORIGINAL or NORMAL. Instead, Windows runs the process as requested.

    In fact, I try to open the InDesign document using the script

    App.Open (file, true, OpenOptions.OPEN_ORIGINAL)


    call. But on Mac, it works as expected.

    Only, I want to know if this is the default behavior on MAC or there is some setting preference to substitute it.

    Thanks in advance.

    Files of older versions still open 'copy' - If you look in the window title, it will say "Yourfilename.indd-[converted]."

    If you open this file, and then save it as your current version, it behaves as expected.

  • Every time I try to open a pdf document that is located on a server of our company (so not on my laptop), the drive still shows error. Cannot open the document. Only in EAC I copy the document to my local PC, I can read without problem. Server is mapped

    Every time I try to open a pdf document that is located on a server or in our company (so not on my laptop), reador always shows error. Cannot open the document. Just in case I have copy the document into my local PV, I can read without problem. Server is mapped in my FileExplorer (Win7). So boring and big bug I think.

    Massage of error: "there was an error opening this document. The network path was not found.

    Hi tobiask53385798,

    Could you please try to disable Protected Mode under ' Edit > preferences > (protection) "and see if that helps.

    Let me know.

    Kind regards

    Ana Maria

  • Open the document in Indesign cs5.5 server

    Hi guys!

    I have a problem when opening documents in CS5.5, I upgraded our Indesign server CS3 CS5.5 and using the indesignserver api for Java.

    I'm under Jboss, J2EE, CORBA, and CS5.5 with 8 instances.

    When I open multiple documents *.indt I get "Please close one or more documents Adobe InDesign Server or books or libraries and try again." It seams that Indesign server is locked

    the file. If I did not load the indesign has no problem. I read the new API and I open the document with:

    com.Adobe.IDs.basics. ApplicationOperations. Open Throws (VariableType , OptOpenOptionsEnum openOption) IdsException

    My code:


    VariableType vtDocument = application.open (VariableTypeUtils.createFile (documentFileName), OptArg.noOpenOptionsEnum ());

    Document document = DocumentHelper.narrow (vtDocument.asObject ());

    I don't really know what are the OptOpenOptionsEnums available and sending in no option, I think that the problem is here, because in CS3

    I don't have to send the OpenOptionsEnum to the open method.

    What kind of OptOpenOptionsEnums is there to choose?

    Anyone get the same problem? solutions?


    I found a solution!

    I looked at the Javascript api for the OptIOpenOptionsEnum and took the number enums and created new OptOptionOptionsEnum in java:

    OptOpenOptionsEnum open_copy = OptArg.makeOpenOptionsEnum (1332757360);

    OptOpenOptionsEnum open_original = OptArg.makeOpenOptionsEnum (1332760343);

    OptOpenOptionsEnum open_default = OptArg.makeOpenOptionsEnum (1147563124);

    And then simply send in one of the OpenOption which fits your needs as the second argument to the open method, as follows:

    VariableType vtDocument = application.open (VariableTypeUtils.createFile (documentFileName), open_default);

  • Can I remove "zero-byte" & "there are no ready application to open the document...". » ?

    As above.

    (1) If a Cache shows "zero-byte" in the list of information, safely remove it?

    (2) in addition, safely remove it ESPECIALLY if it says "Apple" in the name?

    (3) and, if "there is no set application to open the document...". "etc, can I safely delete that also?

    I will soon migrate to another mac and see no need to take things with what I don't need.  I won't delete the above, if I need.  As long as they do not have a hidden need to exist, so I don't have need of them.

    To be honest, when I click on read the information, I see nothing that I understand anyway.

    For 1 and 2 OK to delete it.

    What do you mean for #3? Is this a real file? A zero-byte file?

    What are the names of files?

  • looking for someone to help me with this problem. "It is no set application to open the document"stream_000b.strings ". "How can I get rid of him. pls help

    I get this message when I turn my macbook pro on "there is no set of application to open the document"stream_000b.strings ". "How can I get rid of him. pls help

    Check preferences system/users and groups to see if this item is in your login items. If so, select it and use the sign less to remove.

    If she is not there, see if you can find the file by using one of these programs. If you go Finder/display/show bar path, it will show you where it is located. You can then remove it.

    EasyFind-replacement of Spotlight

    Find any file

  • Open the document when index.xml is missing

    When I try to open some documents on Pages I get an error message that says "the index.xml file required is missing.

    How can I open the document How can I get the index automatically added to all pages documents. What is "index.xml"?

    5.6.2 pages

    OSX10.11.5 - El Capitan

    You have two versions of installed Pages. Right-click on the document and follow the Open: menu (default) (5.6.2) entry Pages.

    Pages v5 documents are not directly compatible with Pages ' 09, and this is the basis of the file index.xml lack of dialogue when you attempt to open a document in Pages ' 09 Pages v5. This problem often arises when Pages ' 09 did not leave voluntarily, and it remains open to intercept double-click documents v5 Pages.

  • my hp 8500 has will travel with the hp scanning program, and save, but I cannot open the document

    Using HP scanning in my HP program, I can scan a document with my HP Officejet Pro 8500 a Premium P/F/s scanning HP program shows me a preview so I know that he has analyzed correctly, and I can save the document as I want to, but when I try to open the saved document, at that time I was save as PDF my PDF program does not open the document. I get a message that can not open the PDF program. Help, please

    Welcome to the horizonjeana forums,

    I understand that you are unable to open your PDF files to see them after they scan however, scan preview works very well. I suggest updating Adobe to see if that helps!

    Open Acrobat or Reader.
    Select help - search for updates. If a new update is available, it installs automatically.
    Once installed, you can restart a computer.
    Then try to print the PDF file.
    http://helpx.Adobe.com/Acrobat/KB/troubleshoot-PDF-printing-Acrobat-Reader.html

    I hope that works, let me know your OS if the problem persists.

    Help to find the operating system that you are running:
    Operating system Windows am I running?
    Mac OS X: how to find which Mac OS X Version is on my computer?

    Happy Friday

  • I can't open the documents and photos from the emails that I receive. The Microsoft Essentials antivirus is the problem?

    I can't open the documents and photos from the emails that I receive. The Microsoft Essentials antivirus is the problem? How can I fix it?

    E-mail address is removed from the privacy *.

    Hello, end of file.     PPS Finally today its opening.

    I have incredimail and use ' openoffice.org because I don't have any power point.

    Thank you for your help.

  • Word cannot open the document protected password, I forgot the password.

    With password protected word document. I created the document. I forgot the password. I don't remember if there was a hint when the password was used. I don't see the trick. How can I open the document?

    Hello

    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features.

    http://support.Microsoft.com/kb/189126

    Hope that answer to the.

  • My Microsoft Word has stopped working. I went to open a document in word, and he said "there is no default application specified to open the document". When I went to look up Word as my default application.

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your coMy Microsoft Word has stopped working. I went to open a document in word, and he said "there is no default application specified to open the document". When I went to look up the Word as my application by default, it is not found. Excel, Powerpoint and Entourage were all there. So, I went to my office... See the word icon and then click on it. When I click on it, a question mark appears above him, and it does not open. It's as if the word has been removed from my computer. I read support a few sites that I Googled, and one said to drag the question mark on the icon and then turn it back on. When I did that, he dragged the icon with it... and when I published it, the icon is now not where. I need help restoring Word, I have no idea where he went! computer
    • What you al

    Hi chrssy07,

    Thanks for visiting the site of the community of Microsoft Windows XP. The question you have posted is related to Microsoft Word and it will be better answered by a Microsoft Office Support Professional.  Please visit it Support technique Microsoft and select your product for support.

    Please let us know if this helped.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • After I send attachments, the recipient cannot open the document

    original title: documents

    Hi, am having problems after I send attachments, the recipient cannot open the document?

    That helps me, but not the recipient. We can only look at a Word, (file .doc) document, if they have the word or Word Viewer installed.

    There are many people who don't use MS Word, but almost everyone has a PDF reader. This tool allows to convert the resume in PDF and who should make it readable to the person you send him. I can't imagine a company that accepts mail resumes would not have a PDF such as Foxit or installed Adobe Reader.

    Online Doc To PDF Converter
    http://www.Doc2PDF.NET/

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Cannot open my encrypted Documents? -Cannot open the document: user does not have access privileges

    I am using Window7 and I got some of my encrypted files by opening the properties of the file and selecting the encryption option. I have not had any problems so far, but all of a sudden I can't open my encrypted files. There is an error message indicating "cannot open the document: user does not have access privileges. But I have no other user account on my computer and I am logged in with my administrator profile. I turned off my computer, rebooted and tried various methods, but when I open the file it shows the same message as above. Help, please?

    Hello

    Please follow the steps from the link below.

    Appropriating a file or a folder

    http://TechNet.Microsoft.com/en-us/library/cc753659.aspx

    Also check out the links below.

    Encrypt or decrypt a file or folder

    http://Windows.Microsoft.com/en-us/Windows7/encrypt-or-decrypt-a-folder-or-file

    Recover encrypted files or folders

    http://Windows.Microsoft.com/en-us/Windows7/recover-encrypted-files-or-folders

    Import or export certificates and private keys

    http://Windows.Microsoft.com/en-us/Windows7/import-or-export-certificates-and-private-keys

  • I installed the acrobat software on my laptop but I couldn't use it. I couldn't open the document or even the athlete himself.

    I installed the acrobat software on my laptop but I couldn't use it. I couldn't open the document or even the athlete himself.

    It's like "my car will not start! A lot of missing information.

    You must download the installation program. Once downloaded, you must run the Setup program to install the software.

    Is an employer provided your computer?

    If Yes, are you allowed to install the software?

    Were there any messages during the "installation"?

    We need the correct messages and error codes.

  • Every time when you open the document in Adobe reader, it will open 'tools' (export - life - pdf, pdf, pdf - luo - etc.). Every time I have to manually turn this off. How I can inhibit this tool? I don't really want to, and he stole my display space. How

    Every time when you open the document in Adobe reader, it will open 'tools' (export - life - pdf, pdf, pdf - luo - etc.). Every time I have to manually turn this off. How I can inhibit this tool? I don't really want to, and he stole my display space. How to inhibit?

    I have little display and allways this "life pdf", 'luo pdf', 'pdf-tiedostoa muokkaa', 'commentary', etc. appear. How I can inhibit this junktool?

    Go in Edition > Preferences > Documents and uncheck "Open tools for each document pane.

Maybe you are looking for

  • How to unlock ip

    How to support me long time aredy why cam not get mail unlock iphone

  • I can't connect to my hotmail because of third-party cookies disabled account

    I changed my settings from cookie due to a bank site that I use to make an e-depot. To do this, I had to enable 3rd party cookies. After I did it, I can access is no longer my hotmail (outlook.com) e-mail account. I can't log into my account on Firef

  • Microsoft Laser 5000 mouse

    I just bought a Vista PC and find now that my mouse Laser will not parade in some applications, MS Access:-don't parade not in the tables at all, some web pages with Java not will allow me to scroll out but can scroll (zoom) in, it still works very w

  • Cisco ACS 3.2 compatibility

    We have a few servers ACS 3.2 old, legacy and soon-to-be-replaced-with-5.1.  One of them had some serious problems and must be rebuilt. The current operating system is Win2k.  We were going to upgrade the OS to 2003 while he was down.  Are there prob

  • Remembering location in a playlist

    I just upgraded from XP to Windows 7.  XP, Windows Media Player (WMP) to remember where I was in a playlist when I finished by WMP, the next time that I started WMP, just by clicking on the play button.  I could then click on "edit playlist" in the l