doScript (UndoModes) breaks InDesign Undo (CS4)

I wrote a small script. To make sure that I can cancel it all of a sudden, I used:

app.doScript (principal, defined, undefined, UndoModes.fastEntireScript, "My script");

Once the script has completed, regular cancellation of InDesign is broken. It is no longer cancels distinct but only revert to the point steps until the script was run.

What can I add at the end of the script to return things to normal?

Thank you

Ariel

If you use try/catch in your script, you should probably use

UndoModes.entireScript instead.

The reason is little complicated...

HTH,

Substances

Tags: InDesign

Similar Questions

  • Hello. I have a big problem. I have Photoshop, Indesign, Illustrator CS4 and Flash CS5 programs. I bought the programs a few years ago and used on my Mac with version 10.6.8. Now, I have a MacBook with the latest version 10.11. I wanted to copy the pro

    Hello. I have a big problem. I have Photoshop, Indesign, Illustrator CS4 and Flash CS5 programs. I bought the programs a few years ago and used on my Mac with version 10.6.8. Now, I have a MacBook with the latest version 10.11. I wanted to copy the programs on my MacBook to work also on this computer. I copied the folder with the programs 'Programs' and the folder of the "Library / Application Support / Adobe" on my USB key and pulled on the MacBook in the program folder and the folder of Adobe. Then I restarted the computer. When I wanted to start a program, I got with Photoshop, Illustrator, and Flash, the error 6 error message. For Indesign: "Adobe ID missing required files please reinstall missing file / Library / Application Support / Adobe / support /... / ROMAN." TXT ".» But on my old computer I could not find a record of support for the Type in the path to the Library / Application Support / Adobe. And I don't know what I have to do because of error 6. Can someone help me please? Thank you very much.

    Avoid copying files from one computer to the other. It won't work. You run out of hidden files scattered around the hard drive and interrupt the licensing mechanism.

    Uninstall, run the cleanup tool.

    Adobe - Adobe CS5 clean tool

    Reinstall from scratch and enter your serial number.

    Download download install and Installation Help | Download and Installation Help

    They will install under 30 days of testing. Enter your valid serial number to unlock the tests.

  • Book Adobe® InDesign® CS3/CS4 SDK programming by Kris Coppieters

    Hi, I would ask if anyone knows if Adobe® InDesign® CS3/CS4 SDK programming Kris Coppieters booklet is available in ebook, since I could find only version printed on Lulu.com. Thanks for your help

    Maciej salvation,

    No, I never published my book in ebook. Don't know if it would be worth it - it's a terribly small market! I got my book up on Lulu mainly for my own use, like the note that I use when I run an InDesign SDK training session - so that I can quickly print some documents of good quality for my students.

    See you soon,.

    Kris

  • Installation of Indesign in CS4 Indesign is stored on installation disc 2, but I have computer cannot access installation disk 2. How to solve this?

    How can I get Indesign CS4 installed when the CD has been copied to an external drive and the software must be installed from an external hard drive?

    See if this link helps:

    Download Adobe Creative Suite 4 products

  • [CS4] Indesign CS3 CS4 plugin Porting c ++ linking error

    I'm hoping to improve our current plugin to the latest version of Indesign CS4.

    I downloaded and unpacked the new SDK of Indesign CS4 and reading the guide of Portage.  I've not seen anything obvious on this issue.

    It is using Visual Studio 2005 SP1 with InDesignCS4ProductsSDK_Build578.

    It seems that through the headers that I don't end up with compilation problems.  However, by linking my project current is unable to find just a couple of external symbols.

    ItemSelection.obj: error LNK2019: unresolved external symbol "public: void __thiscall K2Internals::K2VectorBase < < struct PMIID_tag > IDType categories, < class IDType < struct PMIID_tag > > K2Allocator >: fill_insert (class IDType < struct PMIID_tag > *, unsigned int, class IDType < struct PMIID_tag > const &)" (? fill_insert@?$K2VectorBase@V? $IDType@UPMIID_tag@@@V? $K2Allocator@V? $IDType@UPMIID_tag@ @K2Internals @ QAEXPAV? $IDType@UPMIID_tag@@@IABV3@@Z) referenced in the public service «» ': class virtual K2Vector < < struct PMIID_tag > IDType categories, K2Allocator < class IDType < struct PMIID_tag > > > * __thiscall SelectionSuiteCSB::CreateObserverProtocolCollection (void) "(?) CreateObserverProtocolCollection@SelectionSuiteCSB@@UAEPAV?$K2Vector@V? $IDType@UPMIID_t ag@@@V?$K2Allocator@V? $IDType@UPMIID_tag@@@XZ)
    Convert.obj: error LNK2019: unresolved external symbol "public __declspec (dllimport): __thiscall PMReal [] PMMatrix::operator (int) const class"(__imp_?» APMMatrix@@QBE? AVPMReal@@H@Z) referenced in the function ' __cdecl Ipg3::Matrix ConvertMatrix of the class (class PMMatrix const &) ' (?) ConvertMatrix@@YA? AVMatrix@Ipg3@@ABVPMMatrix@@@Z)
    .


    Does anyone have any ideas where I should look then?

    Paul Cooley

    I think you need to add 'K2Vector.tpp' #include in your source - ItemSelection.cpp file?

    Ian

  • Opening documents InDesign CS3 CS4

    I hope someone from Adobe can help me with this question. Here's the scenario:

    I'm working on the support team in a prepress environment where we get hundreds of files InDesign customer provided per week. Some customers provide their files in InDesign CS3 and some provide files in InDesign CS4. We have two applications.

    From our experience, we found that if we open a document, InDesign CS3 with InDesign CS4, there is potential for the elements in the document. I don't know what is happening from 3 to 4 to cause this problem. This happened to us several times and we have experienced losses of money owed on the errors of the press.

    One could say, as we have, if the document is provided in InDesign CS3, working on it in InDesign CS3. Pretty easy, right?

    Well, not really. If you have CS3 and CS4, both as installed on your mac at the same time, simply by double-clicking the CS4 default file (because it is newer).

    We said to our operators that they need identify which version of the file was created is not the easiest thing in the world either.

    If you 'get info' on the file, you don't get accurate information. He can say "CS4", even if it's "CS3", I think it's because your system is reading the application newer than you have to install is.

    I found that by dragging the file to the CS3 icon in the doc, it will attempt to open the file in CS3 and if it is really a CS4 document, you will get errors in plugin and the file does not open. It works, but my 38 mac operators are so used to simply by double-clicking a file to open it, they sometimes forget to do it my way, and it is when we receive errors.

    Y at - it a plugin available that would make you, when double - click on a file as to which version he is or which version you want to open the file in InDesign?

    What has changed the Adobe in InDesign CS4, which would cause things to disappear or change when working on CS3 CS4 documents?

    Thank you in advance.

    This isn't an official Adobe support link. This is a user to user forum.

    This can help you:

    OSX.php http://indesignsecrets.com/Utility-opens-indd-Files-in-the-correct-version-of-InDesign-in-

    Bob

  • Editing documents in InDesign CS4 PageMaker?

    I have a client with some files (PM6.0 and PM6.5) of the PageMaker of legacy files.  He has need of have updated them.

    I don't have a copy of PageMaker.  I think I remember having trouble opening docs PM6.5 in IDCS4 (Mac OSX 10.5.8), but it has been awhile.  If I remember correctly, the process is bombed.  (I also have an old copy of the IDCS2 to PC)

    1. can I open the files MP 6.0 and 6.5 in Indesign CS4 and edit?

    2. If so, how?

    3. any other ideas or suggestions?

    4. If IDCS4 open unreliable MP files, are there utilities that will allow me to open or convert these files so I can edit in IDCS4?

    Thanks for your help,

    Lou Dina

    You should have no problem opening PM 6.5 files in ID. But if you are pregnant of perfection or if the customer need PM files, you're the GROUND.

    In regard to problems, you might remember that he can relate to this:

    http://InDesignSecrets.com/Windows-XP-Service-Pack-3-breaks-InDesign-CS2-PageMaker-Convers ion - capability.php

    Bob

  • Sierra Adobe breaks makes inDesign CS6

    Hi people,

    I get a finger of download that sting for Sierra, my question should I break inDesign CS6?

    I have a bit of jump some operating systems, I also expect...?

    Thank you.

    using Yosemite 10.10.5

    Reported problems with Illustrator but CS6 is not longer supported by Adobe and was not compatible with the Mavericks and after according to Adobe. Apple does not solve the problem if you run into something, and adobe has no software open source so that others could provide a patch. I'm agree with your position not to be bullied into buying a subscription for the software with my humble OPINION less than stellar customer service I need to contact once a week, it was the decision of the Adobes.

  • Export InDesign CS4 with 100% output

    I want to export an InDesign in CS4 document, a pdf file, but I want the recipient of the pdf file to open it as a 'fit page' and not the 173% size which defaults to. I used to remember, but...

    Bob

    If you have CS5 or later, you may choose to export > Adobe PDF > Interactive, you might choose Page Fit. But you do not have this option in CS4.

    You need to open the PDF file in Acrobat. In Acrobat, choose file > properties > initial view. Choose Page display options here. Save the PDF of the document. When reopened, it opens with the settings you have chosen.

  • Question of exit InDesign CS4 PDF

    Hello

    I have a problem when the pages of the catalogue PDF of CS4 is released. The problem is on the page of masters, I have the usual footer page amendments, web stuff, phone numbers etc., and behind which is simple tinted box which crosses the spread in the foot.

    When PDF files are output left (evens) page the background page footer area appears on all the text footer, but the strange thing is not all the pages are affected. The right pages (sides) are all very well. For example, if a page 10 article p54 - 63 pages 54,56,58 touched but 60,62 are very good.

    The same masters were used in CS3 year last without problem, so I guess there is a problem with PDF output InDesign in CS4.

    It is not a question of layers or objects on the footer etc that all have been verified. I have been using ID since CS2.

    The only work around I could find was to create two distinct areas instead of one.

    This caused a big headache with the print delay only an hour's drive.

    Anyone any ideas? As most of our catalogues share elements which cover the spead.

    Kevin

    I can reproduce this on CS4 (6.0.2.544) and confirm that it behaves differently from CS3. You must file a bug report:

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    At the same time, it's really easy to get around. Simply use a box on each page instead of a single box through the spread

    Ken Benson

  • How to set up automatic backups in InDesign

    Does anyone know how to set an automatic to InDesign? Yes, I am aware that there are tons of available general safeguards and can always ' Save as ' to make copies. However, in a team environment where many people work on InDesign files, need a more robust solution to backup specifically for InDesign. From Quark, there is an automatic backup available at defined intervals. Running: InDesign CC 2014.

    I came across a script that seems to be exactly cela, but appears to have been written for Apple Script as oppose to the Java Script. Maybe someone can translate that into Javascript. Using a windows platform, Apple Script of course will not work. The script is the following:

    Anyone with the help, thank you very much in advance.

    Tell application "Finder" to the value backupPath file "Macintosh HD:documents:backup files.

    Tell application "Adobe InDesign CS2"

    Try

    CheminMonFichier the value path of the active document

    full name of the active document myFile value

    put the cd with the current date

    Set to nuName name of the active document

    the value nuName nuName & "-" & ((year of cd) & (month of the cd) & (cd day) as String)

    the value nuName nuName & "-" & (cd time) as string

    Tell application "Finder".

    duplicate the backupFile myFile value to backupPath

    the name of backupFile nuName value

    tell the end

    Save the active document

    in case of error

    Save the active document

    try to end

    tell the end

    Martin Fischer wrote that a script, saveVersions.jsx , published in www.hilfdirselbst.ch:

    InDesign Script - automatic Sicherungskopien in Unterordner create

    His companion script is VersionsCounter.jsx :

    InDesign Script - automatic Sicherungskopien in Unterordner create

    Maybe you can use them.

    saveVersions.jsx is a "Save as copy" in the background, whenever you do a 'save' or ' Save as ' in your document. The versions are stored in a folder named "versions" in the same folder or your original InDesign file is located. Versions are numbered (it will ask for time to number first Max you use). You can reset this number with VersionsCounter.jsx.

    Should work with all versions of InDesign CS3 and above.
    I use it myself with InDesign CS3, CS4, CS5, CS6 and CS5.5.
    Didn't test for superior versions.

    You must place the code in the folder the folder scripting InDesign scripts. If there is no startup script, simply create a named exactly like this (without the quotes): "startup scripts".

    Uwe

  • Illustrator CS4 crashing while trying to print on OS 10.9

    My Illustrator will not print. The system hangs.

    I uninstalled and reinstalled the program twice.

    I found the solution:

    Print crash | Illustrator, InDesign | CS3, CS4 | Mac OS 10.7

  • Through the program without BridgeTalk doscript?

    If I have a script that is not really something in Indesign or Illustrator but rather the folder and file management and reads an xml file to fill in a lot of variables, it is possible to call a script (using doScript()); that target Indesign or Illustrator and her main script variables or this must be done using BridgeTalk only?

    Just a little dilapidated,

    I have a script that asks the user to a job number, that it proceeds then to find a corresponding with all the job information, xml file creates the necessary files and copies created the illustrator files good that he needs in this folder.  I want to call a script of illustrator we have then open the illustrator file, the layers away strip it does by comparing its contents with the data from the xml file and resave it. Then, open an indesign file, link all images with this new illustrator file and fill out a bunch of tags/variables with data from the xml file and PDF export.

    Currently, I have all these three steps in scripts separated that we manually run every step of the way to the bottom of the line of work, but I would just have pass automatically using a main script.

    It is possible with doscripts() or BridgeTalk inevitable?

    If your scripts are written in JS, BridgeTalk is the best option for you because it is designed for communication between Adobe applications.

    Another option is to translate your scripts to the ACE or VB, in this case, you can address all applications directly. doScript is used for the execution of a script written in another language in InDesign and is very useful to overcome some limitations of JS. For example, the main part of a script written in JS can deal with links in the current document: via BridgeTalk run a Photoshop script that opens, resizes, sharpens,... etc., saved, closed to each image. Then, it updates all the links and exports the document to the pdf file. Finally the script sends the pdf file by e-mail with the request to "Mail" which can not be implemented in JS, so this part is written in AS and triggered by doScript of the script 'hand '.

    BridgeTalk is not as scary as it may seem at first. Here on the forum, you can find many examples of interaction even InDesign with Photoshop, Bridge, Illustrator, and Acrobat.

    I hope this helps.

    Kas

  • InDesign for Mac crashes every 20 minutes

    Hello

    InDesign seems to freeze about every 15-20 minutes and I cannot understand why. It seems to happen more frequently when I switch between applications, but honestly, I'm not sure that is the issue because it also occurs when I'm just changing the text or the moving boxes around, or do other stuff ID normal. For no apparent reason (for me), roulette appears and unless I force quit and re - open ID, it won't go away (I waited 15 minutes before to make sure I wasn't being impatient). Does anyone else have this problem? Can you recommend some settings I can change to troubleshoot or correct?

    I use InDesign CS5 on Mac OS x 10.6.7 v7.0.4.

    Thanks in advance for your help,

    Neil

    Oh, goodie. For once this suggestion really pays off! The beginning of the call graph:

    2000 Thread_10885   DispatchQueue_1: com.apple.main-thread  (serial)2000 start2000 main2000 GetPlugIn2000 0x19f6ad282000 GetPlugIn2000 GetPlugIn2000 Q2ID_IdleTask::RunTask(unsigned long, IdleTimer*)2000 IsLicensed()2000 cApplicationController::isLicensed()2000 nmsComMarkzware::nmsApplicationControl::cMzMacAppController::licenseLevel()2000 deilc1...
    

    Shows that the first thread in the process of spending 100% of his time in the Quark2ID of Markzware plugin. I assume that you have installed?

    Please, disable it and confirm that the problem goes away. Can he go back to Markzware. It seems that it has something to do with a matter of license, but even if you have a free trial has expired or something like that, it shouldn't break InDesign horribly, so they really need to fix it.

  • CS3, CS4 and CS5 Crash when clicking on.

    Hey, can't find anywhere better ask this question.

    2.8gz 4 GB ram imac running intel latest snow leopard.

    have all 3 installed indesign cs3.cs4.c5 tests.

    However as soon as the start screen has authorized, we arrive at the new document window.

    We can choose document settings, then the page is displayed in white as standard.

    then you click ANYWHERE in indesign and Flash freeze and have to force quit.

    all n software drivers are up to date and have erased the prefrences.

    any guy more ideas?

    see you soon

    x

    Well.

    Sometimes it's obvious what's going on, but usually it is not. In this case it isn't. But.

    I guess we can say that he is waiting for the system to grant him a lock to do something, but this isn't all that clear what who or why. Although it seems to be stuck inside the TIN_Disposefont in calls to SING. I don't know anything about TIN, other than a look of 5 seconds on his web page.

    But it seems that the problem has to do with fonts and Japanese who. I think that Peter above suggests that a font may be a problem.

    So, try to remove all of your Japanese fonts. And if that does not do it, try to delete all your rules policies. See if that fixes it. If so, then add their return in half until what refine you the one who kills. Don't forget, it's only log-base 2 number of fonts, so even if you have 1024 fonts on your system, it is only 10 demi-retrecissements.

