Quick apply using javascript

How do you quick apply using javascript? I looked at the API but did not see a property or method.

I really should stop posting when I'm tired to fully read the original message.
My focus is on single page documents where the composer also can be an issue but I do not need the Smart Text Reflow feature, which is dependent on composition so it comes even later. Actually I have not used it in years and had to look up how to prepare a document and find out what's going on. Btw, internally the feature is called AutoFlow.
If deleting pages is your issue, you can easily do it by script, but I understand if you prefer to utilize the builtin feature ...
var ts = app.activeDocument.stories.lastItem(); // use your story
if( !ts.overflows ) {
    var lastIP = ts.insertionPoints.lastItem();
    var lastTF = lastIP.parentTextFrames[0];
    for( var emptyTF=lastTF.nextTextFrame; emptyTF; emptyTF=lastTF.nextTextFrame ) {
       var emptyPage = emptyTF.parent;
       emptyPage.remove();
Dirk

Similar Messages

  • CS5 - default settings for Quick Apply menu

    I need to set the defaults for Quick Apply to just Paragraph p: and Text c:
    How do I access the preferences for Quick Apply in javascript ?  (CS5)
    thanks in advance
    René

    it seems to be something like this ( if the menus are in Danish, that is )
    var Anvend = app.menus.itemByName( 'Menuen Indstillinger for Anvend hurtigt').menuItems;
    for(var myCounter1 = 0; myCounter1 < Anvend.length; myCounter1 ++){
         if (Anvend[myCounter1].name== 'Medtag tegnformater (c:)' ) {
             try {
                    Anvend[myCounter1].select()
             catch (myError)
                    // select fails if already set
         else if  (Anvend[myCounter1].name== 'Medtag afsnitsformater (p:)' ) {
            try {
                    Anvend[myCounter1].select()
            catch (myError)
                    // select fails if already set
         else
            try {
                    Anvend[myCounter1].remove()
            catch (myError)
                    // remove fails if already gone
             } // end if
             } // end for

  • Is there a way to selectively disable "quick search" on specific websites (i.e. those which use javascript-driven keyboard shortcuts)

    Some websites use javascript (or differently) driven keyboard shortcuts - for example some google services or the tinytiny-rss feed reader. On those sites users normally don't use the "quick search" function, but it tends to get in the way of the keyboard shortcuts which tend to be pretty useful.
    So, is there a way selectively disable quick-search on some websites? Maybe there is a Addon for this?
    Thanks in advance, Kind Regards
    - NebuK

    1.SmartyPanouZe3rd,
    Sep 4, 2013 1:03 PM   in reply to SmartyPanouZe3rd
    This is a follow-up to the above question I had.
    Since i noticed people looking at the question, but no replies showing up, i contacted BC support directly with the same question.
    I got a reply.
    I did tests based on the reply.
    Here is what is going on based on the reply.
    (spoiler alert : It works... but it's not yet a perfect score.)
    All the details are posted here :
    http://www.animavdo.com/mut/ambiguity-001.html
    Hope this can help others.
    Cheers.
    PS  I still will use DW for the heavy lifting...
           But MUSE is nice for quickly putting together a mini website.
           Highly recommended App.

  • How to use Edit/Quickly Apply?

    How does the command "Quickly Apply" work?
    I have paragraph styles that I made earlier and that show up when I select "Quickly Apply" but I have tried to apply it to marked text or just when selecting a textframe - neither worked. I marked the text and then I clicked the paragraph style in the Quickly Apply-box. I thought I could quickly reformat a text with this command. What am I doing wrong?
    Help...

    It doesn't sound as if you are **** anything wrong. Do you have locally applied formatting, or a character style which might be interfering with the paragraph style? Will it apply properly from the paragraph styles panel?
    Peter

  • How to retrieve value of one column to other in Apex using Javascript

    Hi all,
    Can any one help me in solving this problem.
    How to send a value from one column to another column using javascript in Apex. I heard that we can use onChange().
    My requirement is,
    I have a column(Varchar2) in form where i need to enter a value and the data need to be sent to another column(Number) when i press apply changes.
    ex: if i enter a value say 1/3 or 1/4 or 1/3*1/6
    the result should be entered in the other column.
    Message was edited by:
    Raman

    Try something like
    html_GetElement('P1_ITEM2').value = eval(html_GetElement('P1_ITEM1').value);

  • Can I use JavaScript to force objects to overlap a Web Object in Captivate 7?

    Hi, so I have all of these great ideas for using Web Objects to enhance my courses, but am discouraged by the fact that I can't seem to get anything to overlap a Web Object. The only thing I can seem to get to overlap a Web Object is another Web Object. I have found that buttons seem to still work under the Web Object (which is good) but I really would like to know of a way to allow things on the Captivate timeline to be viewed on top of them. Things like text fields and images.
    I've seen posts about how to use JavaScript to have the menu show above Web Objects, but that code doesn't seem to work for regular objects. I read that Web Objects sit in an "<iframe>" tag and that that forces it to appear above everything else. I'm left wondering if it is possible to get around this by somehow putting Captivate objects in an <iframe> of their own with JavaScript? Or is there some other way? Does anybody know any JavaScript I can apply to Captivate objects to get them to appear above a Web Object?
    Thanks,
    Dan

    So I have come to learn that the "<iframe>" tag for a Web Object is simply a window that sits on top of the course. Now I'm wondering if anyone has an effective method for importing flash quality animation (in whatever form) that can sit underneath of Captivate objects and still be HTML5 compliant?
    Thanks,
    Dan

  • How to know if a file browser item is not null using javascript fucntion

    Hi
    <br><br>
    I tried to use javascript for validation. I have a file browser item named P55_FILE_NAME and I would like to know if this item is null or not before submit.
    <br>
    I wrote this function :<br><br>
    function validate_import(f_n){<br>
         if (trim(document.getElementByName(f_n).src) == "")<br>
         {<br>
         alert ("File name is empty.");<br>
         document.getElementByName(f_n).focus();<br>
         }<br>
         else{<br>
         doSubmit('SUBMIT');<br>
         }<br>
    } <br><br>
    When I press submit button I got an error, sounds like the src method does not exist in my input item. <br>
    Then, I looked my source page an I found this :<br><br>
    input type="file" name="p_t01" size="30"
    <br><br>
    there is know src method and the name is not P55_FILE_NAME and I don't want to use <b>p_t01</b> that will change.<br>
    <br>
    I need your help.<br>
    Benn

    Hello,
    The p_txx notation is the internal name the ApEx engine attaches to each page item. It starts with p_t01 (for the first item on page) and can end with p_t99 (hence, the max 99 items per page limit). You can see these names in your HTML source code.
    The bug in the File Browse item (fixed in version 2.2) is that the ID of the item is the internal name instead of the item name. Hence, in order to use DOM, you need to use this internal notation.
    If the File Browse item id is p_t01, you can null its content by using something like that (V2.0 notation) :
    html_GetElement('p_t01').value = '';I'm using the same, and similar code, for manipulating this type of item with no problems.
    Please document the use of this workaround, as when you'll upgrade your ApEx system, you will have to change this code back to the standard – item id equal item name.
    (Please follow Scott's advise, and keep your logic connected issues on the same thread. It will get you more quick and accurate help).
    Regards,
    Arie.

  • Using Javascript To UnCheck A Checkbox

    Hi,
    I have a select list with two options in. When one of them is selected I have two checkboxes that I want hiding and setting to unselected. I can hide and show them fine using *$x_HideItemRow* and *$x_ShowItemRow*, but when I hide them I want the setting as unselected.
    Have tried using html_GetElement(pThat).checked = false; but when the items are displayed again they are still displayed as selected.
    Can anyone show me how to uncheck a checkbox using javascript?
    Cheers
    Simon

    Simon,
    Use firebug in firefox to see what's happening. The name of your item is applied to an HTML fieldset element that contains the actual inputs of type checkbox. Each of those has a name based on the item name with "_X" on the end as in PXX_ITEM_NAME_0.
    You'll need to select the one you want to check/uncheck directly by adding the underscore and the number. Also, you can use $x over html_GetElement (just shorter).
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Using JavaScript to Determine a Form's Folder Name

    We have an awful lot of forms, and in many cases, our custom JavaScript applies to all forms in a given folder. We would like to determine the form's folder name so that we don't have to list each and every form in a giant "IF" statement.
    Has anyone figured out how to determine a form's folder using JavaScript?
    Thanks!
    - Jake

    Jake_Turrell wrote:
    I think the only solution to the "refresh" issue would be to somehow query the hsp_object table and grab the parent_id (which for a form is the folder ID). If anyone figures out how to query the application repository from JavaScript,that would be very, very cool.
    As the database is server side and javascript is client side you would have to use something like an ajax call that passes the form id into an jsp script, the jsp script would query the repository and return the value to javascript.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using javascript to copy to the clipboard in Safari

    I had an application for taking notes in IE for the windows computers at my company. It used Javascript to copy the contents of a text box to the clipboard.
    Now that we've switched to macs (and love them), this no longer works in eitehr Safari, Firefox, or Camino for the mac.
    If there is a javascript command that will let you copy a text box's contents to the clipboard that works with any of these browsers, I'd be greateful for a few pointers int he right direction.
    Thanks in advance!

    jalperin wrote:
    > Here's what I'm doing:
    >
    Using a data set observer, check for
    onPostLoad and generate the html
    > code
    >
    Using innerHTML, stuff the code into
    the appropriate <div>
    >
    Use regionName.updateContent() to
    update the region I just created
    > with the html code I generated
    >
    > Interestingly, if I take the generated source for my
    page and remove the data
    > set observer, the Spry table displays correctly with all
    the expected values.
    > This suggests to me that my generated html code is
    correct, but that there is
    > some sort of timing issue (i.e. Spry doesn't know about
    the new code I
    > generated).
    >
    > Any suggestions?
    I'd guess that it is a timing issue as well. I haven't looked
    much at the dataset capability in Spry, but it may be that the
    dataset "finds" all of the regions and code that it applies to
    before the onPostLoad event is triggered. If that is the case, then
    your generated code doesn't exist yet,and so the dataset thinks
    that there is nothing for it to apply to.
    Will the HTML that you generate change based upon the dataset
    that is actually returned? I guess I'm looking for the reason why
    the HTML is being generated when it could be in the page itself and
    avoid this issue completely.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Numpad 789 and 123 not working in Quick Apply[ctrl+enter] window.  [CC2014.1]

    Hi guys,
    We recently switched to CC2014 from CS5.5 and one of the feature we had been using a lot before was the Quick Apply window.  However when we want to use the Quick Apply feature in CC2014.1 with the numpad, the numbers 789 and 123 don't work, while 456 work without problem.  Our style name has numbers in them and it's super practical to have the numpad and Quick Apply working together at 100%.
    Can anyone shed some light on this problem?
    Thanks you.

    you might have already tried this – but try is resetting the InDesign preferences on the workstation that is having issues. (Press Ctrl+Shift+Alt on startup).
    I haven't but I just tried and it didn't fix it.
    remove any third party plug-ins you might have installed in InDesign as well.
    The Only 3rd party plug-in we use is Math Magic, I have just removed it, reset the preferences and it still don't work.
    Is there a chance you are able to update the version of InDesign CC you are running to the latest release build 11.0.0.22?  (2014.1.0 Release), and repeat the tests in that?
    I think at this point it seems to be the only solution left and to cross our finger this will work, but updating PC's is a little tricky because it needs to go through IT software packaging and those affected PC are off the grid in a secret environment.
    when you create a new InDesign document and import the styles from the 'problem' document (Paragraph Styles panel menu: Load All Styles), are you able replicate the issue in the new document?
    New document, with or without our styles have the same behavior.
    when you create a new document in InDesign and add a few new styles with numbers, can you replicate the issue?
    You know in the quick apply you can type anything and normally even if you don't have a style with the entered character it will be inserted in the search box, but we don't get to this point with the 7,8,9 and 1,2,3 from the numpad.
    Is this an issue you can replicate on other computers / keyboards in the company?
    Actually they are not laptop, Dell also sell desktop PC.  My computer is an HP Laptop with an external keyboard and I have the same issue they are describing me.
    I wish I could test at my end for you, but unfortunately I only work on laptop-keyboards hopefully someone else out there is willing to test for you – so we know if it's an issue that can be replicated.
    So on your end when you go to the quick apply window (ctrl+enter) and use the numpad key 7,8,9 and 1,2,3 you see them been displayed in the search box?

  • Set SPViewStyle using Javascript

    Hi,
    In my sharepoint site, I have created one custom list with "boxed" style. Also, for Client Side Rendering purposes I add a reference to JS Link which changes few fields on UI for color coding. Somehow after applying this JS Link, "boxed"
    style is getting vanished and view is being shown in "Default" style.
    Is there any way I can re add the style in JS link script or by any other means?

    Hi,
    I can reproduce the issue in my environment, it seems that the JSLink is not compatible with the built-in style of the current view at this moment.
    If you want to apply the “Boxed” style with the custom style defined in JSLink, a workaround is that you can create a completely custom style like “Boxed” style using JavaScript
    within JSLink.
    Here is a link with demo about how to apply accordion style to the list by using jQuery UI plugin for your reference:
    http://www.sharepointnutsandbolts.com/2013/01/using-jslink-to-change-ui-of-sharepoint_20.html
    There are also other plugins in jQuery UI can be used to create custom style for a specific HTML elements:
    http://jqueryui.com/demos/
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or

    The situation:
    I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
    Question:
    How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
    Any one know how to do this?
    Thanks in Advance,
    ~Jack

    Try Peter kehrl's script
    http://www.kahrel.plus.com/indesign/missing_glyphs.jsx

  • Reading form data using javascript

    Hello.
    I want to go over the data received from the context to the PDF file using JavaScript, without binding it to any elements on the form.
    How can I access the data?
    I've tried using xfa.data or xfa.dataset, but didn't manage to get to it.
    How can it be done?
    Thanks.

    The following applies if it's a PDF generated from ABAP :
    Let's say a simple type parameter from context is named EBELN. To get it from javascript, you must use :
    $data.data.EBELN.value
    or
    $record.EBELN.value
    (it's the same)
    For example, to display the value, use:
    xfa.host.messageBox( $data.data.EBELN.value );
    Edited by: Sandra Rossi on Jan 28, 2009 7:34 PM : added $record line

  • IDCS3 on Leopard: Quick Apply crashes InDesign every time

    I haven't been able to use Quick Apply in ages, and I really miss it. InDesign crashes instantaneously every time I try to access Quick Apply. Deleting my preferences doesn't fix it. Changing the keyboard shortcut from command-return doesn't fix it. Selecting Quick Apply from the Edit menu instead of using the keyboard crashes too.
    Quick Apply works fine in InDesign CS2 running on the same Leopard system.
    Any ideas? I'm really reluctant to reinstall, and honestly I don't really expect that to fix it.
    InDesign CS3, 5.0.2, OS X Leopard (10.5.2, all updates applied).

    No problem here with Quick Apply. OS 10.5.2, IDCS3 5.02.
    Since I've removed version cue and disabled default Folder for InDesign my crash problems have (almost) gone away

Maybe you are looking for

  • Gold standard plug ins or collections for elements 9?

    One more quick question, t  feel like I've already posted too many questions until I know enough to  start contributing back to the community... Looking to get some plug ins for ps/premiere elements 9... A) Photoshop elements 9: 1 Anyone know of any

  • ITunes 64-bit for Windows 7; can I downgrade or remove upgrade?

    iTunes is crashing every time I attempt to either add music files to my library or sync my iPhone.  I've seen repeated complaints of this problem, but have found no solutions that work.  Does anyone know if I can remove the latest update (I'm running

  • Time stamp in OA framework

    Hi All, I have one requirement in OA form. In one form, I want the user to enter over time in Start time and end time field. Which data type should I use. When I use Date Time, it accepts date with time. But I want to enter only time in format HH:MM.

  • Different GPU / Unterschiedliche GPU

    hello I use AE version CC 2014.2 /13.2.0.49 I have a GTX 980, which is not supported by Adobe CC. Can I use a second graphics card, which I only render (GPU)? The idea is: GTX 980 use for monitors. The second video card (GTX 760) use only for AE rend

  • Basic Authentication in Mediator

    Hi , I am exposing an webservice via Mediator <-->BPEL .I need to do an Basic Authentication for the incoming request and after authentcating need to pass the autheticated crednetilas back to BPEL . Can any one please guide me . Regards , Nagakiran E