File close using the prompt script message

Hi Experts,

I would like to end my active docment wirthout forcefully save it.

When I close it manually then it prompts a message:

Save the changes to the Adobe InDesign "Abc.indd" document before closing?

Don't Save                                                                    Cancel          Save

I push button Don't Save and close file.

I want to make this process using script.

I use

indesign #target

var myDocument = app.activeDocument;

myDocument.close (1852776480);

where 1852776480 corresponds to ' save the Option-No ' value.

But he did not close my active document.

How do I close it?

Thank you.

Hi Joy,.

I hope it's your expectations:

app.activeDocument.close(SaveOptions.no)

Thank you

Beginner_X

Tags: InDesign

Similar Questions

  • Using the calculation script to write the value of the variable Substitution in a file

    Hello

    I am trying to use the calculation script to write the value of Substitution variable in a text file.
    I use the dataexport command. But it is not able to write values in the text file.

    Any help is appreciated.

    Thank you.

    MaxL would display variable. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispvarb.htm

    BTW, I mostly prefer Esscmd MaxL. I think that makes me a heretic, but I don't understand why I don't want to type more rather than less to get the same result.

    Running a calc:
    Esscmd - RUNCALC 2 calcname
    MaxL - run calculation Sample.Basic.calcname;

    To be fair, Esscmd requires a dbname appname SELECT before the RUNACALC, but it is always less striking.

    However, time is running, so I don't have too. And of course, MaxL now has many things that Esscmd doesn't like Esscmd is obsolete.

    I always use Esscmd to run scripts of calc I can actually watch the output in real time as opposed to MaxL that exports the console at the end of execution.

    Kind regards

    Cameron Lackpour

  • I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file.

    I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file. How can I unlock it please?

    You have Outlook open when you save? You need to close.

    Hope this helps

    Post back if necessary

    ___________________________________________________________

    If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • 33 Firefox does not display a pdf file when using the response object

    33.0.2 Firefox does not display pdf files by using the code below in an asp.net program, that works for the previous versions of Firefox and also works with IE. I'm using the built-in pdf viewer. All my plugins are disabled.

               Dim strPDF As String
               strPDF = Session("filname")   'pdf filename
    
               Response.Clear()
               Response.ClearHeaders()
               Response.Buffer = True
               Response.ContentType = "application/pdf"
               Response.CacheControl = "Private"
               Response.AddHeader("Pragma", "no-cache")
               Response.AddHeader("Expires", "0")
               Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
               Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
               Response.WriteFile(strPDF)
    
               Response.Flush()
               Response.Close()
               Response.Clear()
               Response.End()
               Session("filname") = ""
    

    What is the result of this code that Firefox receives through the headers of HTTP response if you check that the Live Http Headers extension?

  • "File in use: the action cannot be completed because the folder or file is open in another program" when you rename a folder with Thumbs.db inside

    I looked at many similar responses but no nails really our problem.

    On a Windows client 7 to rename a folder that is located on a file server running SBS 2003.  When you try to rename a file that has a file "thumbs.db" in there he throws the message "file in use: the action cannot be completed because the folder or file is open in another program. and then it won't let you rename it.  This isn't a problem with other XP clients attached to the same server.  We have reduced to folders that have this file thumbs.db in through trial and error.

    It will work when you show just the icons which is unacceptable.  However, you can rename a folder that is located on the customers own local disk.

    Suggestions - we can work around it, but it of inturupting workflow and is old fashioned all simply boring.

    Thank you

    Happy to provide system info, anyone needs

    Hi JustinEllery,

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.
    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • Can I use the .jsx scripts that use with CS6 with Photoshop Elements?

    I have a series of scripts I use at work and have access to Photoshop CS6. I have Photoshop elements 12 at home and I wonder if I can use the same scripts.

    Thanks for any help!

    You can run the same scripts in ESP 12, but they can not work if they use functions is not only pse 12.

    You can test using file > Open in EPS 12 and then choose the script.

    Since 12 PES doesn't have a file > Scripts menu, but uses the file > menu instead, automation tools then you might need to modify the script (javascriptresource) to only show the menu of automation tools.

    Or save some actions which are pointing to the script (s)

  • Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on different areas. Since they do exactly the same thing, is it not possible to just get out the 'real' on a field script and refer to other fields to this script?

    Of course - we have a fragment of 'commonScriptObjects.xdp' that we all have

    our common methods of javascript in.  Then we add to the form and hide it.

    then use the following reference to point to the script object:

    GET A HANDLE TO THE SCRIPT OBJECT

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    CALL A JAVASCRIPT METHOD IN THE SCRIPT OBJECT

    commonScript.setupSearch ();

    Here's something else you can do to validate our mandatory fields.  We spend in

    the real to validate field and the name of the field as a text string:

    If (! commonScript.validateRequired (mainContentSubform.customerName,)

    False return 'Customer'));

    and the validateRequired method, which is in our commonScriptObject xdp

    file, looks like this:

    validate required fields

    function validateRequired (oField, fieldName) {}

    Console.println ("enter validateRequired");

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    If (commonScript.isNullValue (oField.rawValue))

    {

    xfa.host.messageBox ("Please fill out the '" + fieldName +)

    ("' field.", "Error", 3);

    xfa.host.setFocus (oField);

    Returns false;

    }

    Returns true;

    }

    Hope that helps,

    Elaine

    ocen12 [email protected]>

    29/07/2009 09:26

    Please respond to the

    [email protected]

    TO

    Amal [email protected]Schmitz >

    CC

    Object

    Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on

    different areas. Since they all do exactly the same thing, is not

    possible to just get out the 'real' on a field script and refer to the

    other areas of this script?

  • Search for files by using the Start button

    I've lost the ability to search for files by using the Start button.  I can enter a file name, but always get a response "nothing found".  I know I did something back a couple of weeks, but don't know what I did to turn it off. Help!

    Thank you!

    Take a look at my search installation tips.  If you are in these settings, you can make sure search is enabled and if necessary you can use the 'reconstruction' of the for button to rebuild your search system.

    http://Skeene.NET/tech/boost-Windows-search-in-two-steps/

    Also, there is an automated troubleshooting tool that tries to find and fix any problems with your search system.  You can go for it here:

    http://support.Microsoft.com/mats/windows_search/

  • I have recently installed Windows 10 free update.  Now I am unable to delete .pdf files and get the invalid error message "Function MS-DOS."  It has never been a problem with the previous Windows 8.1.  I contacted Microsoft technical support and I was tol

    I have recently installed Windows 10 free update.  Now I am unable to delete .pdf files and get the invalid error message "Function MS-DOS."  It has never been a problem with the previous Windows 8.1.  I contacted Microsoft technical support and they told me there is a problem with the .pdf application and I need to contact Adobe Acrobat. This can be corrected?

    uninstall any version of acrobat is installed.

    clean by Download Adobe Reader and Acrobat tool - Adobe Labs

    Restart your computer.

    delete all to delete pdf files.

    If this fails, it is a problem of ms.  If this attempt is successful, then reinstall your acrobat.

  • How to make the line break in the Validation Script Message

    Hello

    Declaration of im trying to write a multi-line error message in the Validation Script Message to a textfield, but every time that I hit, I find myself at the front of the current line instead of a new line.  I also tried \n with no luck.  The only way I have found is by entering the text in Notepad, then cut + paste into the Message of Script of Validation box.  Is this a bug with the Designer?  I have Designer ES 8.2.1.3158.1.475346.

    ValScriptMesgEd.JPG

    I know how to do scripted ex.  this.validationMessage = "line1\nline2" but what I want is store Section and the field name in the Script of selection Message box and then generate the error message ontop via the script.

    ex.

    this.validationMessage = this.validationMessage + ' Validation has no reason of...» » ;

    Just tested this and it looks like ctrl - enter in the works.

  • Script to record an action that will convert the sRGB to CMYK file, then use the action in a script to support the process of a folder full of images?

    Is it possible to save an action to convert from sRGB to CMYK, then use the action in a script to support the process of a folder full of images?

    Do action, and run as a batch of PS (file > Automate > batch), or bridge (Tools > Photoshop > batch).

    Pay special attention to all the 'destination', 'save' and 'close' steps. You want to save a copy without overwriting the original, which can easily happen.

  • Call the batch file and not the shell script using measures of the event

    Can I use EVENTACTIONS at the door of gold like

    eventactions (SHELL, /path-to-batch-file/test1.bat)

    will this work? I am on a windows machine, so I need to run a batch file and not a shell script

    In GGSCI, you can shell OUT to the BONE and call a command/executable file.

    For example on Windows:

    GGSCI (WIN2003) 2 > shell dir

    Volume in drive C has no label.

    Volume serial number is 8CCC-9E58

    Directory of C:\ggs

    18/08/2012 07:23

    .

    18/08/2012 07:23

    ...

    2010-10-15 06:37 bcpfmt.tpl 426

    2010-10-15 06:37 bcrypt.txt 1 725

    22/04/2011 03:41 2 560 category.dll

    05/11/2011 10:43

    cfg

    2010-10-15 07:15 739 chkpt_ora_create.sql

    ...

    What were the results when you tried this in an EVENTACTIONS clause?

  • Permission denied error when you use the Matlab script

    I have the following simple running a Matlab script in Labview.

    K = 5;
    Matrix = randn (4,4);
    matlab.io.saveVariablesToScript ('Parameters.m', {'K', 'Matrix'})

    the last command saves the variables 'K' and 'Matrix' in the m-settings file that I can then use to load the settings 'K' and 'Matrix' to a 'Control Design and Simulation Model'.

    When I run the now from Matlab everything works fine. When I run this LabVIEW so I get the following error:

    LabVIEW: An error has occurred during execution of the script. Error message from the server?: Error using matlab.io.saveVariablesToScript
    Parameters.m: Could not open the file: permission denied.

    I use Matlab 2015 and LAbview 2015 in a 64-bit windows computer 7.

    Any help would be really appreciated.

    For those who have the same permission denied errors, I found the solution.

    I had to specify the current working directory in the matlab script (this is the directory to which you saved your LAbview VI).

    For example, if you have saved your labview vi to C:\Example_Folder

    then you must add the following command in your matlab script node before the command that causes the error

    CD (' c:/Example_Folder')

    I hope this will help.

  • To use the same filter messages on multiple computers

    I have three computers running thunderbird at different places in the world. I am using IMAP so I have all the emails anywhere. Now, I would like to run the same filter message on any one of them, but I can't export/import the message filter as I have copies of my filter. What should I do?

    I found the file differently as you indicated.
    There is no account option that you made on the Tools menu of thunderbird.
    However choose the localfolders file, you can select accountsettting. There's the localfolder displayed directory.
    Now, I see also the otherway. In the menu choose options (tools not), you can select the account settings and then select in this local folder menu and it displays the local directory as in the other method.
    The rest is as you said, thanks.

    Sorry, I copied the 'msgFilterRules.dat' folder, but nothing has changed. In fact when I delete this folder Thunderbird still remember the filter rules. They must be somewhere else on my computer...

  • 12 c: SOA deployment using the ANT script

    We seek to deploy a composite SOA 12 c using the Ant.. As a first step, we use "Ant-sca - package.xml ' to create the package and then deploy using the file" Ant-sca - deploy.xml. One of the properties required by the script is "compositeDir". When we set this value to the composite directory, we get an error composite.xml is missing. And if you change its value in the "soa" with composite directory folder, it works.

    Confirmation, as what value need to affect the property "compositeDir".

    Thank you

    compositeDir is the absolute path of the directory that contains composite.xml, then you must set the property compositeDir as baseDirectory/SOA.

    For a question related to the location of the jar file, there is a known issue already documented here: Known Issues for Oracle SOA products

    Check the details under the heading: "Oracle JDeveloper and ant control Deploy SAR files in different directories;

Maybe you are looking for