(JS)(CS3) eventListeners: afterOpen UNSTABLE

Hello everyone,
I was able to emulate what inEventScript CS2 plug-in did, using the EventListener new function build into CS3. UNFORTUNATELY as soon as I close the document(s), InDesign crashes. The script is reliable as it has been used in CS2 for the past 6 months. All I did was to write the script that creates the event. The event gets triggered, the script executes and the handler closes once the script is finished. I can open several Docs. and they all get scripted correctly. It looks like something terminates INCORRECTLY once I close one of the document!
Any suggestion or input will be greatly appreciated. Alex.
Here is the EVENT Script.
===============================================================
#target indesign
#targetengine "session"
app.scriptPreferences.version = 5.0;
//******************** BEGIN Main ********************
main();
function main()
//** Number 0
app.addEventListener( "afterOpen", EventOpen, true);
function EventOpen (itsEvent)
app.scriptArgs.set("Event_Listener", itsEvent.parent.toSource());
var myExeSrcFile = new File (app.scriptArgs.get("Event_Open"));
if (myExeSrcFile.exists)
myExeSrcFile.open ('r:(read)')
app.doScript(myExeSrcFile, ScriptLanguage.javascript);
myExeSrcFile.close();
alert ("Finished Execution"); //*** Debug: Confirms HANDLER termination
else
alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
return;
=================================================================
The scriptArgs are defined during a Startup Script. The "Event_Listener" passes the document opened as an argument to the script and is correctly evaluated w/i the "Event_Open" script.

Hi Harbs,
I get your point but can't apply it.
doc = File(mypath)
doc.pageItems.length > error
doc.filePath = mypath > error (read-only)
doc = File(mypath).open() > error
Do you mean if(app.documents[0].filePath = mypath)...?
thx
Loic