Maybe you are looking for

  • Satellite L650 - WIFI connection disconnects when the AC adapter is removed

    Hello I bought Toshiba Satellite L650 in April 2011 in Canada.It works perfectly well in the Canada, but when I bring the laptop computer in Hong KONG to use, I have found the drops connection wireless lan or completely disconnected very often. Howev

  • Messenger installation failed satellite P10 504

    Hi friends, I tried to install the new Messenger even though I was happy with an old, it completes the download and then when he finished s tells me that it could not be installed.It say installation has been cancelled it gives an error 0 x 80004004,

  • Please reset my bios password for me the mini hp laptop

    someone enter a password bios on my mini hp laptop, but I do not know someone can help please error code is 2mc9142yp2

  • Need help with my doen't account appear on the list of the user accounts our users

    On my computer at school the guy tech somehow set up an account on my computer remotely somehow so I could access the school's network. in any case said account has almost no privleges (I can't even shut down my computer with it for the love of God),

  • B22 part numbers blade

    Hello Our partner referred us to these topics: UCS-SP6--B22 3 ORL UCS SP B22 ENTERED 2 x 6248, 1xCH, 2xB22w/2xE52420, 48GB UCS-SP-ENTS-B22M3 qty6 (Not a standalone SKU) B22M3 w/2xE5-2420, 48 GB, VIC1240 Qty6 CON-SNTP-SPENTS22 24 X 7 X 4 Smart Play Se