Bring to front InDesign doc CS4 js

I have a script for Indesign that opens Ps file runs ps script on it and then updates it in InDesign, and leaves Ps as an active program on the front, and I need for InDesign doc. to come forward as an active app. I've tried few lines and none of them work:
var myDoc = app.activeDocument;
myDoc.activate();
or
myDoc.open();
or
myDoc.windows = Window.BRINGTOFRONT ();
or
myDoc.windows = Window.bringToFront ();
or
myDoc.select (myNewFile); // select file in InDesign
Your help is highly appreciated.
Yulia

Hi Yulia,
Not sure but try this:
app.activate();
Shonky

Similar Messages

  • Trigger script on the opening of new InDesign doc CS4 js

    Hi,
    Is it possible to trigger a java script on the double click of the InDesign doc in finder, so the script runs as soon as doc is open. How it can be done.
    Thank you very much for your help.
    Yulia

    Hi there,
    To me InDesign’s after/beforeOpen events are at the very least useless, since they are triggered before the document’s layout window is opened. This is why you can do nothing useful with the document.
    The workaround is to use APID Toolkit’s docLoaded event instead, which works perfectly. If you are interested, here is an example of using it: check out source code for Check profile plug-in.
    Kasyan
    P.S. This was the case with CS3, may be with CS4 things took a turn for the better — I can't check it right now.

  • I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?

    I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?
    Also, trying to copy portions of articles from Safari (5.1) to MS Word now results in the twirling ball. Any solutions?

    Try using the other Option (Alt) key. The reason I suggest that - the real command combo for Front Row is Command-Escape; yet yours was being activated when you pressed Command-Option-Escape. That would indicate that Finder was not responding to the inclusion of Option in the key combo. The simplest explanation for that would be that the Option key you are using is not working for some reason.
    One other 'simple' possibility - just to make sure (in case you are using a non-Apple keyboard), Option is the key adjacent to each Command key.

  • Placing images from Bridge CC breaks Indesign Doc

    This seems to be intermittent but it's occuring only when I place images from Bridge to an InDesign document.
    I've experienced this bug before with InDesign but now it seems to happen more often when I drag an image from Bridge to an InDesign doc.
    After doing this I'm unable to Save the document or undo/redo anything. I know others have experienced this same bug. The only way I was able to fix the document was to close InDesign (and lose any unsaved changes) and then reopen the document. Then I create a new document and move all of the pages of my document to the new doc and resave it. This seems to stop the problem from happening.
    This is a serious bug: a) It's hard to pin down what causes it but it seems to be permission related to the document b) there is NO way to recover your unsaved changes, you can't copy your objects to a new document and save it as once the program breaks you can't save ANYTHING.
    Has anyone had success permanantly fixing this? Or run into it at all?

    Windows or MacOS?
    Because in Windows you can circumvent this by using the Explorer. I used to drag 'n drop images (ID CS6) and other files all the time - nothing like your problem so far.

  • InDesign docs won't print on Epson CX 6600

    Interesting problem. Computer is a "basketball" iMac 17" LCD G4 with OSX 10.3.9. Tried to print to an Epson CX6600 multifunction printer/scanner/copier, after the CX5200 died. Sending the 6600 any doc done in InDesign stalls to "Jobs Stopped" after spooling to the printer.
    The 6600 prints fine from most every other app on my computer (MSWord, Internet browsers, Appleworks, PDFs, etc.) It even prints fine from the other parts of the Adobe CS suite, such as Photoshop, but not InDesign or Illustrator. All my InDesign docs printed fine on the previous CX5200, which was plug & play from the moment we brought it home. The same InDesign docs also print fine on our workhorse B/W HP printers, but we need to print in color now. We have added nothing new in the way of fonts, etc. Plus we've run Printer Setup Repair and other fix programs to insure all permissions were OK. One place on the Adobe site says it is basically a known problem with Illustrator and In Design on this Epson and several other models, and all they offer for the "fix" is to "make sure you print from the Adobe pull down file menu". Does that come under "duh?" or am I seriously missing something? Any advice would be greatly appreciated, Thanks
    Also, Any suggestions on a good trouble-free color printer? Perhaps laser this time? Tried a Xerox 6120 and had nothing but continuous problems. Xerox tried but was of little or no help, but they did replace three of them before we threw in the towel. Thanks again!

    It seems to be related to your printer, maybe it doesn't have a Postscript emulator. Test print a pdf to it.
    Have you updated your printer drivers, Apple regularly has new downloads in its software support pages, and also been to Canon's website to see if there are any reported issues?
    Peter

  • Reformatting problems combining multiple indesign docs

    My daughter's school newspaper has 24 pages.   Each page is laid out using InDesign and is a separate document.   When all the pages are done, they combine all 24 pages into one big InDesign doc.    But when they do this, some pages will randomly reformat the text, adding spaces, changing line breaks, etc.   They then have to go through the whole thing and re-do all the changes that occurred when the pages were combined.   Does anyone know what settings should be in place so that this random reformating problem does not happen?
    Thanks for your help and feedback!

    There's nothing random about it. When you move a page from one ID doc to
    another if you have identically named styles the definition in the ID doc
    that is being added to takes over.
    Use the book feature to avoid this.

  • File size comparisons, InDesign CS3, CS4 and CS5?

    Hi, all.
    It seems there was a trend for several major releases where each time Adobe released a new version of InDesign and InCopy, average file sizes grew by 20% or so from the old release to the new release, at least back in the older CS days. Has this trend continued, such that file sizes in CS4 are substantially larger than file sizes from CS3, and CS5 files are substantially larger than those from CS4?
    Adobe, of course, wants to keep writing functionality that will keep the user community coming back to buy in to upgrades. The added functionality sometimes comes at a cost beyond the price tag. If file sizes are larger in a newer version, then page saves over a network or to a database are likely to be slower, and user productivity takes a hit while users are waiting for files to be saved.
    Has anyone done any testing to build the "same" page in multiple versions of InDesign to understand what the effect is on the file sizes? I'm specifically interested in the file sizes between InDesign CS3, CS4 and CS5. To be meaningful, the test page would have to be at least moderately complex, with a couple of photos, multiple text elements and so forth. By "same," the page wouldn't take advantage of new functionality in newer versions but would be saved as a native page of the current version, though the file sizes may be bloated by the new functionality like it or not.
    If you've done any testing along these lines, I'd like to hear more about it.
    Thanks.
       Mark

    The overall structure of ID's files have been exactly the same for -- as far as I can see back -- CS. No change at all, in there.
    There have been significant additions to the 'global' spaces; stuff like InCopy user data, table styles, object styles, and cross references. Each of these add a major chunk of data to each file, whether you use it or not, plus a few bytes per object (again, whether you use them or not -- ID also needs to know where you did not use them, that's why). I think these might be the main source of 'global' file size increase (a single object style in one of my files, for example, eats up a healthy chunk of 11,482 bytes).
    For the rest, all new stuff like 'span columns' is a handful of bytes per paragraph style. Tracking changes may very well double the size of text runs -- but 1 character takes up 1 byte of storage (plus perhaps some overhead of indicating its 'tracking' status). Any single measurement unit always uses 8 bytes at least (for example, the left inset for a column span -- even if it's not used, or set to 0pt).
    I think we're talking about a couple of K's here (oh -- perhaps a max of a hundred or so), in a file format that has been designed around the concept of "disk pages", each 4K big, meaning that sometimes adding one single character to a text box increases the file size by 4 K.
    Your idea of comparing the size of a file created in CS3 against the same saved as CS4 and as CS5 is certainly feasible -- I might try it some time, just to confirm it's purely the extra 'new objects' data that accounts for the size increase and to confirm my guesstimates of the number of Ks involved.

  • "Cannot recover" Error when opening InDesign doc

    We are a Server 2008 w/ XP/SP3 client environment. I have a user that opens an InDesign doc located on a shared network drive, does some work on it, and closes it. When the next person opens it, they get this error: "Cannot recover <<filename>>.indd. Please try to open it using the File menu. The file <<filename>>.indd has been changed since Adobe InDesign last quit (Error code: 11). They can click "OK" to this. The next window that pops up has an error: This document contains links to missing or modified files. Click Fix Links Automatically to have InDesign update this document with the modified files and help you locate missing files..." there's more about using the links panel, etc. They click "don't fix" and the document opens. To the best of my knowledge it is happening on just one file.
    I'm pretty sure the second error is because we recently took a server off-line that some of the links had been pointing to; I've informed my users they need to update the links in the files. It's the first error I'm wondering about. The first user I mention at the beginning has been having *tons* of trouble with InDesign the last week or so. It locks up, freezes panes, and needs to be ended through task manager. It's been unbearable for both her and myself trying to figure out what's wrong. My hurdle is that I don't use the software at all but I'm in IT support so so I'm in charge of troubleshooting but not sure where to begin.
    Can someone please help with the error we are receiving and also, provide some suggestions on how I can troubleshoot the performance issues?
    Her system specs:
    XP2002/SP3
    3GB RAM
    P4 2.8GHz proc.
    Not sure on the graphics card but can retrieve it will be helpful. User does use dual monitors.
    TIA!

    Reinstalling won't necessarily fix the kinds of problems you are having since they may have nothing to do with the application itself. I woud uninstall first, whenever possible, and immediately run any updates. Changing the preferences would be more productive as a first step though. Prefs are not automatically replaced on a new installation, either -- it depends on what option you chose during the uninstall.
    For your questions:
    1) When a file is opened, ID write a file with the extension .idlk in the same directory. This file tells any instance of ID that the file is already open and in use and prevents multiple users form having simultaneous access. It may or may not be deleted (usually not) during a crash scenario.
    2) Generally speaking it is not possible for mere mortals to recover a corrupt ID file. Tommy Donovan at Adobe is collecting them for study, but makes no promise of recovery. The folks at Markzware say they have some luck using their ID2Q plugin for Quark Xpress to open and save as a Quark file, then going back the other way using Q2ID to convert back. They might do a on-off for a small fee.
    3) Go to the link in the previous response, and scroll down to the part about repalcing preferences. Editing the prefs in the edit menu is not the same as replcing them with a new set. The files that need to be replaced are InDesign Defaults and InDesign SavedData.
    4) If there is something wrong on User 1's system that is corrupting the file, it would show up when User 2 opens it. Export the file to Interchange format (.inx), then open that file and save as a new .indd file. That can often clean up minor problems (i.e. those not serious enough to keep the file from opening at all).

  • Can a PDF of an Indesign doc be created from Bridge CS3

    Can a PDF of an Indesign doc be created from Bridge CS3 without opening the Indesign file; and retain version cue version info as you would "page information", using an "Adobe PDF Preset" ?

    Hi Willi:
    Thanks for your prompt response.  Do you know if there are any scripts that can do this or at least help automate some of this process?
    Thanks!
    Kevin

  • How to do a word count on a PDF document or an original inDesign doc?

    How to do a word count on a PDF document or an original inDesign doc?

    There are scripts that will do it in InDesign. This is a good one: InDesign-Toolbox/Count Text.jsx at master · jpobojewski/InDesign-Toolbox · GitHub-

  • Indesign Server CS4 service is not starting on Windows Server 2003 64bit

    Hello guys,
    I am not able to start Indesign Server CS4 service on windows Server 2003 SP2 64bit .
    I have successfuly configured the service with InDesignServerService.msc, set the port to 18555. InDesignServerWinService the Log On option is set to "This Account". Also tried using different accounts!
    When starting the indesign service from windows Service control panel I get this error:
    Could not start the InDesignServerService x64 service on Local Computer.
    Error 1053: The service did not respond to the start or control request in a timely fashion.
    Error log from windows Event viewer:
    Error
    Timeout (30000 milliseconds) waiting for the InDesignServerService x64 service to connect.
    Indesign server application works if launching from command line with the specified port 18555.
    If trying to lauch IndesignServerService.exe from command line, there is a delay and finally nothing happens.
    I have also tried launching 32bit indesign server service and the same error comes.
    Would be grateful for your thoughts!
    Message was edited by: Andrewdev
    Server specs:
    Windows Server 2003
    Standard x64 Edition
    Service Pack 2
    Intel Xeon CPU 3.00Ghz
    9.76 GB of Ram
    Server is running virtualy on Xen hypervisor, there is no antivirus and windows firewall is disabled.

    Hi Chandi,
          If Microsoft fix is not working or it is too old to apply then go for manual process i.e.;
          In the Microsoft KB article follow this :-
         Services that use the local system account to log on to a Windows Server 2003-based computer start if the Allow service to interact with desktop
         option is turned on. To turn this option on, follow these steps:
    In the Services tool, click the service that you want to start, and then click Properties.
    Right-click the Log On tab, and then click to select the Allow service to interact with desktop check box.
    Click OK to exit the Properties dialog box.
       This will solve your problem.
       Thanks,
       Akansh Upadhyaya,
       System Engineer,
       (Windows + Unix.)

  • Is there a script/something to put every element of your Indesign doc onto a separate layer?

    Help. The reason I need this is, our designers have created a huge Indesign document that i need to Psd to send to our web guys.
    Ive found a scipt that converts indesign to psd layered perfectly but each element of the Indesign doc has to be on a layer!!.
    Help!

    @Vamitul – you still forgot a dot and a paranthesis…
    And it will not only work with Group objects, but will fail on anchored objects, too.
    A better approch will be to duplicate the objects to new layers. But also with that method there is a risk: the position of duplicated anchored objects will change and to single out objects out of groups means getting into trouble, too:
    var doc=app.activeDocument;
    var pi=doc.allPageItems, l=pi.length;
    while (l--) {pi[l].duplicate(doc.layers.add())};
    alert("Done!\nYou can go outside an play now!");
    Before script (TextFrame with anchored object on the "blue" layer):
    After script (TextFrame without anchored object on the green layer, the now duplicated un-anchored object on the "red" layer):
    And another thing: if an anchored object has "Text Wrap: on" the text of the duplicated object will reflow.
    So, you have to store the positions of anchored objects and set them back to its original.
    Another thing about groups: in duplicating single objects out of a group, you will loose any effect that is applied to the group.
    So you have to single out groups of your pageItems.
    You see it's getting complicated here…
    Maybe it's worth thinking about NOT using "allPageItems" but the simple "pageItems". Then "Groups" will stay "Groups" and anchored objects will remain anchored:
    var doc=app.activeDocument;
    var pi=doc.pageItems, l=pi.length;
    while (l--) {pi[l].move(doc.layers.add())};
    alert("Done!\nYou can go outside an play now!");
    Uwe

  • "Bring to Front" hidden clips & deleting files after it's closed in Adobe Audition.

    Hi everyone.  I need some help with Adobe Audition CS5.5 usage.  I have two concerns:
    1)  Back in Audition 3.0, there is this feature called "bring to front."  I use this feature mainly for recording over and over and over until I find a the perfect one or can go back to previous recordings that I did if I think I liked an older one better.  This feature seems to be gone in Audition CS5.5.  What work around do you suggest for being able to record until perfection but still being able to have all the old recordings?  Right now, the only thing that seems to work is record it, delete it from the Multitrack session, but the keep the file and reinsert it at a later time to play it back.  That is very time consuming if I have 20 versions of the exact same segment of a song.  What method do you use?  Cause I know most people don't get their singing/recording the way they like it the first time; there is more than likely going to be a Take 2.
    2)  Once delete a file from the Files pane on the left hand side, I usually go straight to the destination folder and delete it from there.  that way, I only have files that I want but the ones I definitely don't like are deleted.  With this new Audition CS5.5, once I delete it form the Files pane, the file is still associated with Audition and I can't delete it until I close Audition.  Is the away to make Audition release the file association after it has been closed?
    Any help/suggesttions/tips would be VERY much appreciated.
    Thank you.  ^^

    What I do when tracking say vocals is to set up a track record a take (could be a whole song or part thereof) if its good I'll usually drag that down to the next track, mute it and do another.
    I may also record a section or whatever and find that its no good so I delete it straight away and record another take (ctrl Z, ctrl space) .
    It may be that I like part of the take so I'll keep it, drag it down, mute the track and record another - I may do that 2 or 3 times.
    As long as I have either the perfect take (sure), or enough parts to make a perfect take then I move on.
    I only ever use the 'punch in' when I need to get a particular 'piece' otherwise its just easier to record the 'punch in' on one track while the talent listens to his other take and I mute the other take at the appropriate time - can be a little fiddly but when time is of the essence and you need to look like you know what you are doing, without having the talent standing around - you get the picture........
    When I finally save the session I will 'close all unused media'.
    Now as to 'unused takes' and being the 8th dwarf (lazy) I'll run http://www.mediasweeper.com.au to clean them - I'd usually do that once the project is blessed, boxed & buried.

  • My remote wont bring up Front Row

    The remote was working beautifully last week, and then today it won't bring up Front Row when I pres the Menu button. It will raise and lower the volume, just not start Front Row. The computer and remote are less than a month old. Any sugesstions??
    Thanks.

    It could be that the computer is doing other tasks therefore the remote is not responding, because the computer can not multitask quickly (unless it is a core duo processor). Another thing is that the remote was damaged or defected in some way or the battery is low (in that case, get it replaced). Also try pressing the menu button 2 or 3 times and try to do it when the computer is not buisy.
    Intel core duo macmini   Mac OS X (10.4.8)  

  • Installing Transparency Flattener Preset for Indesign Server CS4

    I'm trying to figure out how to install a transparency flattener preset for InDesign Server CS4.
    I can see how they are installed for the InDesign app.  Edit -> Transparency Flattener Presets...
    But I'm not sure which directory to install these on for the server.
    I've seen a post that mentions:
    C:\Documents and Settings\<UserName>\Application Data\Adobe\InDesign\Version 6.0\en_US\Transparency Flattener Presets
    /Users/<UserName>/Library/Preferences/Adobe InDesign/Version 6.0/en_US/Transparency Flattener Presets
    for the Desktop version.  But when I place files here even for the CS4 Desktop, they don't seem to show up in the UI.
    Any help would be appreciated,
    Thanks,
    Dennis

    Thanks, to get this working in a server script, I ended up just programmatically creating the flattener preset, rather than worrying about the .flst files.  (Java code below)
      //Setup Transparency Flattener (if not in application)
      FlattenerPreset flattenerPreset = app.getNamedChildFlattenerPreset("Test");
      if (flattenerPreset == null) {
          flattenerPreset = app.addFlattenerPreset();
          flattenerPreset.setName("Test");
          flattenerPreset.setRasterVectorBalance(VariableTypeUtils.createLong(100));
          flattenerPreset.setLineArtAndTextResolution(2400.0);
          flattenerPreset.setGradientAndMeshResolution(400.0);
          flattenerPreset.setConvertAllTextToOutlines(false);
          flattenerPreset.setConvertAllStrokesToOutlines(false);
          flattenerPreset.setClipComplexRegions(false);
      pdfPreset.setAppliedFlattenerPreset(flattenerPreset);

Maybe you are looking for

  • Windows 2008 R2 SP1 (64bit) shared folders no longer work with Windows 7 Pro but do work with WindowsXP & Windows 2003

    As of last week, our Windows 7 Pro workstations can not map or browse the Windows 2008 Server shares. They can ping the Windows 2008 server. The Windows 7 Pro machines can still access the Windows 2003 Server Shares. The older workstations running Wi

  • Printing Problem with Pages

    I have a Canon Pixma ip 4200. I have had no problems printing with any other application but I cannot get Pages to print. I had the demo version and thought that was the problem, so I bought the application, but I still only get a small part of the p

  • Rental Movie Expiration

    I started to download a movie I rented through Apple TV last night. Since it took longer than expected to finish, I left the apple tv running in order to complete the download and went to bed, thinking I would still have 30 days to watch it after the

  • "Expense without tax was found" error

    I am trying to convert a Delivery to an invoice and SAP is preventing it.  I keep getting an error..."Expense without tax was found".  I do have a tax code calculating 2% tax, but since this is an invoice why does the error msg mention "Expense..."??

  • Printing with canon pixma 9500 II

    I have just installed a Pixma Pro 9500II printer to work with Aperture 3 - particularly in monochrome. I can print, but I am not sure if I am using the menus correctly. I am printing on Ilford papers - and think I have installed, and am using the pro