New Scripting Features in CS5

This discussion is for new features/improvements in CS5 related to scripting. For changes to the scripting DOM which effect older scripts please use this discussion instead.
Appropriate topics are ones which revolve around the ESTK, InDesign's DOM, or new technologies (such as the new "CS Extension Builder"). Please try to keep the discussion on topic!
Thanks,
Harbs

Dear Harbs,
Really I appreciated publish for the CS5 Scripting Features, and really many thanks to you...
Past some of the years I can used your coding as well as Dave's codes.
Really very nice for this intro...
Please let me know the DOM concepts in CS5 scripting architecture and new extra Features also [Scripting].
Thanks & Regards
T.R.Harihara SudhaN

Similar Messages

  • New CS4 features

    At Dave's suggestion, I'm starting a thread for discussing new scripting
    features is CS4. I'd divide new features into three categories: 1)
    improvements/additions to the InDesign DOM, 2) improvements to the ESTK,
    and 3) improvements/additions to ScriptUI.
    I'll start off this thread with one improvement on each of these fronts.
    (There are lots...)
    Category 1:
    There's a new isValid property for all InDesign objects. This is
    something that's been in the SDK for ever, but only made its way into
    the scripting DOM of CS4. This means that instead of try/catch every
    time you're trying to figure out if an object is valid, you can just write:
    if(myObject.isValid){DoMyStuff()}
    or,
    if(! myObject.isValid){return}
    This is a small thing but in my book it's huge!
    Category 2:
    There's a new function panel in the ESTK which shows all the functions
    in the current script and makes navigating to the functions very easy.
    Category 3:
    There are now keyboard and mouse events, so you can now create widgets
    which do everything the built in dialog scripting widgets do (and a
    whole lot more!!!)
    Harbs
    http://www.in-tools.com

    Noel, nothing wrong with Roy's posts for me (using the default web interface). It may just be you :-)
    Talking about interfaces, please don't comment on this one. It does the job, innit? (I'm sure someone else could do better with ScriptUI. Go ahead.)
    var myStyleList = new Array;
    for(c = 1; c < app.activeDocument.paragraphStyles.length; c++)
    if (app.activeDocument.paragraphStyles.item(c).otfStylisticAlternate == true)
      name = "[+] ";
    else
      name = "[-] ";
    name += app.activeDocument.paragraphStyles.item(c).name;
    myStyleList.push(name);
    var myCharsList = new Array;
    for(c = 1; c < app.activeDocument.characterStyles.length; c++)
    if (app.activeDocument.characterStyles.item(c).otfStylisticAlternate == true)
      name = "[+] ";
    else
      name = "[-] ";
    name += app.activeDocument.characterStyles.item(c).name;
    myCharsList.push (name);
    var parDialog = app.dialogs.add({name:"Salt your Styles",canCancel:true});
    with(parDialog)
    with(dialogColumns.add())
      with(dialogRows.add())
       parCheck = checkboxControls.add({staticLabel:"Paragraph style"});
       parDropdown = dropdowns.add({stringList:myStyleList, selectedIndex:0});
      with(dialogRows.add())
       charCheck = checkboxControls.add({staticLabel:"Character style"});
       charDropdown = dropdowns.add({stringList:myCharsList, selectedIndex:0});
    var result = parDialog.show();
    if (result)
      if (parCheck.checkedState)
       app.activeDocument.paragraphStyles.item(parDropdown.selectedIndex+1).otfStylisticAlternate =
        !app.activeDocument.paragraphStyles.item(parDropdown.selectedIndex+1).otfStylisticAlternate;
      if (charCheck.checkedState)
       app.activeDocument.characterStyles.item(charDropdown.selectedIndex+1).otfStylisticAlternate =
        !app.activeDocument.characterStyles.item(charDropdown.selectedIndex+1).otfStylisticAlternate;
    parDialog.destroy();

  • Adobe recommends: New CSS features in Dreamweaver CS5

    Over  the next week, we are going to be publicizing some high-value content from adobe.com and other community sites. We have been tracking what's    been most important to our users, and feel that getting this content out to the larger community will go a long way toward helping people tackle some of their most pressing challenges.
    Continuing our trip along the CSS highway, our next recommendation is a video by Dremeaver superstar Brian Wood:
    New CSS features in Dreamweaver CS5
    The video demonstrates some of the most exciting new CSS features in Dreamweaver: new CSS layouts, CSS inspect, and CSS enable/disable.
    Give it a spin and let us know what you think!
    Previous recommendation threads:
    Use Dreamweaver CS 5.5 to package your web application for iOS and Android devices
    Customizing a Spry Menu Bar widget
    Spry Menu Bar resources
    Layout 101
    CSS page layout basics

    Thanks for the answer this is very useful however I still find that Dreamwever defaults back to writing in CSS, I have to go to the manel every time and switch from CSS style to Inline style which is very irritating. Is there any way to disable writing in CSS all together like their used to be in CS3..in the preferences.
    Much appreciated

  • What's new in After Effects CS5

    Here it is:
    "What's new in After Effects CS5"

    > -Still no real 3D or ability to import 3D-files without Photoshop. The
    experiences with Photoshop import were not very good with CS4 and I
    didn't read about any work done on that in the change list. I hope I'm
    wrong on this one!
    There has been quite a lot of work to improve stability, but the overall feature is the same in After Effects. Because Photoshop has some additions, you can make more useful things in Photoshop, so overall it's an improvement. See this post.
    -I was really really hoping that this would be implemented in  AE CS5 http://grail.cs.washington.edu/projects/videoenhancement/videoEnhancement.htm After all, there is an adobe employee involved with project. So this  was a bit disappointing for me, but I guess I just have to wait a bit  longer.
    I was really annoyed at all of the YouTube videos that said that was going to be in CS5. It just goes to show that you can't believe what you see on the Internet. ;-)
    Seriously, though, those folks are just down the hall from me, and they are always doing great stuff---much of which eventually makes it into products. Several of the cool features from this and previous release have come in part from them. So, don't lose hope.

  • I am using Firefox 3.6 on my PC , and now, when I select File New Tab (Ctrl+T), no new Tab shows up. Nor does it show up when I click the new Tab symbol next to my other tabs. How can I get the New Tab feature to work again?

    In the past 48 hrs, all of a sudden, the New Tab feature on my PC< using Firefox 3.56, simply stopped working. I did not change settings, or download a new version of Firefox. it just stopped working. There are other scenarios where it does still work (for example, if I want to open a link on a web page, I can right click and open the link in a new tab), but if I simply want to have multiple websites open at once on my PC, I am forced to have multiple versions of Firefox open, as my New Tab option seems to be disabled or something. Can you help?

    Leliforever, cheek you list of installed add-ons, the Ask toolbar can be installed without the users knowledge.
    For checking other extensions that may cause this, follow the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can I use iWork '09 on Lion without using new Lion features?

    I do not wish to use the new features in Lion, primarily autosave, with iWork, at least initially.  In other words have iWork act as it would in S.L.   However, I need to purchase iWork in order to continue using a bunch of Appleworks spreadsheets.  I am using a new MBP with OS 10.7.1.  My plan is to purchase the hard copy iWork '09 from the Apple Store (the AppStore download versions have already been updated).  This CD should be some version of 9.0 as they have not put 9.1 on the CD.  My idea is to just not let the modules (Numbers, Pages, etc.) get updated until I am ready.  My question is -- will Numbers and Pages work properly on Lion without using the final update to the new Lion Features, and which updates to Numbers and Pages should I avoid?
    Any help is appreciated. 

    Sjazbec wrote:
    Resume can be disabled systemwide in Systemsettings, general section.
    Alas, it's reactivated when we shutdown if we don't take care to uncheck the dedicated box.
    More, if we ask to restart on an other device, we have no checkbox available to disable Resume.
    Happily, it seems that pressing option during the shutdown process disable the beast.
    Yvan KOENIG (VALLAURIS, France) vendredi 16 septembre 2011 18:49:31
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Trying to load a Dreamweaver CS5 extension called Image Show Pro to mac operating system 10.9.2. Trial version worked fine, but when I try to load full version, Adobe Extension Manager crashes.  I have downloaded new Extension Manager for CS5. and still c

    Trying to load a Dreamweaver CS5 extension called Image Show Pro to mac operating system 10.9.2. Trial version worked fine, but when I try to load full version, Adobe Extension Manager crashes.  I have downloaded new Extension Manager for CS5. and still crashes. Anybody else experience this? email:[email protected]

    Hi bigd_bud,
    Can you see if the solutions in this post help?
    Re: Adobe Extension Manager crashes on mac 10.8
    Thanks,
    Preran

  • New Movies feature in Garageband 11- how to export?

    I work at a school and would like to be able to import editable videos from Discovery Education United Streaming into the new Movies feature in Garageband. The thought is to have them remove the audio and then create their own on top of the video.  Some students have pre-made songs that they have done previously that we want to add video to. This seems like it would be much easier for students to do in Garageband than importing into iMovie and splitting the audio and then finding their Garageband recordings to insert.
    The problem I ran into is that I can import the videos, but Garageband will not allow me to export them.  I have tried on multiple machines, and with multiple videos.  I called Apple support and they suggested that it is a codec issue with the .mov file from Discovery Ed.  They could not tell me what codecs are supported by Garageband.
    I was able to get around this problem by importing the downloaded video into iMovie, then exporting it right back out as a .mov file.  When I imported that one into Garageband I was able to export the movie with the new audio file from students without any issues.  If I do this, I might as well just have students use iMovie instead. 
    Does anyone have any suggestions of what I can do in Garageband to make this work as easily as it should.  Thank you.

    Do you have a link to one of the movies?

  • New calling feature in OS X 10.10 needs a keypad

    The new calling feature works great in OS X 10.10, until you come across an automated phone system... No keypad.
    Hopefully that will get updated. I can't imagine Apple didn't think about this.

    Neat, thanks. Should still be a setting elsewhere but solves my problem - thank you

  • I cannot get my iTunes to display new Radio feature...only Internet Radio option still.  I'm on 10.6.8.  Is that an issue?

    My iTunes still only shows Internet Radio (not allowing me to use the new Radio feature). 
    I have the latest version of iTunes and 10.6.8 which is the latest version for my MacBook.
    Any thoughts?  Is there a way to update this?

    yup, thats an issue. apple states that it requires lion os x v10.7 and above.
    http://support.apple.com/kb/HT5848

  • I can't open the new "Purchased" feature in the store.  I've downloaded the latest Safari, but I keep getting the error message that the latest Safari has to be downloaded.  Anyone have any solutions or have ran into this problem?

    I can't open the new "Purchased" feature.  I've downloaded the new Safari, but Itunes doesn't recognize that I have.  Any help?

    You downloaded Safari on your iPhone? And you are getting this error message on your iPhone?

  • I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
    If that solution is not flexible enough, consider using the very affordable (12$)  Elements+ add-on which offers a 'meta stamp' script :
    http://elementsplus.net/v5/en/meta-stamp.htm
    Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview...

  • EBay does not recognize new security feature requiring security number in Firefox but works with IE

    eBay has a new security feature when attempting to e-mail a seller; it requires that you enter a numerical code in a box. When on Firefox eBay does not recognize that I've entered the number and keeps telling me to enter the number but when on IE it recognizes the number. What add-on, etc do I need to make Firefox compatible with eBay? Thanks
    == URL of affected sites ==
    http://ebay.com

    The problem seems to be caused by the Java Console add-ons. Disabling mine (6.0.20 and 6.0.21) fixed the problem.

  • Creating New Project Feature

    Creating New Project Feature is not working at all. I clicked on the button, icon, shortcut, but nothing is happening.

    Hi,
    Could you please tell us if you are getting any error messages? Also are you able to open existing projects? Also could you please check your Creator log file and see if there are any messages related to this issue. Also please provide us with the following details:
    Platform you are working on
    Build number (update number)
    Thank you and
    Cheers :-)
    Creator Team

  • Trying to use the new file features in Flash 10

    Hi there, I'm now trying to use the new file features in Flash 10 but I'm getting this error when I try something like
    fileRef.load();
    ReferenceError: Error #1069: Property load not found on flash.net.FileReference and there is no default value.

    It's tough to tell without seeing more of your code, but it might be that you're missing these lines of code at the top of your actions window:
        import flash.net.FileFilter;
        import flash.net.FileReference;

Maybe you are looking for