[JS][CS3] Script Librarys

Hi.
I am going to be embarking on a large scripting project soon, and would like to know if there is any way I can point a script to a different script file containing my commonly used functions.  This is something similar to (as my failing memory recalls) in c++, having the #include........ line at the top of the code.
If this can be done, great, but if not, I can live with using simple functions in the one main script.
Cheers
Roy

Hi, Roy!
Check the following file of the InDesign CS3 SDK:
javascript_tools_guide_cs3.pdf
p216 "Modular Programming Support"
Excerpt:
"ExtendScript provides support for a modular approach to scripting by allowing you to include one script in
another as a resource, and allowing a script to export definitions that can be imported and used in another
script."
also see the following file of the InDesign CS4(!) SDK:
ar42s03s03.html
"Loading external scripts"
Excerpts:
"ExtendScript has an #include feature you can use to include an external JavaScript file, so the functions in the include file are available for the locale script to use; however, you cannot use it to load a compiled binary script. If you want to distribute your JavaScript feature in binary format like Export as XHTML, you cannot use #include to load an external JavaScript file."
"In CS3, Export as XHTML’s source has a function called loadScript()"
Greetings,
Uwe

Similar Messages

  • Trouble porting CS3 script to CS5

    Hi:
    I'm having difficulty porting some of my CS3 scripts over to CS5. It seems I'm having problems placing graphics in rectangles.
    On the following script:
    tell application "Adobe InDesign CS5"
    activate
    set newDoc to make document
    tell newDoc
    tell document preferences
    set page width to 8.5
    set page height to 11
    end tell
    make rectangle with properties {geometric bounds:{1.75, 1.5, 3.5, 4.375}, fill color:swatch "Black", fill tint:0, stroke weight:0.5, stroke color:swatch "Black", stroke tint:0, label:"ImageBox"}
    set tempPDF to "Macintosh HD:Users:someuser:Desktop:temp.pdf"
    tell rectangle "ImageBox"
    place tempPDF
    end tell
    end tell
    end tell
    it draws the rectangle but I get an error saying it doesn't understand the "place" message.
    Has something changed in how you load a graphic into a rectangle?
    Thanks.
    --jon

    Hi jon,
    Instead of setting the label property, set the name property. Then your script should work.
    Thanks,
    Ole

  • Running InDesign CS3 Script like a service

    Hi,
    Do anybody know if is there any option to run an InDesign CS3 Script as a service or daemon? I would like to execute some actions depending on some others and I need to have an script running all the time and checking for certain states.
    Thanks
    Aleix

    Hi,
    Can you give me information for both cases? The truth is that I need to monitor something related with an InDesign plug-in and maybe one or both methods could help me.
    Thanks
    Aleix

  • Sechs-Ecken-Objekt mit InDesign CS3-Script / JavaScript ???

    Hallo.
    Können Sie mir evtl.  helfen? Siehe Bild im Anhang.
    Wie kann ich dieses Sechs-Ecken-Objekt (Kontur 1 Pkt nach innen) mit Indesign-Script erstellen ? (InDesign CS3-Script / JavaScript)
    myPolySCHATTEN = myDocument.pages.item(0).polygons.add();   ???
    oder mit
    myPath = myDocument.paths.item(0).add();                                  ???
    Oder... ????
    Freundliche Grüße,
    AndreasRoe aus Germany

    Piece of cake.
    You can either create a default Rectangle or Polygon, and add and move the points around, or -- my preferred way -- add a GraphicLine and add the other points to that path, until you are nearly done. Then set the path type to "Closed", and you are really done.
    For starters, let's create a regular rectangle the hard way:
    var hoehe = 10;
    var breite = 20;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe];
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;
    Run this and experiment with breite / höhe.
    If you look at your drawing, you can see you need an inset value for the chopped off corners. You can also see where to add the new points, when you start counting at top left. That results in this -- notice how breite / höhe are adjusted one by one:
    var hoehe = 50;
    var breite = 100;
    var inset = 4;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe - inset];
    newrect.paths[0].pathPoints.add({anchor:[inset,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,inset]});
    newrect.paths[0].pathPoints.add({anchor:[breite-inset,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;

  • CS3 "Script Alert" !?

    Hello !
    Using my (licenced and registered) Photoshop CS3 Extended to process my NEF files coming from my Nikon D300 never made a problem, ...till yesterday !
    It first opens under Bridge CS3 (as usual) to be able to roughly tune the exposure, light and general contrast if needed and then arrives into Photoshop CS3 itself by clicking "ok".
    It is at that very moment that I get a message on screen.
    Here is the text:
    "Script Alert ! Nikon Corporation, Nikon D300 was used to shoot this file."
    This being followed with the usual "OK" button to go on (and it goes on without any problem).
    Why do I get this message each time ?
    How can I do in order to prevent this message to appear each time I open a (Nef) file made with the D300 ?
    Did some of you experience this before ?
    Thanks a lot for your help and kind cooperation !
    PS: I made a trial with a Nef File from my other Nikon (D200) and the problem does NOT happen ! I don't understand...
    Pol

    Hello !
    I am the kind of guys who want to understand the "why" of a situation, and as I mentionned in the beginning of my thread, it is the main reason why I asked this question in this place.
    Thanks to all who tried to guide me and help me with the "problem" I had.
    Before doing a reinstall of the software, which is indeed the easiest way to solve many encountered problems, I looked a bit further ...and finally found the "why" of this recurrent alert message !
    It is just one line in the msconfig !
    >Start >Execute "msconfig", then "OK"
    In the new window select the colum "starting programs" (or "start") and you will find in the list just one line which has to be desactivated under the name of "Nikon Monitor".
    Apply and restart the computer ...the Script Alert won't appear any longer !!
    Happy I found, I really feel better :o)
    Hope this will eventually also help other users of Photoshop CS3 Extended who encountered the same problem !
    Pol

  • JS CS3 script form word styles to indesign styles

    I have search over the forums and can find a script the can change WORD styles (with a diskette sign) to Indesign paragraph styles (without the sign). Can any one help me on this?
    Thanks.

    Here I translated the script from Russian into English for you. BTW, it is based on a script written by Dave Saunders (thanks Dave for it) — I totally reworked it to my needs. You should replace paragraph style names, font names, find-search strings, etc. with your own stuff.
    Kasyan
    // Description: Script for InDesign CS3
    // Version 4
    // Removes local formatting of the text after importing it from Word transforming it into characters styles
    // Removes non CMYK colors
    // Removes imported styles
    // Adds non-breaking space before some abbreviations in text. For example: В, У, гг., млрд.
    // Removes superfluous. Finds-replaces some sequences of characters:  For example:"--" to "—"
    // Removes hyperlinks
    // Copyright © 2008 Kasyan Servetsky
    #target indesign
    if (app.documents.length == 0) {
         alert("Open a document and try again.", "Error", true);
    else {
         app.activate();
         var myDoc = app.activeDocument;
         if (myDoc.selection.length == 1) {
              if (myDoc.selection[0].constructor.name ==  "TextFrame") {
              var myTextFrame = myDoc.selection[0];
              else {
                   alert("Select a TEXT BOX.", "Error", true);
                   exit();
         else {
              alert("Select a single text block.", "Error", true);
              exit();
         if (!myDoc.saved) {
              alert("This document has never been saved. Save it and try again.", "Error", true);
              exit();
    //--------------------------------- Progressbar ---------------------------------
         var stop = 11;
         var w = new Window ( 'window', 'Preparing the file', undefined, {closeButton:false, maximizeButton:false, minimizeButton:false} );
         var pb = w.add ('progressbar', [0, 0, 350, 20], 0, stop);
         var txt = w.add('statictext', undefined, 'Starting the process');
         txt.alignment = "fill";
         w.show();
         pb.value = 1;
         var myTxtReplace;
         var myGrpReplace;
         myReplaceStuff();
         txt.text = "Finding-replacing text";
         myProblems = 0;
         myReplaceNonCMYK();
         pb.value = 2;
         txt.text = "Removing non CMYK colors";
         if (app.activeDocument.paragraphStyles.item("Body Text") == null) {
              pb.value = 3;
              txt.text = "Creating paragraph style \"Body Text\"";
              var paraStyle = myDoc.paragraphStyles.add( {     basedOn:"[No Paragraph Style]",
                                                                                                        name:"Body Text",
                                                                                                        alignToBaseline:true,
                                                                                                        firstLineIndent:2,
                                                                                                        leftIndent:0,
                                                                                                        rightIndent:0,
                                                                                                        spaceBefore:0,
                                                                                                        spaceAfter:0,
                                                                                                        justification:Justification.LEFT_JUSTIFIED,
                                                                                                        appliedFont:"TimesPalKasN\tRegular",
                                                                                                        pointSize:8.5,
                                                                                                        leading:10.6,
                                                                                                        kerningMethod:"Metrics",
                                                                                                        tracking:0,
                                                                                                        hyphenateCapitalizedWords:true,
                                                                                                        hyphenation:true,
                                                                                                        hyphenateBeforeLast:2,
                                                                                                        hyphenateAfterFirst:2,
                                                                                                        hyphenateWordsLongerThan:5,
                                                                                                        hyphenateLadderLimit:3,
                                                                                                        hyphenationZone:12.7,
                                                                                                        hyphenWeight:5,
                                                                                                        appliedLanguage:"Russian",
                                                                                                        fillColor:"Black"} );
         else {
              var paraStyle = myDoc.paragraphStyles.item("Body Text");
              pb.value = 3;
         removeImportedStyles();
         pb.value = 4;
         txt.text = "Removing imported styles";
         protectLocalStyling();
         pb.value = 5;
         txt.text = "Saving local formatting";
         myTextFrame.parentStory.texts.everyItem().paragraphs.everyItem().applyParagraphStyle(paraStyle, true);
         pb.value = 6;
         txt.text = "Applying paragraph style \"Body Text\"";
         removeInTables();
         pb.value = 7;
         txt.text = "Processing tables";
         myTextFrame.parentStory.texts.everyItem().paragraphs.everyItem().clearOverrides(OverrideType.all); // ***
         pb.value = 8;
         txt.text = "Removing local formatting";
         replaceTxt();
         pb.value = 9;
         txt.text = "Replacing text";
         replaceGrep();
         pb.value = 10;
         myRemoveHyperLinks();
         pb.value = 11;
         txt.text = "Removing hyperlinks";
         w.hide();
         if (myProblems == 0) {
              alert ("No problems were found.", "All done");
         else {
              alert ("Problems were found and corrected.", "All done");
    //************************************** Functions *******************************************************
    function protectLocalStyling() {
        var myStyles = ["Italic","Bold", "Bold Italic"];
        var myPosns = ["superscript","subscript"];
        var myPosnEnums = [Position.superscript, Position.subscript];
         var noCharStyle = myDoc.characterStyles[0];
        for (var j = myStyles.length - 1; j >= 0; j--) {
          var myCharStyle = myDoc.characterStyles.item(myStyles[j]);
          if (myCharStyle == null) {
            var myCharStyle = myDoc.characterStyles.add({name:myStyles[j], fontStyle:myStyles[j]});
              app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences.appliedCharacterStyle = noCharStyle;
              app.findTextPreferences.fontStyle = myStyles[j];
              app.changeTextPreferences.appliedCharacterStyle = myStyles[j];
              myTextFrame.parentStory.changeText();
        for (var j = myPosns.length - 1; j >= 0; j--) {
          var myPosCharStyle = myDoc.characterStyles.item(myPosns[j]);
          if (myPosCharStyle == null) {
            var myPosCharStyle = myDoc.characterStyles.add({name:myPosns[j], position:myPosnEnums[j]});
              app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences.appliedCharacterStyle = noCharStyle;
              app.findTextPreferences.position = Position[myPosns[j]];
              app.changeTextPreferences.appliedCharacterStyle = myPosns[j];
              myTextFrame.parentStory.changeText();
         app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    //  Removing non CMYK colors
    function myReplaceNonCMYK(){
         for(var myCounter = myDoc.colors.length; myCounter > 0; myCounter--){
              if (myDoc.colors[myCounter-1].name != "Registration" && myDoc.colors[myCounter-1].name != "Paper" && myDoc.colors[myCounter-1].name != "Cyan" && myDoc.colors[myCounter-1].name != "Magenta" && myDoc.colors[myCounter-1].name != "Yellow" && myDoc.colors[myCounter-1].name != "Black") {
                   if ((myDoc.colors[myCounter-1].space != ColorSpace.cmyk)  || (myDoc.colors[myCounter-1].model != ColorModel.process)){
                        myProblems = myProblems + 1;
                        myDoc.colors[myCounter-1].remove ("Black")
    // Removing imported styles
    function removeImportedStyles(){
         var paraStyle = myDoc.paragraphStyles.item("Body Text");
         var noneCharaStyle = myDoc.characterStyles.item("[None]");
         for(var myCounter = myDoc.paragraphStyles.length-1; myCounter >= 2; myCounter--){
              if (myDoc.paragraphStyles[myCounter].imported == true ) {
                   myDoc.paragraphStyles[myCounter].remove(paraStyle);
         for(var myCounter = myDoc.characterStyles.length-1; myCounter >= 2; myCounter--){
              if (myDoc.characterStyles[myCounter].imported == true) {
                   myDoc.characterStyles[myCounter].remove(noneCharaStyle);
    // Processing tables
    function removeInTables(){
         if (myTextFrame.parentStory.texts.everyItem().tables.length > 0) {
              if (myDoc.paragraphStyles.item("05. TABL_BODY") == null) {
                   myTableStyle = myDoc.paragraphStyles.add({name:"05. TABL_BODY", appliedFont:"HeliosKas\tCondensed Regular", pointSize:8, leading:8});
              else {myTableStyle = myDoc.paragraphStyles.item("05. TABL_BODY")}
         myTextFrame.parentStory.texts.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().applyParagraphStyle(myTableStyle, true);
         myTextFrame.parentStory.texts.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().clearOverrides(OverrideType.all);
    // Find-replace pairs
    function myReplaceStuff() {
         myTxtReplace =     [ // TEXT
                                            [" А ", " А^S"],
                                            [" В ", " В^S"],
                                            [" С ", " С^S"],
                                            [" К ", " К^S"],
                                            [" О ", " О^S"],
                                            [" У ", " У^S"],
                                            [" На ", " На^S"],
                                            [" По ", " По^S"],
                                            [" Из ", " Из^S"],
                                            ["г-н ", "г-н^S"],
                                            ["г-на ", "г-на^S"],
                                            ["г-ну ", "г-ну^S"],
                                            [" т", " ^Sт"],
                                            [" г.", " ^Sг."],
                                            [" гг.", " ^Sгг."],
                                            [" грн.", " ^Sгрн."],
                                            [" коп.", " ^Sкоп."],
                                            [" тыс", " ^Sтыс"],
                                            [" млн", " ^Sмлн"],
                                            [" млрд", " ^Sмлрд"],
                                            [" т.п.", " ^Sт.п."],
                                            [" т.д.", " ^Sт.д."],
                                            [" др.", " ^Sдр."],
                                            [" км", " ^Sкм"],
                                            ["см. стр.", "см.^Sстр."],
                                            [" ^p", "^p"],
                                            [" —", "^S—"],
                                            [" —", "^S—"],
                                            ["№ ", "№"],
                                            ["$ ", "$"],
                                            ["EUR ", "EUR"],
         myGrpReplace =     [ // GREP
                                            ["[~m~>~f~|~S~s~<~/~.~3~4~% ]{2,}", " "], // Multiple Space to Single Space
                                            ["--", "~_"] // Dash Dash to Em-dash
                                            // ["~b~b+", "\\r"], Multiple Return to Single Return
    function replaceTxt() {
         app.findTextPreferences = NothingEnum.nothing;
         app.changeTextPreferences = NothingEnum.nothing;
         app.findChangeTextOptions.wholeWord = false;
         app.findChangeTextOptions.caseSensitive = true;
         app.findChangeTextOptions.includeMasterPages = false;
         for (i = 0; i <  myTxtReplace.length; i++) {
              var myCurArray = myTxtReplace[i];
              app.findTextPreferences.findWhat = myCurArray[0];
              app.changeTextPreferences.changeTo = myCurArray[1];
              myTextFrame.parentStory.changeText();
         app.findTextPreferences = NothingEnum.nothing;
         app.changeTextPreferences = NothingEnum.nothing;
    function replaceGrep() {
         app.findGrepPreferences = NothingEnum.nothing;
         app.changeGrepPreferences = NothingEnum.nothing;
         for (i = 0; i <  myGrpReplace.length; i++) {
              var myCurArray = myGrpReplace[i];
              app.findGrepPreferences.findWhat = myCurArray[0];
              app.changeGrepPreferences.changeTo = myCurArray[1];
              myTextFrame.parentStory.changeGrep();
         app.findGrepPreferences = NothingEnum.nothing;
         app.changeGrepPreferences = NothingEnum.nothing;
    function myRemoveHyperLinks(){
         if (myDoc.hyperlinks.length > 0){
              for(var myCounter = myDoc.hyperlinks.length; myCounter > 0 ; myCounter--){
                   myProblems++;
                   myDoc.hyperlinks[myCounter - 1].remove();

  • Dreamweaver CS3 Scripting Youtube embedding Problems

    I use embeds from youtube on my site. They are usually no
    problem. Today I
    upgraded from Dreamweaver 8 to CS3. When saving my files and
    uploading to the host, CS3
    created two scripts that it said were necessary for
    standards-based sites and
    applications:
    AC_Activex.js
    AC_Runactivecontent.js
    CS3 indicated that they must be uploaded in "Scripts" folder
    to host. Now all my
    embeds show up as a red x in IE7. Oddly enough they work in
    Monzilla. Sounds like a version problem doesn't it? Although of
    course my host (Bluehost) says it ain't their problem.

    Check out the following extension:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1327520
    From the looks of your code you were embedding Youtube links
    as if they were Flash. However, while they are Flash, Youtube has
    its own system for embedding. I believe Youtube does provide you
    with code to do this. However, this plugin should do it all for you
    from within Dreamweaver.

  • Lightroom 2.1 and the CS3 Scripting Support 10.0.1 update

    In my continuing efforts to get a simulation of a working system I updated to LR 2.1 and carried out various suggested methods of updating Photoshop CS3 to properly reflect the effects of the 10.0.1 upgrade.
    In case it helps development the situation now on my Win XP SP3 is that:
    If I open LR before PS CS3, then CS3 reports Sripting Support version 10.0 and the LR "Open in CS3" does not work properly in the way reported before by many people.
    If I Open PS CS3 and then open LR, then CS3 reports Scripting Support Verson 10.0.1 and LR "Open in CS3" does work correctly.

    In my continuing efforts to get a simulation of a working system I updated to LR 2.1 and carried out various suggested methods of updating Photoshop CS3 to properly reflect the effects of the 10.0.1 upgrade.
    In case it helps development the situation now on my Win XP SP3 is that:
    If I open LR before PS CS3, then CS3 reports Sripting Support version 10.0 and the LR "Open in CS3" does not work properly in the way reported before by many people.
    If I Open PS CS3 and then open LR, then CS3 reports Scripting Support Verson 10.0.1 and LR "Open in CS3" does work correctly.

  • InDesign CS3 script that changes fonts on open

    Hello.
    I am trying to come up with a script that would change a specific group of fonts, that will always show up missing, to the new font. Basically, it is a bunch of our postscript fonts that are now using our open type font. Below is what I have so far. I want to create a list that goes through about 8 fonts that are old and replace them on the fly with the 8 new fonts. This would be great if I could have this happen on open.
    Can anyone see what I have and offer some guidance?
    thanks
    babs
    Open this Scriplet in your Editor:
    tell application "Adobe InDesign CS3"
       set find text preferences to nothing
       set change text preferences to nothing
       tell application "Adobe InDesign CS3"
           set OLDfont to {"times", "arial"}
           set NEWfont to {"times new roman", "helvetica"}
           --set find what of find text preferences to testString
           tell document 1
               repeat with swap from 1 to 2
                   set NEWfont to item swap of OLDfont
               end repeat
           end tell
       end tell
    end tell

    For starters, you're going to have to use the correct font names, including correct capitalization. The property you want to change is "applied font", not "find what". And it would probably be more sensible, to go through all paragraph and character styles and make the changes there first, otherwise you'll have troubles again every time you edit stuff.
    So start off by getting the name of the font used in every paragraph style, and loop through your list to see if they should be changed. Do the same for character styles. And then do the find/change to find any that have been applied manually.

  • Bridge CS4 not showing Photoshop CS3 scripts

    Hi there..
        I recently upgraded Illustrator CS3 to CS4.    The usual Photoshop scripts that I'm used to in Bridge CS3 (contact sheet, PDF etc) are no longer an option in Bridge CS4...   Is there a way to copy the scripts from CS3 into CS4?
      Thanks!
      Mark

    On the extra's CD are the original contact sheet scripts etc that you can
    install using the extension manager.
    But before this you should look in to the new Adobe Output Module in Bridge
    that offers the new features for contactsheet as PDF.
    Be sure to have the updated version from AOM, do a search for this on the
    Adobe.com download section.
    Van: mindveneration <[email protected]>
    Hi there..
        I recently upgraded Illustrator CS3 to CS4.    The usual Photoshop scripts
    that I'm used to in Bridge CS3 (contact sheet, PDF etc) are no longer an
    option in Bridge CS4...   Is there a way to copy the scripts from CS3 into
    CS4?
      Thanks!
      Mark

  • PC XP CS3 - Script to multiple re-link to other files in folders

    I have just been reading an introduction to scripts so I have zero experience in writing them.
    I thought I would throw this out there as I noticed there are some extremely generous script programmers in the forum.
    First, a brief outline of my situation:-
    I work in offset printing.
    Basically I am imposing the front and back of large sheets (2 page document) which are created in Indesign CS3 on a PC, XP Pro.
    Each new job/sheet has its own folder named XXXX.
    Within this folder will be a number of other folders, each containing pdf files (cmyk artwork) for a business card.
    Usually there is one pdf file for the front of the card and one for the back i.e. 2 sided business card.
    e.g. 2015-33344 1-1.pdf
           2015-33344 1-2.pdf
    (1-1.pdf is the front cmyk artwork)
    (1-2.pdf is the back cmyk artwork)
    Often there may be a second/third/fourth card in the same folder.
    These are named as 2-1.pdf, 2-2.pdf, 3-1.pdf, 3-2.pdf and so on.
    Initially I run another independent application which automatically imposes all the cards on the 2 page Indesign document (front and back of sheet).
    The next stage (which I am seeking help for) is to create a spot UV varnish sheet, as each card also has a spot UV varnish pdf file in the same folder.
    Note that at the moment I initially have to remove/re-locate all the UV pdf files from each folder (cut and paste into other holding folder) before I can run the initial imposing application. This is because the application searches for .pdf in each folder and imposes that file.
    But I can live with having to perform this action.
    (At the moment I am placing the UV pdf files back in their folders once the initial application has imposed the sheet).
    The spot UV file will be either on the front and/or back of each card.
    The UV files always have the name "UV" (not case-sensitive) somewhere in the pdf file name.
    e.g. 2015-33344 Spot UV 1-1.pdf
           2015-33344 Spot UV 1-2.pdf
    So at the moment I am having to manually re-link each card in the 2 page document to its UV pdf file.
    When you have 60 cards on one sheet (front and back) this takes a long time to manually perform (120 re-links for one print job).
    What I was hoping for was if someone would be able to write a script which would re-link/replace every card/pdf file on the imposed sheet with its corresponding UV pdf file.
    And could I be directed toward which application I would require to paste the script into to run it.
    Thankyou.

      Photoshop Elements does not directly support AVCHD although you can add them to the organizer in conjunction with the video editor - Premiere Elements. Use File >> Rename on individual clips.
    However it may be better to leave the original filenames intact and then the stills and clips will all be in number order with the relevant file ending. I always find it easier to add individual clips and stills to a project in Premiere Elements, set the in and out points and then rename each sequence based on the subject.
    http://helpx.adobe.com/photoshop-elements/kb/supported-file-formats-premiere-elements.html

  • Upgraded to CS3 - Script not woriking now

    Hello. Small ActionScript issue here. I've got a flash
    animation embeded in a html file. If at any point you want to skip
    the animation and proceed to the next page in the html course you
    can by clicking a button. This button contains the following
    ActionScript:
    on (release) {
    getURL("javascript:cDone()");
    stop();
    And when the animation comes to the end:
    getURL("javascript:cDone()");
    stop();
    It's been working fine until I recently upgraded to Flash
    CS3. This script seems to work only upto Flash Player 6. What
    changes to I need to do to this script to make it work?
    Thanks. Help appreciated.

    Hi. You didn't mention whether or not you're using the AS2 or
    AS3 compiler. I'll assume you're
    using AS3.
    if you are trying to call javascript functions that are
    embedded in the html page,
    read the built-in documentation on
    ExternalInterface.call()
    AS3 seems like alot of extra typing alot of the time, but
    it's neat methods for the built in Classes like this that make it
    worth the effort.
    Adding scripts directly on buttons isn't allowed in AS3.
    You'll need to attach a listener with an event handler that
    calls your script.
    import flash.events.*;
    package{
    var myButton:Button=new Button();
    myButton..addEventListener(MouseEvent.MOUSE_DOWN,loadMyScript);
    //function called when myButton is pressed
    function loadMyScript(event:EVENT):void{
    ExternalInterface.call("jsFunctionName";"parametersToPass");
    hope this helps. :)

  • CS3 script compatibility

    Hi,
    My company has a large investment in CS3.  We have .Net application that uses InDesign scripts.  If we upgrade to the latest version if InDesign, will our scripts break?
    Thank you, Steve

    There is a very good possibility. Download the trials and see.

  • CS3 script runs slow with CS4 and CS5

    I have written a table transformation script for InDesign CS3, which formats an imported Excel table.
    With InDesign CS3 the script runs well. Now I tried the same script with InDesign CS4 and CS5 and it runs very slow. It's about 10 times slower than with CS3.
    I tried to turn off redrawing, but this didn't help. It even got slower again!
    Does someone has made similar experiences? Could you solve the performance issue?
    Do scripts in CS4/CS5 generally run slower than in CS3?
    Does CS4 differ so much to CS3 that the script runs 10 times slower?
    What can I do to improve the execution performance?
    Thanks for any tips / advices etc.

    I now have made some tests with profile / timing. Here are the results.
    you find the code snipped below. It iterates first over all rows and then over all cells inside of the row. In the cell iteration, the function hasGapInLineBelow(...) does more iterations.
    The example is with a table of 42 rows and 9 cells.
    I have compared CS3 and CS5
    there are 3 test cases:
    for 1/1 means: first for-loop is in iteration 1 and second for loop is in iteration 1 (statements for first row and first cell done)
    for 1/9 means: first for-loop is in iteration 1 and second for loop is in iteration 9 (statements for first row and all 9 cells of the row done)
    for 2/9 means: first for-loop is in iteration 2 and second for loop is in iteration 2 (statements for second row and all 9 cells of the row done)
    it's strange that normal variable assignments take lot of time (like the statement startPos = indexLeftNeightbourOfCurrentCell;) -> I don't understand why this can be so time consuming!?!
    it's also strange why in "for 1/9" and "for 2/9" variable assignments take much longer than in "for 1/1"...
    could I use another data type than array for the variable isMergedRow? Which one?
    do you know any performance optimizations?
    in which time unit ExtendScript Toolkit shows the measured periods?
    how are the times calculated in loops? Are these the times sumed up over all iterations or is it just the time for a single statement?

  • CS3 Scripting help ...

    Is there anyway to have a script automatically launch upon opening any document? always?
    I am checking for my IT guy so you can explain it as techniquially possible since he will read this haha .... i am not very smart and won't get it.

    Yes, I believe this functionality was new in CS3. Searching for CS3 and Event listeners I found this for instance: http://forums.adobe.com/thread/288208
    The number of events possible to subscribe to are probably more the newer the version of InDesign you've got.

Maybe you are looking for