Event scripting issues

I am trying to get the following script working as a startup script.
the goal is that when the user chooses to save the document, they are presented with a dialog box asking for a quick summary of the edits that were made. Then this info is written to XMP fields.
The core functionality actually works, the dialog prompts and the data gets saved in the XMP.
The problem is that when the save action is initiated an error dialog pops up announcing "The requested action could not be completed because the object no longer exists." and then the script proceeds and functions properly, then it prompts for input and saves the data again.
I get an error, then the script runs twice.
I am confused.
#targetengine session
var myEventListener = app.addEventListener("beforeSave", myPromptForInput);
function myPromptForInput(myEvent){
var myTimeStamp = myEvent.timeStamp
var myDialog = app.dialogs.add({name:"Enter a simple description of edits made",canCancel:true});
with(myDialog){
//Add a dialog column.
with(dialogColumns.add()){
//Create a text edit field.
var myTextEditField = textEditboxes.add({editContents:"Description of document changes", minWidth:300});
//Display the dialog box.
var myResult = myDialog.show();
if(myResult == true){
//Get the values from the dialog box controls.
var myNotes = myTextEditField.editContents;
//Remove the dialog box from memory.
myDialog.destroy();
myAddXMPData(myNotes + " - " + myTimeStamp);
//alert(myEvent);
function myAddXMPData(myNotes){ 
//var myDocument = app.documents.item(0);
var myDocument = app.activeDocument;
with(myDocument.metadataPreferences){
author = "James Haney";
description = myNotes;
var myNewContainer = createContainerItem("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes");
setProperty("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes/*[1]", myNotes);

@Jarek – I tested your code as well.
Even without starting Illustrator I can see one warning message. The script is running fine as is.
If I add something to InDesign's XMP data and do a document save your editing window is showing up and I can edit a text field.
After hitting ok, a warning message is coming up.
1. Unsaved named document.
2. After working the keyboard shortcut for save cmd + s your text edit field is coming up:
3. Adding some text:
4. Warning message is popping up after hitting OK:
This warning message is quite different from James' error message:
Warning
An attached script is causing the following error:
myAddXMPData is not a function
Would you like to disable this event handler?
[ ] Do not show again
[No] [[Yes]]
Tested with InDesign CC 2014.2 v10.2.0.69 on Mac OSX 10.7.5.
Script is saved in folder:
Applications/Adobe InDesign 2014/Scripts/startup scripts/Get-myXMP-atSave-Dummy.jsx
Uwe

Similar Messages

  • Error trying to display a report file in FDM event script

    Hi
    I am trying to display a file (report) during an event script and receive an error "Object reference not set to an instance of an object" . The process works in version 9.3 but is generating this error during our upgrade testing on 11.1.2.2 (different hardware)
    The file (check report) is getting written correctly the \OutBox\Log directory. The file contains a standard Check Report with a file extension .pdf ( lngFileType = 31)
    We have no issues creating the file
    We try to display the file on the screen for the user using the following code which fails with the "Object reference not set to an instance of an object" error and also a message "Could not load XML file:" with the file name and path
    'Open report file in web client
    RES.PlngActionType = 4
    RES.PstrActionValue = strFileName
    Symptoms:
    We can open the same file as text with RES.PlngActionType = 1
    Everyone has rights to open/read a file in the directory
    File can be opened manually and appears correct
    Any help would be appreciated. I have not found similar issues on the forum. Support has offered no suggestions to date

    Hi and thanks for your response.
    Yes, we have tried all the various type of files ( ScriptActionTypes). The Type = 1 will open the file, but as a text stream without formatting, etc. If we try type = 3 we receive a different error message:
    Error: Invalid Report ID: 0
    Detail: Stacktrace:
    upsAppServerDM._clsAppServerDM.fPublishReport(lngReportID[Int32], lngPubFileType[Int32], strReportSQL[String], strSubReportSQL[String])
    Hyperion.FDM.Pages.ViewReportActionEvent.ExecuteReport(reportID[Int32], sqlStatement[String])
    Hyperion.FDM.Pages.ViewReportActionEvent.PreviewReport()
    Also, the Validation Report is enabled (we are using check with warnings - ID133), I have tried changing the default Web Settings from .PDF to .html and back again and tried the various other default options available under Web Settings.
    If we create a simple test text file, we can open the file as text (Type = 1)
    Here is the complete error message employing Type = 4 (XML)
    Error: Object reference not set to an instance of an object.
    Detail: Stacktrace:
    Hyperion.FDM.Pages.IntersectionSummaryCheck.FillTitleRow()
    Hyperion.FDM.Pages.IntersectionSummaryCheck.Page_Load(sender[Object], e[EventArgs])
    System.Web.UI.Control.OnLoad(e[EventArgs])
    Hyperion.FDM.Pages.BasePage.OnLoad(e[EventArgs])

  • Firefox is having "Script" issues (Not Responding) und possibly Flash issues?

    Okay, downloaded Firefox for the first time in like a year yesterday. It was working beautifully, oh, how I've missed it. I hate using Google Chrome with a fiery burning passion.
    However, though it was working perfectly yesterday, I have not downloaded anything or got any plug-ins/extensions, whatever.
    Today, however, I can go to www.google.com (on firefox), but if I try to go to my banks website, or imvu.com, or something like that, all the sudden Firefox decides to hang. It freezes und I get that annoying "(Not Responding)" at the top. I have to close out of the browser entirely, open it up und forgo the session restore.
    Some websites are okay, however, it seems many of them aren't.
    I get a script error message, so far the one for imvu.com that popped up was "lookout.bluecava" or something like that. Asked if I wanted to wait for script to respond or if I wanted to stop it. Either way, it ends with me closing out und starting back at google.
    Right now, to ask this question, I had to re-download google chrome, und log in from that browser since Firefox doesn't even want to support it's own support forum! Crazy stuff, right?
    Anyway, since it's having a "script" issue, I went to java, made sure I had the updated java installed on my computer, then I made sure that I had the updated java plug-in. Und I even downloaded the 64bit java for it as well, both the 7u45 or whatever.
    So, my java on my comp und firefox browser are seemingly up to date, und the Add-On thing for Firefox to check if plugins are up to date says they all of them are up to date.
    Still having the issue. The moment I go to imvu or another site that has that issue, it freezes within 10 seconds und that's all she wrote.
    So, I'm really not wanting to go back to Google Chrome for another year, I miss the hell out of Firefox.
    To Add: The issue I am having right now with Firefox is the same issue I had a year ago, when I had to uninstall firefox und go with Chrome in the first place.
    But, since it was acting normal yesterday when I installed it, I figured that it was fixed. Wrong in less than 24 hours.
    Before I submitted this, I decided to hop back onto Firefox und try something.
    I disabled the Shockwave Flash und the Shockwave Director plugins. Now, Firefox is working again.
    Sooooooooooooooooooooooooooooooooo.
    It asks me if I want to install the "flash" plugins needed to view some content on the page (I used imvu.com to try it out after disabling the shockwave), but still runs.
    So, what do I need to do for flash? Or better yet, what's going on with it?
    I downloaded the flash yesterday within half an hour of starting Firefox up after downloading it. Und it worked just fine for hours.
    I shut the comp down, packed it up, went home, come back to work, hop on the net und BAM. All the sudden Shockwave is having issues with Firefox when nothing was done to instigate it? Doesn't make sense.
    Other info:
    Windows 7 Home Premium on HP laptop.

    I will give Firefox 24.1 a try und see if shockwave flash actually works without making it hang und resulting in need of force close.

  • How to get uploaded file name and path in BefExportToDat event script

    I would like to get hold of the uploaded file name and full path in the event script "BefExportToDat", as I need to extract values from particular fields. However I have not yet found a way to do this.
    - The input variable "strFile" returns the .Dat file path in the Outbox, to which it is about to export the data. This is no use to me.
    - The API variable RES.PstrFilename is returning nothing
    I am using RES.PstrFilename in the "BefFileImport" event script in a different FDM application and it works fine, however I need to find a way to get this to work in the "BefExportToDat" event script.
    Please let me know how this might be achieved.

    I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
    Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
    Error:
    Error: Export failed.
    Detail: File not found.
    This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?

  • WAD Java script issue after upgrade to 7.3

    Dear all,
    We have just upgraded our system from BW 7.01 to 7.3 SP4. One of the custom web templates in the system uses java script to hide few items on every screen refresh. Post upgrade, this functionality is behaving strangely, as the hidden items automatically get 'un-hidden' on page refresh.
    Please let me know if there are any known script issues in web templates in system upgrade scenarios. Any pointers would be appreciated.
    Thanks,
    Abhishek.

    Pls check out this link
    http://www.google.co.in/url?sa=t&rct=j&q=java%20script%20issue%20after%20upgrade%20bw%20to%207.3&source=web&cd=7&sqi=2&ved=0CEsQFjAG&url=http%3A%2F%2Fcsc-studentweb.lr.edu%2Fswp%2FBerg%2Farticles%2FBIIT_2011%2FBIIT_Amsterdam%2FBIIT_2011_Berg_BW_73_upgrade_v16.pptx&ei=TT7iTtLgJ8LwrQf2oLDJAQ&usg=AFQjCNEUg1EvXM82AmBaGntD4YY7FZwHXw&cad=rja
    Pls assign points if it was useful.

  • DOM Based Cross-Site Scripting issue in RoboHelp 10

    We're using a WebHelp system originally deplyed using RoboHelp 9.0.2.271, and a recent security scan revealed the DOM based cross-site scripting issue.
    I recently upgraded to RoboHelp 10, migrated my help system to this version, and redeployed the system, but our security scan is still detecting the cross-scripting vulnerability in WebHelp. Wasn't this issue resolved in RoboHelp 10?
    Thanks

    Hi,
    I’m not a security expert, but this script reads the URL of the current topic and redirects to the current topic with a bookmark. This is needed for when the same topic is used in multiple locations in the TOC.
    I’ll ask around about this security issue.
    Greet,
    Willam

  • Why iCal cancel of event edits issue is still not fixed after over 2 years?

    Why iCal "cancel of event edits" issue is still not fixed after over 2 years?
    I have been in the software engineering industry for over 14 years, but I have never seen a large corporation being so slow at addressing major issues like these.
    What would it take for Apple to start working on this issue?

    Yup. This is fully ridiculous that you can't cancel your updates once you start. I love the tool but this is on pretty significant issue.
    Sometimes I accidentally move a mtg or make some edit while viewing and you can't back you!!
    If you feel the same way, you should post a note here:
    http://www.apple.com/feedback/ical.html
    Message was edited by: SteveMc10123

  • I've used for months but am now so frustrated with the script issue I have uninstalled until I get some resolution. Help?

    I've to change the 10 to 20 solution to help solve the unresponsive script issue. I've tried safe mode. I've tried disabling all add-ons but still have it hang up. I don't seem to face that issue with explorer. Is microsoft sabotaging your efforts?

    Did you also try to disable all plugins?
    See [[Troubleshooting plugins]]
    Create a new profile as a test to check if your current profile is causing the problems<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Problems with close event scripts and closing Photoshop

    Hi!
    We are having problems with close event scripts ("Cls ") when closing/quitting Photoshop.
    The close event scripts are working without problem when closing an image. But when quitting Photoshop without having closed all images we are observing the following behaviour:
    with CS2 the close event scripts are not triggered at all
    with CS4  the close event scripts are triggered and executed correctly. But after that the Photshop process freezes. No visible GUI, you have to kill the process with the task manager.
    I can reproduce this behaviour even with a small script consisting of a single alert('hello') and even an empty script. Is this an known bug or am I doing something wrong?
    Thanks for your help!
      Eric

    Check your energy saver settings under system preferences. That is where you set sleep setting.

  • Making event scripts generic between environments

    At present we have a couple of FDM event scripts which construct some MaxL statements and then execute them against the Essbase database (to clear data before loading). The problem we have is that the MaxL scripts require hard-coded usernames, passwords and servernames (to log in to ESSMSH). When migrating the scripts between environments, these scripts will have to be manually updated each time for the given environment to which they are being migrated.
    Is there a more elegant solution to this? One idea would be to have the values stored in a single plain text file (in a password-protected share) which would then be accessible by any of the various scripts in a given environment. But I would be interested to learn if there are alternatives to this.

    If you migrate environments, you are going to have to do some configuration pretty much anyway you go about it. The question is what is the easiest/most straight foward so that it doesn't get missed during a migration, IMHO.
    I would go with a well defined/documented "Global" config file that contains all of the information that may change. At a minimum, Usernames and passwords should be obfuscated/encrypted; however, it would be just as easy to do the whole file. Realize, that the decryption routines would be in your script code so this isn't 100% secure; however, it would prevent the casual user from quickly seeing usernames / passwords, etc. Furthermore, if you encrypted the whole file, they may not even realize there is a username/password in the file, etc.
    In my mind this is the way to go...
    Some other thoughts though, depending on what exactly you want to do....
    Option 2
    Username / Password / Server could be some variation on the server name so that the script always knows how to generate them. The negative side is that you would always need to create a new user / password anytime server changes, so you are still not escaping manual labor. (Though maybe you could use an API call to create it, but then you probably need a username/password to create the user... AAaaaahhhhhhhhh)
    While neat, this seems like it would suffer from James Bond syndrome. I'm going to kill you now Mr. Bond, but first I'm going to tell you all my intricate plans for world domination, put you in some ridiculous trap with an semi-obvious flaw, AND leave so that you have time to work on your escape......
    Option 3
    Make a Web Service and then have your scripts make a Web Call (i.e. http://www.mycompany.com/GetConfigInfo.asp?secretcode=12341234123) which would return all the info you need. (username, password, servers, etc). AS LONG AS the webservice machine doesn't move around, this might be a decent way of doing it. Anyone sniffing around the local machines would find the config info; however, anyone looking at the scripts would see the call and could just open it in a web browser. You could of course secure that by looking at the source of the request and if it's not an approved server, not return the requested info; however, now you are getting into more maintenance work........
    The time spent making this and potentially maintaining it probably isn't worth it.

  • Event store issues

    After upgrading my itunes account on my Iphone I am now having difficulties with my phones ical.  I cannot create new appointments.  Saying calendar is not set up and also event store issues.  How do I fix this?

    I have recently merged all my photos c6500 into one event and i was then splitting them back into years.  This worked ok for the first two splits but on the 3rd year I selected a photo being the first in the next year and then pressed event split.  The application immediately booted me out and now does not work. 

  • Photoshop sometimes freezes after on close ('Cls ') event script

    Hi!
    We are working on integrating Photoshop with a content management system. For this we are using a synchronisation file. The cms writes the filepath of pictures to be edited to the sync file. Photoshop writes a modified flag to the sync file and/or a closed flag after work is done. This is implemented by an on save ('save') and an on close ('Cls ') event script.
    The scripts are doing fine and the whole system is working. Now our problem: Sometimes (every 50 or 100 pictures) Photshop hangs up after closing a picture.
    As far as we can conclude from the sync file and log file the close event script did complete its work without problem in such a case. But after that Photoshop freezes with doing 50% CPU load.
    Has anyone an idea what we could be doing wrong? May it have to do with the file access of our scripts (sync file and log file)? Is there any common mistake with scripting that results in the described behaviour? Is this even a problem of our scripts?
    For everyone interested I attached the scripts copied together to a single text file.
    Thanks for your help,
      Eric

    Beolw the complete source code. Attached file in my first posting seems not to be working ("QUEUED"?).
    // The only script to be called by MRS when starting to edit a photo
    // in Photoshop. The image file itself is not to be passed as
    // parameter, it is just written to the sync file.
    // (see concept document.)
    * @@@BUILDINFO@@@ MRS_start.jsx 1.0.0.1
    #target photoshop
    //@include "MRS_settings.jsx"
    //@include "MRS_eventsinit.jsx"
    //@include "MRS_open.jsx"
    //@include "MRS_logging.jsx"
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    try {
        // Install the event scripts in Photoshop
        InitializeEvents();
        // Load the selected image files
        CheckOpenFiles();
    catch( e ) {
        // always wrap your script with try/catch blocks so you don't stop production
        // remove comments below to see error for debugging
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    =======================================================================================================
    //  Install all event scripts required by the MRS Photoshop integration
    * @@@BUILDINFO@@@ MRS_eventsinit.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    // Install all event scripts required by the MRS Photoshop integration
    function InitializeEvents(){
        //Check the script files.
        var onSave = new File(MRS_SCRIPTONSAVE);
        if (! onSave.exists) {
            Log("Script file not found: " + MRS_SCRIPTONSAVE);
            alert("MRS Anbindung fehlerhaft!");       
            return false;
        var onClose = new File(MRS_SCRIPTONCLOSE);
        if (! onClose.exists) {
            Log("Script file not found: " + MRS_SCRIPTONCLOSE);
            alert("MRS Anbindung fehlerhaft!");       
            return false;
        app.notifiersEnabled = true;
        //Install the script.
        installNotifier (onSave, "save");
        installNotifier (onClose, "Cls ");
        return true;
    // Install an event script
    function installNotifier(scriptFile, eventId) {
        if(findNotifier(scriptFile, eventId) != null) {
            Log("Script already installed: " + scriptFile.fullName);
        } else {
            app.notifiers.add(eventId, scriptFile);
            Log("New script file installed: " + scriptFile.fullName);
    // Checks if an event script is already installed
    function findNotifier(scriptFile, eventId) {
        for(i=0; i<app.notifiers.length; i++) {
            var installedNotifier = app.notifiers[i];
            if (installedNotifier.eventFile.fullName.toLowerCase() == scriptFile.fullName.toLowerCase()
                && installedNotifier.event.toLowerCase() == eventId.toLowerCase()) {
                    return installedNotifier;
        return null;
    =======================================================================================================
    //@include "MRS_settings.jsx"
    * @@@BUILDINFO@@@ MRS_logging.jsx 1.0.0.1
    // Class Logger
    function Log(text) {
        var logfile = new File (MRS_LOGFILE);
        logfile.open('a');   
        try {
            var now = new Date();
            logfile.writeln(now.toLocaleString() + " | " + text);
        } finally {
            logfile.close();   
    =======================================================================================================
    * @@@BUILDINFO@@@ MRS_settings.jsx 1.0.0.1
    MRS_PICTUREPATH = '/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/pictures/';
    MRS_SCRIPTPATH = '/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/ps-script/';
    MRS_SYNCFILE ='/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/PSIntergation.txt/';
    MRS_SCRIPTONSAVE = MRS_SCRIPTPATH + 'MRS_onsave.jsx';
    MRS_SCRIPTONCLOSE = MRS_SCRIPTPATH + 'MRS_onclose.jsx';
    MRS_LOGFILE = MRS_PICTUREPATH + 'PSIntegration.log';
    =======================================================================================================
    // Event script for "save" in Photoshop.
    // Marks the saved file in the sync file as "M" (modified)
    * @@@BUILDINFO@@@ MRS_onsave.jsx 1.0.0.1
    var begDesc = "$$$/JavaScripts/MRS_onsave/Description=Benachrichtigt MRS wenn das Bild gespeichert wurde." // endDesc
    var begName = "$$$/JavaScripts/MRS_onsave/MenuName=MRS OnSave" // endName
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_logging.jsx"
    Log("OnSave triggered.");
    try {
        var savedFile = GetDataFromDocument (app.activeDocument);
        var pssyncer = new PSSyncer();
        var photo = pssyncer.GetFileInfo(savedFile.fileName);
        if (photo != null) {
            photo.SetModified();
            pssyncer.Flush();
    }  catch( e ) {
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    // Extracts the file name from Photoshop Document class.
    function GetDataFromDocument( inDocument ) {
        var data = new Object();
        var fullPathStr = inDocument.fullName.toString();
        var lastDot = fullPathStr.lastIndexOf( "." );
        var lastSlash = fullPathStr.lastIndexOf( "/" );
        data.extension = fullPathStr.substr( lastDot + 1, fullPathStr.length );
        data.folder = fullPathStr.substr( 0, lastSlash );
        data.fileName = fullPathStr.substr( lastSlash+1, fullPathStr.length );
        return data;
    =======================================================================================================
    // Event script for "close" in Photoshop.
    // Marks the saved file in the sync file as "M" (modified)
    * @@@BUILDINFO@@@ MRS_onclose.jsx 1.0.0.1
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_logging.jsx"
    //@include "MRS_tools.jsx"
    Log("OnClose triggered.");
    try {
        var saved = SavedWhileClosing(arguments);
        var pssyncer = new PSSyncer();   
        for(var i=0; i<pssyncer.GetFileInfoList().length; i++) {
            var photo = pssyncer.GetFileInfoList()[i];
            if(photo.WorkInProgress() && !IsDocumentOpened(photo.GetFileName())) {
                if (saved) {
                    photo.SetModified();
                photo.SetClosed();
        pssyncer.Flush();
    }  catch( e ) {
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    // Checks if picture has been saved while closing it. (yes/no dialog on close)
    function SavedWhileClosing(myArguments) {
        var usingKeyCopy = false;
        var actionDescripto = null;
        var actionDescriptor = myArguments[0];
        if ( actionDescriptor != null && "ActionDescriptor" == actionDescriptor.typename ) {
            if (actionDescriptor.hasKey(stringIDToTypeID("saving"))) {
                return actionDescriptor.getEnumerationValue(stringIDToTypeID("saving")) == stringIDToTypeID("yes");
        return false;
        var actionDescriptor = myArguments[0];
        var s = "";
        if ( actionDescriptor != null ) {
            if ( "ActionDescriptor" == actionDescriptor.typename ) {
                alert(actionDescriptor.count);
                for(i=0; i<actionDescriptor.count; i++) {
                    s += actionDescriptor.getKey(i) + " | ";
                    s += typeIDToStringID(actionDescriptor.getKey(i)) + " | ";
                    s += actionDescriptor.getType(actionDescriptor.getKey(i))+ "\r\n";
        alert(s);
        //alert("1: " + actionDescriptor.getObjectValue(stringIDToTypeID("as")));
        //alert("2: " + actionDescriptor.getObjectValue(stringIDToTypeID("in")));
        //alert("3: " + actionDescriptor.getEnumerationType(stringIDToTypeID("saving")));
        alert("3-a: " + typeIDToStringID(actionDescriptor.getEnumerationType(stringIDToTypeID("saving"))));
        alert("3-b: " + typeIDToStringID(actionDescriptor.getEnumerationValue(stringIDToTypeID("saving"))));
    =======================================================================================================
    // Script used to open the files selected in MRS and written to
    // the sync file.
    @@@BUILDINFO@@@ MRS_open.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_tools.jsx"
    // Opens all image files marked in the sync file as "S" (start work).
    function CheckOpenFiles(){
        var pssyncer = new PSSyncer();
        for(var i=0; i<pssyncer.GetFileInfoList().length; i++) {
            var syncfile = pssyncer.GetFileInfoList()[i];
            if (syncfile.StartWork()) {
                //open the image file if in state "S" (start work)
                OpenFile(syncfile.GetFileName());
                //switch state to "W" (work in progress)
                syncfile.SetWorkInProgress();
                pssyncer.Flush();
            } else if (syncfile.WorkInProgress()) {
                if (!IsDocumentOpened(syncfile.GetFileName())) {
                    //File was marked as "W" (work in progress).
                    //-> Possibly Photoshop crashed. So just re-open the file and
                    //don't chnge state.
                    OpenFile(syncfile.GetFileName());
    =======================================================================================================
    // Some tool functions...
    * @@@BUILDINFO@@@ MRS_tools.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    // Checks if the document is currently opened in Photoshop.
    function IsDocumentOpened(fileName) {
        var fullFileName = MRS_PICTUREPATH + fileName;
        fullFileName = fullFileName.toLowerCase();
        for (i = 0; i < app.documents.length; i++) {
            if (app.documents[i].fullName.fullName.toLowerCase() == fullFileName) {
                return true;
        return false;
    // Opens an image file in Photoshop
    function OpenFile(fileName) {
        var syncfile = new File(MRS_PICTUREPATH + fileName);
        if (syncfile.exists) {
            app.open(syncfile);
    =======================================================================================================
    =======================================================================================================

  • LiveCycle ES2, Guides, SSL and IE 8/9 Cross Site Scripting Issue

    I have a guide that is being served up in the workspace.
    This guide works fine in all of the different browser versions provided they go through port 8080.
    If however you enable SSL on your server (port 8443) and serve up the guide in the workspace, the end user can fill the entire form out only to have the browser identify the submit process as a Cross Site Scripting issue.
    This is the result:
    The data is essentially lost and guide disappears.  I had a theory that maybe the submit process might be using the default server port for data submissions (8080) and created a customized submit process with the hardcoded targetURL.
    I tried to test my theory and got the same result.  I then modified my custom submit process to essentially do nothing (Started and ended the process with an abstract activity), and got the same result.
    The only other thing that I could think of, is that the automatically generated action script classes might be hard coded to use default port instead of the SSL port.
    Suggestions?!

    Hi
    You can rise SR for your issue for 5000+ user or you can also can connect wiht your system engineer team for can possible solution as setup IE and deploy it to 5000+ user pcs
    For your other question see below note:
    Recommended Browsers for Oracle E-Business Suite 11i [ID 285218.1]
    Regard
    Helios

  • FDM event scripts firing twice during data loads

    Here's an interesting one. I have added the following to three different event scripts (one at a time, ensuring only one of these exists at any one time), to clear data before loading to Essbase:
    Event Script content:
    ' Declare local variables
    Dim objShell
    Dim strCMD
    ' Call MaxL script to run data clear calculation.
    Set objShell = CreateObject("WScript.Shell")
    strCMD = "D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMAXL.cmd D:\Test.mxl"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    MaxL Script:
    login ******* identified by ******* on *******;
    execute calculation 'FIX("Member1","Member2") CLEARDATA "Member3"; ENDFIX' on *******.*******;
    exit;
    However, it appears that the clear is carried out twice, both before and after the data has been loaded to Essbase. This has been verified at each step by checking the Essbase application log:
    No event script:
    - No Essbase data clear in application log
    Adding above to "BefExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "AftExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "BefLoad" event script:
    - Script is NOT executed after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed).
    - Script is executed AFTER the data load to Essbase when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Some notes on the above:
    1. "BefExportToDat" and "AftExportToDat" are both executed twice, before and after the "Target System Load" modal popup. :-(
    2. "BefLoad" is executed AFTER the data is loaded to Essbase! :-( :-(
    Does anyone please have any idea how we might execute an Essbase database clear before loading data, and not after we have loaded fresh data? And perhaps on why the above event scripts appear to be firing twice?! There does not appear to be any logic to this!
    BefExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    AftExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    BefLoad - Essbase Application Log entries:
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+

    Hi Larry,
    As mentioned, our exports do not appear to be generating the "-B.Dat" and "-C.Dat" files at present. However, you are correct with the Export and Load event scripts firing twice (once for the main TB file and again for the journal file). Does this also mean it could continue to fire an additional two times for the "-B.Dat" and "-C.Dat" files?
    On the last run, the output was as follows with the modified scripts:
    After clicking on Export in Workflow, the Target System Load modal popup is displayed, and the first two files have been generated:
    14.24.15.0527_BefExportToDat.txt
    14.24.17.0617_AftExportToDat.txt
    After clicking on OK in the Target System Load modal popup, the actual load to Essbase takes place. A further six files are generated:
    14.24.21.0289_BefLoad.txt
    14.24.22.0117_AftLoad.txt
    *14.24.22.0152_BefExportToDat-A.txt*
    *14.24.22.0414_AftExportToDat-A.txt*
    *14.24.22.0433_BefLoad-A.txt*
    *14.24.22.0652_AftLoad-A.txt*
    This makes a lot more sense, since one can see that the event scripts are being run a second time against the journal files during the data load. Many thanks, this solves my problem as I can now place my script where I want in the process chain. It's just a shame that there are not separate event scripts to distinguish between the various .Dat exports/loads, which are clearly occuring at separate times in the process chain.
    Many thanks! :-)
    P.S. Updated script below if anyone wishes to use it:
    Sub BefExportToDat(strLoc, strCat, strPer, strTCat, strTPer, strFile)
    Dim strF, fso, tf, t, temp, m, miliseconds, strSuf
    t = Timer
    temp = Int(t)
    m = Int((t-temp)*1000)
    miliseconds = String(4 - Len(m), "0") & m
    strF = "D:\TEST\" & Replace(Time, ":", ".") & "." & miliseconds & "_BefExportToDat"
    strSuf = UCase(Left(Right(strFile,6),2))
    If strSuf = "-A" Or strSuf = "-B" Or strSuf = "-C" Then
    strF = strF & UCase(strSuf) & ".txt"
    Else
    strF = strF & ".txt"
    End If
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set tf = fso.CreateTextFile(strF, True)
    tf.WriteLine(strFile)
    tf.Close
    Set fso = Nothing
    End Sub

  • Executing Essbase Clear Script through FDM event scripts

    Hi,
    Is it possible to access and execute essbase clear script through FDM event scripts? I know one method is to modify Load action, but was wondering if can be done any other way.
    Thanks in advance.

    The Essbase client is installed on the FDM application server so yes. You can create a batch file that calls a calc script via the Essbase Client and execute this from your Event script

Maybe you are looking for

  • Syncing iPad 1 to OS 10.4.11

    I just purchased iPad 1, but iTunes (9.2.1) on my iBook G4 doesn't recognize the iPad. Software update tells me there are no updates for my iBook. What do I do?

  • Ejb-link is still required when using local references?

    Hi! In BEA's link (http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#1114738) there is the following comment for weblogic-ejb-jar.xml element 'jndi-name': "Assigning a JNDI name to a bean is not recommended. Global JNDI names generate hea

  • Applying patches after cumulative patchset

    Hai all, We have 10g installed on windows 2003 . I will install the latest patch set 10.2.0.4 do I have to follow this metalink id : 0.2.0.x Oracle Database and Networking Patches for Microsoft Platforms Doc ID: 342443.1 There are so many patches for

  • Can't get XP PC's to see airport extreme

    I recently purchased an airport extreme. When I first connected it both my apple laptops and XP desktops could see and connect wireless to the internet. I then went into enable security and configure the base station. Now none of the XP machines can

  • Cropped view on the web

    i am currently taking an online class. I don't think we are able to download the quicktime files for viewing. however I am still waiting on that answer. First I realized that on my xp64 I couldn't view the controls because 64bit and quicktime aren't