Similar Messages

  • CS3 Image Display Unstable-causes crash

    Unable to drag or move large images around Photoshop CS3.
    As I open more images the problem increases until at around 4-8 images, PS will crash.
    Also, while working on an image, as I add layers and increase the history list, it becomes unstable and may crash. I can't trust it to work thru an image without loosing my work.
    If I try to drag the image around, it will completely blank out--I can't see where I'm moving it to.
    If I make the image (or images) smaller it DOES help.
    The more(or larger) images that are open, the worse it gets until it finally will crash PS CS3.
    This does NOT happen on CS2 installed on the same computer. It works fine.
    I've tried all of fixes I can find in this forum.
    Replaced preference file
    Version cure disabled
    Font preview disabled
    Memory and cache changed up, down and sideways
    Latest video drivers
    All updates to OS and PS
    Uninstalled and re-installed PS
    Chants at midnight
    XP Pro SP3 (didn't work with SP2 either)
    4 gigs ram with dual core processor
    Nvida 7900GS 256mb video ram
    Wacom with latest drivers
    I've been fighting this for months. It's never worked properly.
    I'm willing to buy a new video card if someone can verify that they have had this same problem and it's helped. But if it's the video card, why does CS2 work fine?
    I can load CS2 up with a dozen large images (RAW 10mb images), move, work, add layers--runs smooth as silk.
    Can't help but think there is a bug in CS3.
    Any help out there or Adobe techs willing to work with me in resolving this?
    Thanks
    T.O.

    Thanks Dave, but I tried that already.
    I think--(give it some time to make sure)--I might have found it.
    Even though I had the latest drivers for the Wacom, I think that was the problem.
    I removed them. Then installed a version that was 3 or 4 old.
    Over the course of the past two days, I've now been able to get as many as 15 files opened, drag them around, paint on them, copy and paste, make layers, etc. and it's still hanging in there.
    So the latest and greatest drivers aren't always the answer.
    Thanks
    T.O.

  • [JS](CS3) EventListerner: afterOpen

    Hello everyone,
    I was wondering if anyone knew why Adobe choose to open a document "hidden" in the event "afterOpen"? Or was it to handle different events when opening several documents at once? In that case none of them would be the activeDocument. The problem is you have to maintain 2 sets of scripts: One for user actuated (Doc = app.activeDocument) and a second for the eventListener (Doc = event.parent).
    Am I correct in my assumption or is it possible for the script to determine if it was executed manualy or by eventListener?
    Thanks in advance, Alex.

    Hi Harbs,
    I get your point but can't apply it.
    doc = File(mypath)
    doc.pageItems.length > error
    doc.filePath = mypath > error (read-only)
    doc = File(mypath).open() > error
    Do you mean if(app.documents[0].filePath = mypath)...?
    thx
    Loic

  • Examples of old fonts that could cause AI CS3 to get unstable?

    I keep hearing this idea that old fonts can make AI unstable.
    It is an interesting theory, and one which could explain various things I've seen, but it is so vague that I don't know what to think about it.
    What are some examples of actual old fonts that would be real demonstrations of this idea? Are they all PostScript Type 1 faces? All released by Adobe prior to 1990? Any info at all?
    I would nominate the original MyriadMM typeface. I don't have it installed anymore, but someone might. But this is too obvious of a "is not supported on a modern Mac" case. I'm thinking if this theory is real, the example will be something like the original AvantGarde version 1 PS face from 1987 (or whenever).
    envelope

    Any old fonts can make any modern application unstable, particularly Adobe apps.
    Fonts have updates too as have applications. Fonts were not coded in the same way years ago as they are today and there were restrictions as to how many fonts could be in a font suitcase and how many characters could be in a font itself. There were also restrictions on system and operating system level that made that neccessary then.
    A lot have changed over the years and font technologies have evolved a lot and changed too.
    You mention a MM font (Multiple Master). MM fonts are no longer supported on systemlevel and/or in applications even though old documents that use them can show them even though the specific features that an MM font contains are no longer supported or can no longer be used (had to do with sclability and swashes).
    Fonts that have been around for a long time also tend to have been moved in parts between both users and font suitcases, sometimes not even living in the originally named suitcase (to get around restrictions of number of installed and active suitcases at the time) and might also have lost its postscript parts.
    It doesnt't matter if we are talking about type 1 or 3 or bitmap fonts, or truetypes or commerical ones or free ones. If the fonts are old, they can misbehave for many reasons. If an installed font has been through numerous crashes (applications, system, documents etc) also the font can have got hit and got damaged. That's why you need to check the health of your fonts regularly, and hve your original fonts safely on a disk or backup so you can reinstall it if it starts to misbehave.
    Nowadays you can check fonts for damage with FontBook that comes with the system, or with one of the font managers.
    Then there are the badly created fonts that pop up now and then too and therefore create problems. But that is another story.

  • Suddenly find is not working

    I have been using bridge CS3 (w/ PSE 6) on a mac for a year without a problem.  But all of a suddenly the find is not looking in subfolders when the checkbox look in all subfolders is checked.  I have over 20,000 items in the database without a find I am lost.  Please help.  I have tried deleting the cache directory did not help.

    Why use PSE6 if you have PSCS3? but that is pure curiosity
    Whenever in trouble with Bridge first thing to try is purge cache for folder using tools menu and then refresh preferences, restart Bridge holding down option key and reset preferences to default.
    After this you can try to quit Bridge and manual delete the Bridge plist file from the preferences folder user library.
    Not sure what you mean with cache directory but if you trash the Cache from the user library you will have to cache all the files again. It gives you a fresh start but also you will loose all prior cache unless you have exported to folders. But also then Bridge takes time to read this files for the first time.
    Apart from the above solution my personal opinion is that it is not wise to use Bridge as DAM (Digital Asset Management). CS3 is very unstable and when using it heavy you will have to refresh prefs and cache on a regular base. Bridge CS4 is much better in stability but also certainly not a preferred DAM application.
    If you have to find files from that amount (20K and more) using keywords and description data you better switch to a DAM application like Media Expression, Portfolio or maybe Fotostation. Those apps are not for free (although they have trial versions) but are more suitable for this job.
    Bridge is the perfect application for ingesting files, add metadata, batch rename, sorting labeling and start developing to ACR etc but not for DAM I'm afraid

  • Unstable software;  Adobe Photoshop CS2; I need to upgrade to CS3; is it available for MAC OS 10.9.4?

    How do I upgrade an unstable Adobe Photoshop CS2 to CS3?

    CS3 has not been sold for several years... you may now buy a perpetual license for Creative Suite 6 or you may buy a Cloud subscription
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

  • [JS](CS3) More EventListeners...?

    I was wondering if they were more EventListeners. I am specifically looking more "Copy" & "Paste" and their specifics "Before " & "After".
    Also,
    1) What is the difference between [var xxx = app.eventListeners.add(...);] and [app.eventListeners.add(...);]. They both add the event. Obviously one has a pointer to the event. But how usefull is it when the event is associated to a function or pointing to a file to execute? I can't imagine the pointer to the event bein "manipulated" after the event has been defined (var xxx = ...).
    2) Is the event "afterOpen" not supposed to trigger AFTER the document is opened? I have defined the event to execute a file and the script alerts me of "No Document Opened!!!". I understand the use of [event.parent] but that forces me to double the scripts that are tied to eventListeners. One regular version using app.activeDocument (accessable w/i User/Script Panel) & a modified version using event.parent (defined in the Startup Script). Are my assumption correct?
    Any help appreciated, Alex.

    Thanks, Harbs and Dave!
    Before I saw your answers I came up with a (longer) solution:
    var storyRef = app.activeDocument.stories;
    var arrStories = [];
    for(var j = 0; storyRef.length > j; j++){
        arrStories.push(storyRef[j])
        }//end for
    var arrParas2 = [];
    for(var x = 0; arrStories.length > x; x++){
        for(var y = 0; arrStories[x].paragraphs.length > y; y++){
            arrParas2.push(arrStories[x].paragraphs[y]);
            }//end for y
        }//end for x
    But I am curious about something. Your solution and my solution both result in an array of all paragraphs in the document but the data browser shows these arrays in different ways. I am wondering how to intrepret them.
    Your solution does not show the indexed paragraphs, mine does. See the images below.
    Your solution:
    My solution:

  • Bridge for CS3 very unstable

    This software is garbage. It crashes frequently, the files take an eternity to load, the RAW thumbnails don't display adjustments, etc. etc. I'm EXTREMELY angry at Adobe for foisting this trash on loyal customers. Is Bridge for CS4 better? I really don't want to spend another $200 for another turkey.

    >I'm going to have to upgrade to get a functioning version of Bridge.
    No, that is not true, however you will benefit from CS4 in PS as well in Bridge :-)
    From start off:
    Do system maintenance with at least checking permissions using Apple's Disk Utility.
    Bridge should be installed (version 2.1.1.9) at the root level application folder,
    Quit Bridge and in user library go to the preferences folder, inhere find and delete the plist folder for Bridge2 to the trash. In the same library go to caches / adobe / Bridge CS3 and inhere delete the cache folder also manually to the tras.
    restart Bridge holding down option key and choose delete preferences in the menu that appears. After Bridge has restarted reset the preferences for Bridge to your wishes (preferable High Quality thumbs).
    Go to the folder with your files and let Bridge cache it first. This takes some time depending on amount and size of files.
    Try again and even with 2GB RAM you should have a working application. If not something is wrong with either your install or your user account.

  • "CS3 is still pretty unstable with Leopard"

    That is what macramdirect just told me when I asked them about how to replace my problematic ram...so now I am going to pull their 12gb of suspect chips and see if their ram is the problem as it would be nice to have a stable machine before a new OS and CS ships...
    g ballard, "ACR 4.5 Did Not Fix Photoshop Bug Crashing" #1, 13 Aug 2008 9:28 am

    THE STEPS: I need 300 .tiffs at 720x540 for a Final Cut pro project slide show DVD (or web portfolio)
    I drag a folder of D200 D300 .nef raw files into the Dock and drop on Bridge
    In Photoshop, i create an sRGB 8bit 720x540 template .psd I build 720x540 up into layers with a copyright text layer on top (drop shadow effect and 30% transparency)
    From Bridge, I open a nef file in 16-bit aRGB Adobe Camera Raw, and use Option+click on Exposure/Blacks, and Brightness sliders (for gamma, white black points)
    I then open it in Photoshop and go to work on it using mostly Adjustment Layers, Selective Color, Levels, Curves (and save it as master.psd)
    I have a couple methods for resizing the 16-bit file to 720x540
    Sometimes I flatten the file, drag it over to the 720x540, Transform-Shift click it to scale it down
    Sometimes I flatten the file, Option 2x-click on the Background layer, Command-T to scale and rotate the image then drag it over to 720x540 .psd and finish the resizing there
    Sometime I Marquee a selection, Command+J my selection, and drag it over to 720x540 and use Transform to scale rotate and stretch-squeeze into box
    I build the 720x540 layer .psd up into a hundred layers or so
    I typically work on the individual 720x540 layers to finish them off using basic Photoshop tools, selective color, sharpening, sizing, clone stamp, a lot of Fade brush or color moves, history brush
    the 'bug' seems associated with leaving the nef/psd files open as I work, if I close the files as I work, I generally don't have a problem and can build the 720x540 psd into over 100 layers with no problems
    if I leave the files open as I work, I generally crash between 10-20 layers (10-20 files open), usually while moving a slider in ACR and I end up with a Photoshop crash report
    +++++++
    if anyone is into this workflow, I would be interested in hearing if you are having any problems with it on Leopard, CS3, Intel-based Mac (I recall I had the problem on my 2007 2.66 Mac Pro, too, but don't have Leopard on it anymore to test)

  • CS3 (PC) is very unstable, crashes constantly

    I'm having some maddening problems with CS3 on my work PC. Some days, the program is stable, opens files just fine, and acts like it should. But, some days, it takes 5 or 6 tries just to get Id to run; it crashes while starting up, and I get an error about a "serious error being detected." And sometimes, ID just wont open a file, no matter what I do. It give either an Error 3 or Error 5, and just wont open the file.
    I've tried re-installing the software several times, tried closing every other open program, tried turning down the quality settings, but I can't seem to get Id to run consistently.
    This is the latest version, with all of the updates installed. Does anyone have any suggestions for me to try? I need to get this resolved, since I have work to get done. Thanks!

    No, no fonts manager, but there are a lot of fonts installed. I'll try pairing them back and see if that helps.<br /><br />I'll also check on the video drivers.<br /><br />I just tried to open a few files, including one I was working on yesterday, and got "error 5" a couple of times. <br /><br />I also got a "InDesign has detected a serious error, and needs to close" with this error signature: AppName: indesign.exe      AppVer: 5.0.2.640      ModName: public.dll<br />ModVer: 5.0.2.640      Offset: 0002e26a<br /><br />And here's the crash log:<br /><?xml version="1.0" encoding="UTF-16"?><br /><DATABASE><br /><EXE NAME="InDesign.exe" FILTER="GRABMI_FILTER_PRIVACY"><br />    <MATCHING_FILE NAME="ACE.dll" SIZE="846336" CHECKSUM="0x68CA6C7A" BIN_FILE_VERSION="2.11.36.1" BIN_PRODUCT_VERSION="2.11.0.1" PRODUCT_VERSION="2.11" FILE_DESCRIPTION="Adobe Color Engine" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="ACE" FILE_VERSION="2.11.36" ORIGINAL_FILENAME="ACE.dll" INTERNAL_NAME="ACE" LEGAL_COPYRIGHT="© 1999-2007 Adobe Systems Incorporated" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xD1BE6" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.11.36.1" UPTO_BIN_PRODUCT_VERSION="2.11.0.1" LINK_DATE="04/10/2007 22:49:28" UPTO_LINK_DATE="04/10/2007 22:49:28" VER_LANGUAGE="English (United States) [0x800]" /><br />    <MATCHING_FILE NAME="AdobeLinguistic.dll" SIZE="536576" CHECKSUM="0x5A800AD" BIN_FILE_VERSION="3.1.128.3" BIN_PRODUCT_VERSION="3.1.128.3" PRODUCT_VERSION="3.1.3" FILE_DESCRIPTION="Linguistic Library" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="Adobe Linguisitc Library" FILE_VERSION="3.1.3" ORIGINAL_FILENAME="AdobeLinguistic.dll" INTERNAL_NAME="Lilo" LEGAL_COPYRIGHT="Copyright 1999-2007 Adobe Systems Incorporated. All Rights Reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x84C30" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="3.1.128.3" UPTO_BIN_PRODUCT_VERSION="3.1.128.3" LINK_DATE="07/09/2007 23:49:24" UPTO_LINK_DATE="07/09/2007 23:49:24" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobeLM.dll" SIZE="2662400" CHECKSUM="0xE811BA39" BIN_FILE_VERSION="2.1.2.12907" BIN_PRODUCT_VERSION="2.1.2.12907" PRODUCT_VERSION="2.1.2.1082 (BuildVersion: 46.278103; BuildDate: Wed Feb 28 2007 17:43:17)" FILE_DESCRIPTION="AdobeLM" COMPANY_NAME="Adobe Systems, Inc." PRODUCT_NAME="AdobeLM" FILE_VERSION="2.1.2.1082 (BuildVersion: 46.278103; BuildDate: Wed Feb 28 2007 17:43:17)" ORIGINAL_FILENAME="AdobeLM.dll" INTERNAL_NAME="AdobeLM" LEGAL_COPYRIGHT="Copyright © 2002-2007  Adobe Systems, Inc.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x7" MODULE_TYPE="WIN32" PE_CHECKSUM="0x297BEC" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.1.2.12907" UPTO_BIN_PRODUCT_VERSION="2.1.2.12907" LINK_DATE="03/01/2007 03:17:51" UPTO_LINK_DATE="03/01/2007 03:17:51" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobeLM_libFNP.dll" SIZE="2527744" CHECKSUM="0x99B919F7" BIN_FILE_VERSION="11.3.5.12907" BIN_PRODUCT_VERSION="11.3.5.12907" FILE_DESCRIPTION="FLEXnet Secure Activation Module" COMPANY_NAME="Macrovision Europe Ltd." PRODUCT_NAME="FLEXnet Publisher (32 bit)" FILE_VERSION="11.03.005" INTERNAL_NAME="libFNP.dll" LEGAL_COPYRIGHT="Copyright (c) 2006, Macrovision Europe Ltd. and/or Macrovision Corporation" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="11.3.5.12907" UPTO_BIN_PRODUCT_VERSION="11.3.5.12907" LINK_DATE="06/27/2006 09:36:25" UPTO_LINK_DATE="06/27/2006 09:36:25" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobeOwl.dll" SIZE="882176" CHECKSUM="0x828A39B9" BIN_FILE_VERSION="1.0.93.0" BIN_PRODUCT_VERSION="1.0.93.0" PRODUCT_VERSION="1.0.93" FILE_DESCRIPTION="Adobe Owl" COMPANY_NAME="Adobe Systems, Incorporated" PRODUCT_NAME="Adobe Owl" FILE_VERSION="1.0.93" ORIGINAL_FILENAME="AdobeOwl.dll" INTERNAL_NAME="Adobe Owl" LEGAL_COPYRIGHT="Copyright © 2006-2007 Adobe Systems Incorporated. All Rights Reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0xDB73E" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.93.0" UPTO_BIN_PRODUCT_VERSION="1.0.93.0" LINK_DATE="02/22/2007 10:06:27" UPTO_LINK_DATE="02/22/2007 10:06:27" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobePDFL.dll" SIZE="4653056" CHECKSUM="0x552C930B" BIN_FILE_VERSION="8.1.0.1146" BIN_PRODUCT_VERSION="8.1.0.1146" PRODUCT_VERSION="8.1.0.1146" FILE_DESCRIPTION="Adobe PDF Library" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="Adobe PDF Library" FILE_VERSION="8.1.0.1146" ORIGINAL_FILENAME="" INTERNAL_NAME="PDFL" LEGAL_COPYRIGHT="© 1987-2007 Adobe Systems Incorporated. All Rights Reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x47C12D" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="8.1.0.1146" UPTO_BIN_PRODUCT_VERSION="8.1.0.1146" LINK_DATE="02/26/2007 22:16:06" UPTO_LINK_DATE="02/26/2007 22:16:06" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobePSL.dll" SIZE="12271616" CHECKSUM="0xBF046305" BIN_FILE_VERSION="10.0.0.1" BIN_PRODUCT_VERSION="10.0.0.1" PRODUCT_VERSION="CS3" FILE_DESCRIPTION="AdobePSL" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="AdobePSL" FILE_VERSION="10.0 (10.0x001)" ORIGINAL_FILENAME="AdobePSL.dll" INTERNAL_NAME="AdobePSL" LEGAL_COPYRIGHT="© 1984-2007 Adobe Systems Incorporated" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xBB9F91" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="10.0.0.1" UPTO_BIN_PRODUCT_VERSION="10.0.0.1" LINK_DATE="02/22/2007 10:53:56" UPTO_LINK_DATE="02/22/2007 10:53:56" VER_LANGUAGE="English (United States) [0x800]" /><br />    <MATCHING_FILE NAME="AdobeUpdater.dll" SIZE="496128" CHECKSUM="0x83F10D42" BIN_FILE_VERSION="5.1.0.1082" BIN_PRODUCT_VERSION="5.1.0.1082" PRODUCT_VERSION="5.1.0.1082 (BuildVersion: 46.278103; BuildDate: Wed Feb 28 2007 17:43:17)" FILE_DESCRIPTION="Adobe Updater Library" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="Adobe Updater Library" FILE_VERSION="5, 1, 0, 1082" ORIGINAL_FILENAME="AdobeUpdater.dll" INTERNAL_NAME="AdobeUpdater.dll" LEGAL_COPYRIGHT="Copyright (c) 2002-2007 by Adobe Systems Incorporated.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x7BA10" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="5.1.0.1082" UPTO_BIN_PRODUCT_VERSION="5.1.0.1082" LINK_DATE="03/01/2007 03:22:23" UPTO_LINK_DATE="03/01/2007 03:22:23" VER_LANGUAGE="English (United States) [0x409]" /><br />    <MATCHING_FILE NAME="AdobeXMP.dll" SIZE="389120" CHECKSUM="0x946A18F5" BIN_FILE_VERSION="4.0.0.6" BIN_PRODUCT_VERSION="4.0.0.0" PRODUCT_VERSION="4.0" PRODUCT_NAME="Adobe XMP Core" FILE_VERSION="4.0-c006" ORIGINAL_FILENAME="AdobeXMP.dll" INTERNAL_NAME="AdobeXMPCore" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x6CEDE" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="4.0.0.6" UPTO_BIN_PRODUCT_VERSION="4.0.0.0" LINK_DATE="06/14/2006 15:37:36" UPTO_LINK_DATE="06/14/2006 15:37:36" VER_LANGUAGE="English (United States) [0x800]" /><br />    <MATCHING_FILE NAME="adobe_caps.dll" SIZE="214528" CHECKSUM="0xF0EFC972" BIN_FILE_VERSION="0.0.120.0" BIN_PRODUCT_VERSION="0.0.120.0" PRODUCT_VERSION="0,0,120,0" FILE_DESCRIPTION="Adobe CAPS DLL" COMPANY_NAME="Adobe Systems Incorporated" PRODUCT_NAME="Adobe CAPS" FILE_VERSION="0,0,120,0" ORIGINAL_FILENAME="adobe_caps.dll" INTERNAL_NAME="adobe_caps.dll" LEGAL_COPYRIGHT=" (c) 2006-2007 Adobe Systems, Inc.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0

  • [JS CS3] AfterOpen event (extension of a former topic)

    Hi considering this thread :
    http://www.adobeforums.com/webx/.59b59abf/3
    I get a semi-successful result.
    Pointing to the activeDocument using app.documents[-1] works well when I open the first document. Everything is fine.
    BUT as soon as I open a second document, it yells that the object doesn't exist anymore :-(
    using app.documents[0] seems to produce the same effects.
    Did anyone solved that error ?
    Thx to all.
    loic

    Hi Harbs,
    I get your point but can't apply it.
    doc = File(mypath)
    doc.pageItems.length > error
    doc.filePath = mypath > error (read-only)
    doc = File(mypath).open() > error
    Do you mean if(app.documents[0].filePath = mypath)...?
    thx
    Loic

  • DW CS3 Design View editing goes unstable, loses data

    MacOS 10.5.8 on  iMac, Intel Core 2 Duo
    The attached file ---bare html, no header or trailer-- passes the "Validate Current Document" and so presumably contains  completely valid HTML.  Besides that, it's really simple and short, a cut-down of a somewhat longer file I made for posting about this issue.
    I just restarted my Mac, opened DW, opened this file for edit in Design View, selected the final word in the second paragraph ("beyond") and deleted it.  The entire second paragraph disappeared. I immediately saved to another file, re-opened it,  and confirmed that the 2nd paragraph is, in fact, missing from the file.
    Using this code, do you reproduce this issue?
    Have you seen this kind of issue before?
    Fixes?  Suggestions?
    Note:  Yes, editing in Code View sidesteps this issue but that's an emergency workaround, not an acceptable alternative for production work.
    TIA,
    hen3ry

    MacOS 10.5.8 on  iMac, Intel Core 2 Duo
    The attached file ---bare html, no header or trailer-- passes the "Validate Current Document" and so presumably contains  completely valid HTML.  Besides that, it's really simple and short, a cut-down of a somewhat longer file I made for posting about this issue.
    I just restarted my Mac, opened DW, opened this file for edit in Design View, selected the final word in the second paragraph ("beyond") and deleted it.  The entire second paragraph disappeared. I immediately saved to another file, re-opened it,  and confirmed that the 2nd paragraph is, in fact, missing from the file.
    Using this code, do you reproduce this issue?
    Have you seen this kind of issue before?
    Fixes?  Suggestions?
    Note:  Yes, editing in Code View sidesteps this issue but that's an emergency workaround, not an acceptable alternative for production work.
    TIA,
    hen3ry

  • AddEventListener afterOpen to Document

    The CS3 scripting guide specifically mentions that you can use the "afterOpen" event on either an Application or Document object. I seem unable to bind to the afterOpen event on a document, however. What I am trying to do is detect certain files being opened, read metadata from them, close that document, and open a new document based on the metadata of the original.
    It sounds like it should be easy, but the "afterOpen" event is a little misleading. Although it contains information about the document, the application has not yet finished opening the document - meaning it does not yet have a window or has not yet become the activeDocument. I have a reference to the document being opened, but addEventListener has now apparent effect and I cannot call doc.close() without a javascript error being thrown.
    The code is fairly straightforward so far:
    function doAfterOpen(event) {
    var doc = event.parent;
    //read from the first story
    var story = doc.stories.firstItem();
    if(story) {
    var realFilePath = story.extractLabel("realPath");
    //I now have the realpath and need to close this temporary document
    doc.close(); <--- Throws a javascript error: 1 (I'm guessing cause it's not yet open which belies the afterOpen name)
    -- OR --
    doc.addEventListener("afterOpen",function(event) { alert("docOpen"); })) <---- it never fires
    Anyone have any idea if there is actually a way to bind to a REAL afterOpen event, meaning that the document as in fact been opened???

    I just jumped on this bandwagon. When I realized that afterOpen fires before the first window appears, I tried opening one in my event handler:
    //DESCRIPTION: Start-up Script
    #target indesign
    #targetengine 'onOpen'
    (function() {
      app.eventListeners.add("afterOpen", afterOpen);
      function afterOpen(myEvent) {
        myEvent.target.windows.add();
    This worked. The window was drawn. But when I tried to close the window, InDesign CS4 crashed. To be thorough, I shall now go through the process again to make sure it is repeatable ... Yes it is. I just tried again with a different document -- happens it was one that had to be converted from CS3. Same thing happened. One window only which on closing caused the crash.
    Then, restarting CS4 caused the document to be recovered with two windows.
    Looks like APID is the way to go if you want to do anything useful with a document when it opens.
    Dave

  • EventListeners

    Hi all,
    I have been testing today with Eventlisteners in CS3.
    Can't figure out the logic of it. I have the code below:
    #targetengine "session"
    main();
    function main(){
    var myApplicationEventListener = app.eventListeners.add("afterOpen", myEventInfo, false);
    function myEventInfo(myEvent){
    alert(myEvent.currentTarget.documents.length);
    app.activeDocument.textFrames.add();
    The thing is that the alert says that there is 1 document open,
    but when I want to do something with this doc I get an error message
    that there is no open document.
    Can someone help with this?
    Thanks Michel

    I recommend reading another post about Eventlistener that I was involved in (
    Alexandre VERCAMMEN, "(CS3) Does anyone know how to place request for..." #, 7 May 2008 12:42 pm). Regarding the close statement, with the help of Olev, we went the option of menu.actions. Please note the limitations (which a + in my case) of closing the doc. by closing the window.
    At Startup I run the following script. FYI: A lot of my scripts are triggered Manualy or by Menu Actions, therefore a few GLOBAL vars. Also it adds flexibility when installed for different machines.
    The Function EventOpen DOES NOT WORK when associated to app.eventListener, it crashes InDesign when closing the document! But it does work when triggered manually or by menu.
    #target indesign
    #targetengine "session"
    app.scriptPreferences.version = 5.0;
    //*** Initialize GLOBAL Variables
    app.scriptArgs.clear();
    app.scriptArgs.set("Event_Path", myScriptPath); //***Path to InEventScript Plug-In
    app.scriptArgs.set("Event_Open", myScriptPath + "/PrePressOPEN.jsx");
    app.scriptArgs.set("Event_Close", myScriptPath + "/PrePressCLOSE.jsx");
    app.scriptArgs.set("Event_Copy", myScriptPath + "/PrePressCOPY.jsx");
    app.scriptArgs.set("Event_Clean", myScriptPath + "/PrePressCLEAN.jsx");
    app.scriptArgs.set("Event_Print", myScriptPath + "/PrePressPRINT.jsx");
    app.scriptArgs.set("Event_App", myScriptPath + "/PrePressAPPPreferences.jsx");
    app.scriptArgs.set("Event_Doc", myScriptPath + "/PrePressDOCPreferences.jsx");
    //******************** ACTIONS ********************
    app.menuActions.item("Open...").addEventListener("afterInvoke",EventOpen, false);
    app.menuActions.item("Close").addEventListener("beforeInvoke",EventClose, false);
    app.menuActions.item("Copy").addEventListener("afterInvoke",EventCopy, false);
    app.menuActions.item("Paste").addEventListener("afterInvoke",EventClean, false);
    app.menuActions.item("Print...").addEventListener("beforeInvoke",EventPrint, false);
    //****************** FUNCTIONS Definitions ********************
    function EventOpen (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Open"));
    if (myExeSrcFile.exists)
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    function EventClose (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Close"));
    if (myExeSrcFile.exists)
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    function EventCopy (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Copy"));
    if (myExeSrcFile.exists)
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    function EventClean (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Clean"));
    if (myExeSrcFile.exists)
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;
    function EventPrint (itsEvent)
    var myExeSrcFile = new File (app.scriptArgs.get("Event_Print"));
    if (myExeSrcFile.exists)
    myExeSrcFile.open ('r:(read)');
    app.doScript(myExeSrcFile, ScriptLanguage.javascript);
    myExeSrcFile.close();
    else
    alert ("Error! Missing File:\n\n" + myExeSrcFile.fsName);
    return;

  • Unable to open linked files in new CS3 install

    One of my clients just purchased a new PC (Dell Inspiron 537S) with Windows Vista Home Premium to replace his old Inspiron 530 (also running Vista HP). After installing CS3 Design Studio and attaching an external drive loaded with his file archive, all of his Illustrator files which include links load with the following error:
    "An error occurred trying to read the linked file "file.xxx". Choose Repair to locate the missing file, Replace to select another file or Ignore to leave the link unchanged."
    This shouldn't be unusual, if the path to a linked file has changed, you'd need to point the link to the new path, but clicking Repair or Replace and browsing to the linked file (which invarably is in the same directory as the .ai file, and is usually a .psd which opens just fine in Photoshop) just cycles back to the same error message, ad infinitum. After about 30 tries, I got one of the links to load correctly, resaved the document, thinking that would repair it, but when I opened it again, got the error.
    These files were created on multiple computers, and none of the other computers (all with CS3) have ever had any trouble opening them. This despite the drive letter on the external drive being unstable on the old system (would often be J:, K: or L:, and images always worked).
    Any new .ai files we create on this file which have links all work fine.
    Manually replacing the links in a file is not an option for two reasons:
    1. There are thousands of .ai files in this archive, and re-linking images in them will take weeks.
    2. It simply doesn't work. I tried ignoring the error on one file to load it, and re-linking the .psd backgrounds to re-save it, and the images still didn't load after re-linking them.
    I have already tried doing a factory-restore of the system and reinstalling CS3, making sure that there were no errors in the install. What else might cause this behavior, and how can I resolve it?

    What else might cause this behavior, and how can I resolve it?
    Outdated permissions on the files from your old computer. Right-click, Properties --> Security --> Advanced, disable Inherit settings from parent folders, chose to copy. After that, delete outdated security keys and assign current ones. You may even need to go so fart as to Take Ownership of some files to correctly restore the new system's default security settings.
    Mylenium

Maybe you are looking for

  • Need a good free data recovery program

    Can anyone suggest a good free data recovery program? I have some deleted images on a camera card that I'm trying to revive. Thanks!

  • Clicked: Sort field; by artist. Nothing happened. It wont do it for me. Why?

    I have been tryin to sort my itunes by artist for a while and it just wont work and I cant figure out why, its like I am not even clicking the button. Help would be great.

  • WLC 4400 to WLC 5508

    Hi All I want to migrate from WLC 4400 to WLC 5508. currently on WLC 4400 we got 10 AP are connected with 5 SSID having different authentication method. On WLC 5508 If I create the same SSID with same key, will I need to reconfigure anything on end u

  • OSX 10.4.11 (Tiger) and newest MacBook Pro - is it possible ?

    Hello, I have just bought the latest high end MacBook Pro 2.5GHz and it came with Leopard. I would still like to work with Tiger. Is there a way I can boot with 10.4.11 despite it might (or it is not) be supported by Apple? I have am older MacBook pr

  • Flash Website "Slide-Show" like Navigation

    Hey guys,    I am designing a website and for the first time I will be trying to implement Flash as a means for navigating the website. I have worked with flash before, but only for animation. I am trying to make a 'Slide-Show' like flash object that