Enter name of the script in a transformation script?

Is there a variable or a parameter that I can ask for the name of the transformation running script?  I'm updating the Notes section of any object that is changed due to a transformation.  I would like to add the name of the transformation to the message.  I can hardcode in every script, but if I change the name of the script, I'll need to remember to update the function too.  Obviously, it would be safer to take the name programmatically.

Thank you!

-Eric


Hi Eric,.

not possible at the moment. Recorded an improvement for this request.

Philippe

Tags: Database

Similar Questions

  • Gets the name of the script?

    Hello

    just a simple question

    How can I get the name of the script in the script? (I want to do things, based on the name of the script, for example: 'resize_500x400'-> resize a chart up to 500 x 400 px)

    Or is it possible to get the name of the action that calls the script?

    Thank you!

    mtemp

    . Filename $

  • How to extract the directory name of the script

    I am currently working in the extendscript toolkit, how do I retrieve the name of the current script file so I can then get to "current working directory"? or do I have to hardcode it in dev?

    With the approach of try-catch, ESTK executing in the exception you want to enter the name of the file off the coast of the exception.

    try {}

    activeScript var = app.activeScript;

    } catch (ex) {}

    activeScript var = line (ex.fileName);

    }

    On the other hand, there is also. Filename $...
    Dirk
  • Sort by name via the script

    Hello world

    I would be grateful if someone could give some clues to sort by name from the

    Paragraph Styles, character Styles, Styles of object and panels color chart

    via the script.

    Thank you in advance.

    Edson Furman

    [email protected]

    To sort the styles I used the script below - works in CS3 and CS4 if it has been awhile since I finally tried. It could be coded with more elegance, but it worked well as it is. He does not account groups of style: I don't know what happens if your documents contain a sort you would better try.

    As for shades, these are not so easy to sort. There was a discussion about this at one of these sites:

    http://www.Hilfdirselbst.ch/gforum/gforum.cgi?jump=Forum%3d4

    http://InDesign-FAQ.de/

    Peter

    #target indesign
    
    sort_par_styles (app.documents[0]);
    sort_char_styles (app.documents[0]);
    sort_obj_styles (app.documents[0]);
    
    //-------------------------------------------------------------------------------
    
    function sort_par_styles (doc)
        {
        var string_array = sort_par_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.paragraphStyles.item (string_array[i]).move (
                LocationOptions.after, doc.paragraphStyles[i+2])
        }
    
    function sort_par_names (doc)
      {
      var array = doc.paragraphStyles.everyItem().name;
      array.shift (); array.shift ();  // exclude [No p.] and [Basic p/]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function sort_char_styles (doc)
        {
        var string_array = sort_char_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.characterStyles.item (string_array[i]).move (
                LocationOptions.after, doc.characterStyles[i+1])
        }
    
    function sort_char_names (doc)
      {
      var array = doc.characterStyles.everyItem().name;
      array.shift ();  // exclude [None]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function sort_obj_styles (doc)
        {
        var string_array = sort_obj_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.objectStyles.item (string_array[i]).move (
                LocationOptions.after, doc.objectStyles[i+4])
        }
    
    function sort_obj_names (doc)
      {
      var array = doc.objectStyles.everyItem().name;
      array.shift (); array.shift (); array.shift ();  array.shift (); // exclude  [None], [Basic Graphics Frame], [Basic Text Frame], [Basic Grid]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function case_insensitive (a, b)
      {
      return a.toLowerCase() > b.toLowerCase()
      }
    
  • Get the current name of the Run Script

    Hello

    I'm looking for the name of the current script that runs in DIadem.

    So I would like to call a script, and then everything is running I would record the name of the script (file name on disk) a text box on a report that I am generating.

    I know how to pass values to the report that I am not sure to get the name of the script that runs underway.

    Thank you

    Hi Tim

    You can use the CurrentScriptName and CurrentScriptPath variables.

    I hope this helps.

    Winfried

  • The name of the file as IPTC, but without the extension. (Currently using script of dam)

    Hello

    My apologies if this isn't the right forum to ask this question:

    I am currently using the name of the script file of title with CS4 Bridge - DAM http://www.damuseful.com/pages/PimpMyBridge.html - to get the name of the file in the IPTC title script. This however in the extension in the title field also puts. A JPG file named 2000 ends with 2000.JPG upward in the title field. I would like to not have the extension appear in the title field.

    Is it possible by modifying the script DAM / using any other script available for free.

    In case it helps, that's what the dam script currently looks:

    #target bridge

    If (BridgeTalk.appName = 'bridge')

    //-----------------------------------------------------------------------

    This script copies the file names of the thumbnails selected in the title field

    Also shows how to add menu items

    AdobeLibrary scripts should be loaded

    This script was created by John Beardsworth www.beardsworth.co.uk/ and modified by Peter Krogh www.DAMuseful.com

    This script can be freely distributed and modified

    //--------------------------------------------------------------------

    We will create our menu

    var menu = MenuElement.create ("command", "write to IPTC title field Filename', 'at the end of the tools');

    menu.onSelect = function (m)

    {

    var getFolderChildren = true;

    var filesOnly = true;

    var inches = getBridgeThumbnails (TYPES. PHOTOSHOP_OPENABLE, getFolderChildren, filesOnly);

    for (var i = 0; i < thumbs.length; i ++)

    {inch = inches [i];}

    MD = thumb.synchronousMetadata;

    ' md.namespace = ' http://ns.Adobe.com/Photoshop/1.0/ ";

    MD. title = thumb.name;

    }

    Window.Alert ("Done" + i + "records");

    };

    There are also 3 other Adobe library scripts that come with the download.

    I don't know anything about scripting, baby-steps would be appreciated.

    Thank you very much.

    Change:

    md.Title = thumb.name;
    

    TO:

    md.Title = decodeURI(thumb.name).replace(/\.[^\.]+$/, '');
    
  • The script in my web page is on the left side?

    The script on my web page is a letter on top of the other. Menu names and the script on the page. If I open a Google search bar research shows the script one above the other. Is there a setting that I can change? I've updated Järva. This on a Win 7 OS.

    Please post a screenshot of that.

    See this support article.
    How to make a screenshot of my problem?
    It is best to use a type of compressed as PNG or JPG image to save the screenshot and make sure you do not exceed a maximum file size of 1 MB.

    Then use the button Browse... below the text message response area to download the screenshot.

  • How can you change the name of the custom form fields?

    I made a form that required me to add a few custom fields.  When the form sends an email, custom fields appear as "Custom".  I need them to say what is the form field.  Can we achieve this by Muse?

    I tried to change the name of the script in DreamWeaver, but it caused the form to fail.

    Any ideas would be great.

    Thank you.

    You are not able to just type the new name in and on "Custom" label above it and see it changed in your email automatically?

  • Where to save the scripts

    East went to VMWorld and frequent PowerCLI session.  I'm a NOOB script and found a script that I want to run.  I saved it to:

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\Scripts

    But when I go to run the script POWERCLI says that it does not recognize the name of the script file.  I guess this is because it is not in the right place.  What I am doing wrong?

    You can automate this by placing a "< file > cd" in your profile.

    See profile: Autostart script for details on profiles.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Form - enter the names of the State/province drop-down list

    Hello again,

    I use Acrobat Pro DC using a MC Pro and I want to create a list drop-down States and provinces on my form. After clicking Properties and then Options, is there a way to enter all state names at the same time instead of adding one by one? I know there are scripts out there, but I thought that I could create the list that I needed from the List of States - 50 AMERICAN States - Canadian Provinces - Australian States - Mexican States - Brazilian - States ListStates.co... and copy and paste them.

    I read on the drop-down lists, but I don't see that he offered to DC Pro. Please correct me if I'm wrong.

    Thank you.

    Yes, it's possible, but it takes using a script.

    The basic format of this script is:

    this.getField("DropDownName").setItems (["Alaska", "Alabama",...]);

    If you have the items in a text file or a spreadsheet and want to import at the same time you can use a tool like this, I developed, which can be purchased here: Scripts custom Adobe: Acrobat - items import from a text file to a combo box or a list box

    I also offer a free sample with all 50 US States file field drop-down list that you can copy and use in your own file.

  • The value of PDF file printed via the script name

    Hi people!

    I have a little problem with the generation of a PDF file. First my Workflow:

    I have an InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After it is merged, we need to generate a PDF file. This PDF file is opened in acrobat. In the document, I am looking for one ID for each record so I can split the document to 100 files (each with 6 pages) and name by the ID that I found.

    The Acrobat script is finished and functional. I thought: the InDesign script is over, too. But I was wrong-. -.

    I merged the databasefile with the document and it has exported to PDF. But after export, we noticed that the Acrobat script isn't finding the adressheader where ID is in. The script only noticed the text after this header. The result is, as get-Acrobat always 'null' as ID

    If print us the PDF with our PDFprinter, the header could be read by our script of Acrobat. I don't know why this is... But now, I changed the script to print the files through our PDF printer. Unfortunately I can not set a name for my exported file - do you know if it is possible to print PDF files without asking for confirmation after each other as well as with a via script name?

    Here you can see the old writing for InDesign and after her, the sript Acrobat. Maybe I made a mistake by generating my PDFexport and have no need to use the printer?

    INDESIGN SCRIPT:

    /**
    * invite filebrowser and stores the name and path of the file in variable
    */
    var sourceDocument = File.openDialog ("Bitte Indesign-Dokument Park", "*.indd", false);

    /**
    * stores the only prefix of file name to use as the new file name
    */
    newName var = sourceDocument.name.substr (0, sourceDocument.name.length - 5);

    /**
    stores in folder where the file is stored
    */
    var dbSourceFolder = sourceDocument.parent + "/"; "

    /**
    * guests for databasefile, where production is expected to begin
    */
    var dbstartfile = File.openDialog ("Start-Datenbankdatei of Bitte Park", "*.txt", false);

    /**
    * Gets databasefile basename
    */
    var dbstartfilename = dbstartfile.name.slice (0, dbstartfile.name.search(/_Teil+/));

    /**
    * Gets number of first databasefile
    */
    var i = dbstartfile.name.slice (dbstartfile.name.search(/_Teil+/) + 5) .slice (0, -4);

    /**
    * generates the path and name of the first databasefile to use
    */
    var dbSource = dbstartfile;

    /**
    * set PDF preset to generate PDFS
    */
    var PDFPreset = app.pdfExportPresets.item ("GAG - PDF");

    /**
    * stop throwing alerts
    */
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    message will be thrown if databasefile is not existing
    If (dbSource.exists == false) {}
    reboot to launch alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    Alert ("File" + dbSourceFolder + dbprefix + "_Teil" + i + ".txt konnte nicht werden found! \n\rBitte starten Sie den procedure Rubis und Sie die right Datenbankdatei one enter.");
    }
    another process begins
    else {}
    even if (dbSource.exists == true) {}
    Opens the document indesign source without displaying
    mergeDocument = app.open (File (sourceDocument), false);
    defines what databasefile should be used for data merging
    mergeDocument.dataMergeProperties.selectDataSource (File (dbSource));
    starts the file database and the indesign document merging
    mergeDocument.dataMergeProperties.mergeRecords ();
    document generated in PDF export
    app.activeDocument.exportFile (ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
    farm open indesign document
    mergeDocument.close (SaveOptions.no);
    i ++ ;

    change the name of the database file to get the next file
    dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    }
    }
    reboot to launch alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    Alert ("PDF-Generierung sky!");

    SCRIPT ACROBAT:


    /**
    * Path where files should be saved
    * Special characters like spaces must be preceded of--------.
    * If you want to change the folder, use the following form:
    * ' / DriveLetter/foldername /... /LastFolderName/.
    * Be careful not to forget the / before and after the location
    */
    filepath var = "/ c/pdf_split_test / ';

    /**
    * Number of display pages - do not hesitate to change
    */

    pageType = app.prompt var ("Please die Seitenzahl der presentations one gewunschte.", "");
    Alert (PAGETYPE);

    /**
    to search for regular expression
    */

    var idNumber = / 08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;

    /**
    * If possible this function gets the number sought as string
    *
    @param string of revenge that is to be found in the document
    * @return null if rematch is not found or a string if the rematch is
    */

    function ExtractFromDocument (reMatch) {}
    try {}
    var Out = new Object();
    for (var i = 0; i < 1; i ++)
    {
    numWords = this.getPageNumWords (i);
    var PageText = ' ';
    for (var j = 0; j < 30; j ++) {}
    var Word = this.getPageNthWord (i, j, false);
    PageText += Word;
    }
    var strMatches = PageText.match (reMatch);
    If (strMatches == null) continue;
    }
    Return strMatches;
    } catch (e)
    {
    App.Alert ("processing error:" + e)
    }
    }

    /**
    * tries to load given filename (excerpt number)
    *
    @param string file name of the file that should be checked
    @param n number of iterate when checking files
    * @return true if the file exists or false otherwise
    */

    function checkIfFileExists (filename, n) {}
    var existingDoc = false;
    try {}
    If (n == 0) {}
    var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
    } else {}
    var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
    }
    checkDoc.closeDoc ();
    existingDoc = true;
    } catch (e) {}
    }
    If (existingDoc == true) {}
    n = n + 1;
    n = checkIfFileExists (filename, n);
    }
    return n;
    }

    var pageAmount = this.numPages;
    for (i = 0; I < pageAmount; i + pageType) {}
    var filename = ExtractFromDocument (idNumber);
    fileExistence = checkIfFileExists (filename, 0);
    If (fileExistence! = 0) {}

    this.extractPages ({nEnd:(pageType-1), cPath: filepath + filename + "-000_" + fileExistence + ".pdf"});
    } else {}
    this.extractPages ({nEnd:(pageType-1), cPath: filepath + filename + ""-000.pdf ""});
    }
    this.deletePages ({nStart:0, nEnd: pageType-1});
    }

    Hello

    I have a little problem with the generation of a PDF file. First my Workflow:

    I have an InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After it is merged, we need to generate a PDF file. This PDF file is opened in acrobat. In the document, I am looking for one ID for each record so I can split the document to 100 files (each with 6 pages) and name by the ID that I found.

    Why you are not exporting 6 pages PDF directly from InDesign?

    Robin

    www.adobescripts.co.UK

  • When I type a name in the search bar Google using the classic homepage, nothing happens, it is to say, type the word BASEBALL, and then press ENTER, and nothing happens

    When I type a name in the search bar Google using the classic Home Page, nothing happens. By example, if I type the name of the BASEBALL and then press ENTER, nothing happens. This just started today.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Do a check with some malware malware, analysis of programs on the Windows computer.

    You need to scan with all programs, because each program detects a different malicious program.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • cannot enter a new name to the area of 'paying for '.

    I use Money more 2004. When I try to add a new name to the "pay to" it gives me an error message and stops the program. I can leave the field blank and enter the amount and all is well. I can also use the menu drop down and choose a person who is already there. The problem is to add a new recipient.

    Hello

    Check in the Microsoft Money Forum.

    Microsoft Money - Forum
    http://social.Microsoft.com/forums/en/money/threads

    Microsoft Money Solution Center - suggests alternatives
    http://support.Microsoft.com/mny

    What is Microsoft Money Plus sunset
    http://support.Microsoft.com/kb/2118008

    BING - microsoft money replacement
    http://www.bing.com/search?q=Microsoft+Money+replacement&go=&QS=n&SK=&SC=7-27&form=QBLH

    Google - microsoft money replacement
    http://www.google.com/#sclient=psy-ab&hl=en&source=hp&q=microsoft+money+replacement&pbx=1&oq=microsoft+money+replacement&aq=f&aqi=g4&aql=&gs_sm=e&gs_upl=9978l11972l2l12926l12l1l0l0l0l0l467l467l4-1l1l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=dcc84c4c7dd2e143&biw=1024&bih=681

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Windows cannot connect to the printer. The name of the printer has been correctly entered, or the specified printer has lost its connection to the server.

    A Windows Server 2003 Standard Edition SP2 32-bit computer is a field, the file and print server.

    A computer on the domain is a machine of Windows 7 Ultimate 64 - bit with HP DesignJet 500 24 printer connected via USB.  The printer is running the latest firmware.  The PC is running the latest 64-bit drivers with no problems to the host machine printing.  The host also has the latest drivers 32-bit (x 86) installed by downloading by other computers on the network.  The printer is configured to share with the share name of HPDJ500.

    Now, on a machine Windows XP Pro SP3 32 bit on the field, I'm trying to connect to the shared printer.  Add a printer > click Next in the wizard of > check "a network printer or a printer attached to another computer" and then click Next > click on "Find a printer in the directory", then click Next > click Find now > HPDJ500 in the list below (the XP machine can see the shared printer on the Windows 7 computer!) and click OK.  At this point, I get an error that says: "Windows cannot connect to the printer.  The name of the printer has been correctly entered, or the specified printer has lost its connection to the server.  For more information, click Help. »

    Alternatively, if I right-click on the HPDJ500 printer listed, then click on connect, I get the same error message but I also see a separate window that says "Connecting to HPDJ500 on H2.ws.net" with the lively projector.  This window also disappears as soon as I clear the error message.

    Please note that this printer worked perfectly as a printer shared, hosted on a machine XP 32 bit on the field.  It works perfectly for the new Windows 7 64-bit machine, but we cannot connect from anywhere else on the network (including the server which translates the same exact error message).  On the server, I also preinstalled drivers thinking there was a problem with a 32-bit computer, trying to grasp the correct drivers from the host 64-bit Windows 7, but that doesn't change anything.

    How connect to this printer?

    Try using the path UNC path of the printer in the Add Printer Wizard.

    Add a printer > network printer > connection to this printer ((deuxieme point)

    Click next to browse (leave blank, the name field) or type the UNC path of the printer (i.e. \\Computername\Printername) path

  • How can I get a "Détails" view - as the default - when you download a file, in the dialog box "enter the name of the file to save on...» » ?

    When I get an attachment to an email (using Zimbra Imail, Firefox, Windows XP Pro) and I click on it and select 'Download', I get the dialog box "enter the name of the file to save on...» "(because I already have the option"always ask me where to save files. "But the view of default file always in a 'list '. At least recently. I don't remember it always does this. In any case, I want the value default to a 'Détails' view, in ascending order, I can find then things so much faster that way. (I often use the 'Update' tab to bring up, the latest version of a file.) I know that I can go to the Menu 'view' icon and select 'Détails', but whenever I go in a sub-folder in this dialog box, I have to do this all over again and it wastes a lot of time and attention.

    I did some research on the internet but have not found a way to solve this problem.

    Try this:

    a. open my documents, press the alt key.

    b. click on Tools. Click on folder options.

    c. click on the view tab and select Reset and check records.

Maybe you are looking for