Script to increase/decrease the number of line of initials?
There is a script to increase/decrease the number of drop caps text paragraph line?
I use Indesign CS-5 for windows xp.
Thank you in advance!
Hi Obi - wan Kenobi,
Maybe the code below will meet your requirement.
var incrementFlag = false; var decrementFlag = false; var w = new Window ("dialog", "Drop Cap"); var increment_button = w.add ("button", undefined, "Increment drop cap by one"); var decrement_button = w.add ("button", undefined, "Decrement drop cap by one"); increment_button.onClick = function(){incrementFlag = true; w.close();} decrement_button.onClick = function(){decrementFlag = true; w.close();} w.show (); if(incrementFlag == true) { app.selection[0].dropCapLines = app.selection[0].dropCapLines + 1; } else if(decrementFlag == true) { app.selection[0].dropCapLines = app.selection[0].dropCapLines - 1; }
Vandy
Tags: InDesign
Similar Questions
-
Increase/decrease the number of text field?
Hey there just playing on board and I'm trying to make a simple interactive (IE next buttons and back which got different labels).
I had pimples just play and play in the opposite direction to the next or previous labels (I'm sure there is a better way to do it, so I'm all ears), but when I get to a label how can I get to increase/decrease a number text field without having to manually add each label (especially if there are 100 labels)?
Thanks in advance.
Hey pancreas, it seems that you do not call the 'arrowBtnLt' and click 'arrowBtnRt', on the left/right arrow button functions.
Put this on arrowBtnLt.click:
sym.arrowBtnLt ();
Put this on arrowBtnRt.click:
sym.arrowBtnRt ();
In addition, because your label will probably from 1, document.compositionReady, replace the default value for 'currentCount' and if statement value left button like this:
Enter the code to run when the composition is fully charged here
var currentCount = 1; / / count the current count
var maxCount = 4; / / maximum number of slides, labels, images, whatever, you
sym.arrowBtnLt = function() {}
If (currentCount > 1) {}
-currentCount;
update your text
sym.getSymbol("pgNum").$("pgText").html (currentCount + "'") ;// convert number to string
go to label on the timeline
}
}
call this when the click on the arrow to the right
sym.arrowBtnRt = function() {}
If (currentCount<>
currentCount ++;
update your text
sym.getSymbol("pgNum").$("pgText").html (' currentCount + "");
go to label on the timeline
}
}
-
Script to determine the number of lines of text in a paragraph?
I'm revisiting a problem I posted here last summer, thanks to all those who have offered help, but I could not sort it out.
http://forums.Adobe.com/thread/455526?TSTART=0
What I'm after is a 'search' function to insert in a FindChangeByList.
Jongware suggested the following - but when inserted in my list, I can't seem to do anything - it does not take a Javascript error.
app.findTextPreferences = NothingEnum.nothing;
app.findTextPreferences.appliedParagraphStyle = "Callout_3";
foundItems = app.activeDocument.findText();
for (var i=foundItems.length-1; i>=0; i--)
{
if (foundItems[i].paragraphs[0].lines == 2)
foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
if (foundItems[i].paragraphs[0].lines == 1)
foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
}I regularly get a 'word' document on which I run a "FindChangeByList" that cleans and formats the text with a number of GREP/text searches.
One of the lines of research converts a particluar to the text string to a paragraph style "Callout_3" (the most common legends).
This style applies to paragraph NET, above and below the line, to create a block/strip of color that says text is reveresed.
The problem I have, is that the style (due to the rules of paragraph), works well if the paragraph has x 3 lines of text.
I have updated styles in place for any eventuality - Callout_1 (for the single line of text), Callout_2 (for x 2 lines of text) etc.
I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly the number of lines in each paragraph/legend.
Any other thoughts?
Steve
-your script can be incorporated into a FindChangeByList .txt file?
No, he needs to access real paragraph finds it to count the number of line of this paragraph. FindChangeByList Find/change regular strings together, and you can not search for a certain number of lines.
-what it takes to go to the 'findStyle ('Callout_1');"reference within a"group of paragraph style"called"legends "?
... Nothing. Because the style can be within a group, I wrote this little function. The findStyle performs a loop on * all * paragraph styles in the document, the root and in each group and returns the first style with the name that you provide in the function call (tested!).
So if there is a 'Callout_1' style anywhere, it should find it... Are you sure you put the name at the top of the script? I've seen in a post later that it is actually called "Callout_1line".
-
Move and organize files based on the number of lines
Hello
I have a directory containing files nearly 1,500, some of which are composed of 12 lines, some of which are composed of 4 lines, which are all .phy (PHYLIP) files, which can be viewed in Notepad/wordpad as text files.
I need to execute a script which will determine the number of lines in each file and move them to the corresponding folder. The file size will not work for sorting, I've tried.
that is, all files with 4 lines in one folder, all the files with 12 lines in another folder, any files left (so I can be sure that everything has been inspected) in the main directory.
Can anyone help?
Thank you
This issue is beyond the scope of this site and must be placed on Technet or MSDN
-
Basic conditional script based on the number of lines in a text layer?
Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.
The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.
Any thoughts?
I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.
#target photoshop app.preferences.rulerUnits = Units.POINTS; var doc = activeDocument var tL = doc.activeLayer var h = tL.bounds[3]-tL.bounds[1] var per = ((h/5)-(tL.textItem.size))/tL.textItem.size var num = h/(tL.textItem.size *1.108) alert(Math.round( num))
-
How to increase the number of lines 'forward '.
The number of lines to allow me to "pass" the address elements recently reduced to only 4. Previously, I had an endless places in which to place the forwarding addresses.
Firefox send an e-mail, it's strictly a web browser.
If you use Firefox to access your e-mail, you use "webmail". You must seek assistance from your service provider or a forum for this service.
If your problem is with Mozilla Thunderbird, let know us and we can move this thread to the queue of Thunderbird. This issue is currently in the queue of Firefox to get answers.
-
Yahoo AutoComplete component - can not increase the number of lines
I'm trying to manipulate Yahoo autoComplete component, found in:
http://developer.Yahoo.com/Flash/Astra-Flash/AutoComplete/examples.html
My one thing I want to change is the number of lines, similar to the CS3 list item. By default, they display a number of lines of 5. I've tried to set rowCount = 10, but I see that 5 rows when the AutoComplete component displays items.
Create an instance of AutoComplete
var autoComplete:AutoComplete = new AutoComplete();
give him data
autoComplete.dataProvider = new DataProvider (myData);
autoComplete.rowCount = 10;
The drop-down menu that appears when you type in the AutoComplete field always displays only 5, not 10, objects. Does anyone have experience with this component, or feeling up to their example FLA and see how I need to be wrongly trying to adjust this property?
Thanks for any help!I found a solution that worked for me.
You can set the number of lines after the immediate creation of an instance of this component - it should be set when a user interacts with it. I found myself by setting the number of lines on a CHANGE listener. Don't l; t look like the logical place to put it, but it worked fine for my needs in the long run.
-
Increase in the number of sprite buy by clicking on a button
Hello, I need a help on the following problem.
I have several sprite out of the scene and necessary to make this sprite, one at a time, within the scene, without writing a long script like this:
on mouseUp me
If sprite (5) .locH = 512 then
Sprite (6) .locH = 512
and so on...
I have to use the script several times with several sprite, so I'm looking for another solution.
Is there a (more efficient) way to increase by one number of the sprite for each click on a button?
For more information: I need another button that decrease the number of sprite, but I guess if there is a solution to increase I can fix the script.
I tried with my knowledge very few jargon, but from now on, I'm without a solution.
Thank youIn the script of the film, you set the variable global "gMinSpriteNum" to "1"...
on prepareMovie
gMinSpriteNum = 1 - use the sprite starting number minus 1.
gCurSpriteNum = gMinSpriteNum
end prepareMovieThen, change you the behavior of the increment...
-Behavior of the increment
on mouseUp me
NextSp = getNextSprite()
NextSp.locH = 512
endIf you want to be slick, then you can write like this...
-Behavior of the increment
on mouseUp me
getNextSprite () .locH = 512
end -
Hello
is there a limit to the number of lines, I'm processing in a relationship with apex_application.g_fxx?
I have a report with 7000 lines. My pk_row is apex_item.display_and_save(1,pk_id).
When I want to loop through these lines after submit and access with apex_application.g_fxx, I get the error "page not found".
If I have just 500 lines or 1000, it works.
Please help, it's urgent :-(I'm going to guess it's the parameter maxplsqlparameters for your instance of the Apex.
I had this happens with forms tabular and master / detail where you have a large number of lines or a number high columns resulting in a product that exceeds the value of the parameter (the number of parameters is something like lines * columns more some other small hold there).
By default, this setting is installed in 2000 (so we had some forms had slightly more than 60 rows and columns 30 - ish which would be run against this on submit.)
We have increased this setting to 10000 and so far, so good. We have noticed no ill effects of this. We arrived at this functional entry number based on key end users on the largest number of lines they would probably see at some point in the page.
-
Problem with the number of lines in the channel
Dear community LabView,
I'm relatively new to labview and I came across a problem that (I assume) can easily be resolved with your help.
I need to create a digital signal to trigger a camera, but I have a problem with the configuration of my lines or exit lanes. I would not use that line output to trigger the camera. (I use a card NI PCIe-6353). LabVIEW is telling me that the number of lines in the channel does not have the number of rows of data:
Possible reasons:
Specified read or write operation failed because the number of rows in the data of a string is not the lines in the channel.
If you use the digital waveform data type, make sure that the number of lines in the digital waveforms is the number of lines in the channel. If you are using Boolean data, make sure that the dimension of the array for the rows of the data is the number of lines in the channel.
Number of lines in the channel: 1
Number of data lines: 2Task name: _unnamedTask<11>
How and why the number of data rows is connected to the resolution of my analog digital converter?
I would appreciate your help! Labview code and a screenshot attached.
Thank you
Beff
I got it to work by changing the "data format" "binary not signed" OR by plugging is not the "offset" for the Square Wave VI. I think that the default "offset binary" data format works correctly if there is a negative value.
11> -
SE I can count the number of lines of UN chain?
Hello that tal me preguntaba if hay alguna funcion that can count the number of lines that has string of United Nations, for example digamos than esto tengo:
Hola
Como
estas
Ok
Son 4 lines, pero hay una funcion as arroje ese resultado? o tengo than generarlo? alguna idea?
Saludos, buen dia.
How to dice "Rube Goldberg" en Español?
-
Column data reading according to the number of lines
Hi guys,.
I am currently stuck on the problem of recovering the data from my database (MS Access) according to the number of lines, he has at any time (without having to know how many lines there will be during the programming of this part).
First, I show how my program works. I'm working on an automated food, order and after the customer has chosen his power, system information such as the name of the food, quantity and price of the food will be written to the MS Access database table. (for example table name "Orderingtable" in MS Access) For my case, 1 order of food will occupy 1 line of the database table. In other words, as part of the same, if he orders 3 different foods, 3 rows will be filled in my database table.
I would then get the part number of 'Quantity' for each order of the database and summarize the amount finally to count the total number of orders in the table of database at any time. This addition of result will be then shown on the Panel before informing the customer how many orders waiting's just prior to his order. In this case, it can get out if he wants to, if the number of orders is too big for its waiting time.
However, I do not know how many lines my 'Orderingtable' will be 'Orderingtable' because both accumulate lines and data lines until being command to remove. Therefore, I cannot predict how many lines I program the party totals the number of quantity for each line.
Is it possible that I can get the part of the 'quantity' without having to know the number of rows in the database so that I can count the total number of pending orders just by adding up the value of the quantity for each line?
I do not wish to "code" my program by limiting the tables of database for us are going to say, only 50 lines at any time.
Attached below, this is how my database table "Orderingtable" looks at, which will be used to extract the 'Quantity' column so that it can count the total number of orders and be shown/shown on the front panel of my Labview program.
I hope that you are able to help me!
Thank you so much in advance.
See you soon,.
MUI
You can also use the SUM function:
SELECT SUM (Quantity) OF the order WHERE Queue_No = %d
And no need of an "Order By" clause, if you add just the quantities.
-
License AnyConnect SSL - increase in the number of users
I have an ASA 5510 with SSL 100 users license. I'll add additional VPN users - how can I go on the increase in the number of authorized users? Can I buy a license 50 users and they will combine (to 150 users)? Or I have to jump up to 250 users?
I contacted Cisco and got two different answers (see above). If anyone has a part number, it would be great.
Thank you
Greg
Hi Greg -.
The next bump in licensing for Anyconnect Essentials is the number of users of 250 max (L-ASA-AC-E-5510 =). If you run Anyconnect Premium is more gradual. Here are the part numbers and user account for Premium evasion.
-
Platform: Windows 7 x 64 database: Oracle Database Enterprise Edition Release 12.1.0.2.0 12 c - 64 bit.
How row_limiting_clause Oracle to rowcount. percent for HUNDRED lines works in Oracle 12 c?
Row_limiting_clause Oracle is acting funny. In the code below, the 'fetch_test' table has 10 rows
Case 1 When using row_limiting_clause with first extract 0.5 lines only I get, no line selected
Case 2 When use the row_limiting_clause with the first rows only 5 percent clause I get,1 row as output.
This means case 1! = 2 cases [0.5! = 0.5 (5 percent of 10 lines)]
SQL > select * from fetch_test;
COL1 COL2
---- ----
1A
2B
3 C
4 D
5 E
6 F
8: 00
5%
: j
10 J
10 selected lines.
case 1:
SQL > select col1 from fetch_test
2 first extract 0.5 lines only;
no selected line
case 2:
SQL > select col1 from fetch_test
2 extract the first rows of 5 percent;
COL1
----
1
1 selected line
What Oracle Documentation has to say,
https://docs.Oracle.com/database/121/SQLRF/statements_10002.htm
If the number of lines has a fraction, then the fractional part is truncated. If the number of rows is NULL, 0 rows are then returned.
This explains the case 1, but I can't find any possible explanation in case 2 in my example above. and there is no mention on percentage clause in the Oracle Documentation.
Already asked on stack - overflow.but I got the answer regarding "assumes percent Gets the cycle of 5% to 10%.
No idea why Oracle doing what they do on the documentation! I hope that now you have the answer: a rest (when you use percent in the line limiter) will ALWAYS return a number integer, rounded upward.
-
BI Publisher - how to display the number of lines displayed at the bottom of the table on each page
Hello
We are the conversion reports Actuate BEEP and not able to understand how to view "Accum.Total = < n >" at the bottom of each page. In the attached report to operate it, "Accum.Total = < n >" must be displayed at the bottom of each page where < n > is the number of lines displayed on the current page and previous page.
For example, if there are 10 rows in the result set, if the 1st page displays 4 rows, 2nd page displays 3 rows and 3rd page is 3 lines and then Accum.Total = 4 on page 1, Accum.Total = 7 on page 2 and Accum.Total = 10 on page 3.
Note that we use the property table "allow the lines to break Pages = False" as we do not want a specific line can be split across pages.
I enclose a sample of report actuate, rtf, BEEP and XML report for testing file.
Approach used so far-
1 > I tried to put the counter in the footer, but it seems that only the fields that come directly from the IC can be used on the header/footer. No matter what form text field or variables defined in the report.
2 > I used approach given in the link below. Using this approach, I am able to view a coded value hard at the bottom of every page (just below the table) but his does not work for the variable (in my case the counter c1).
https://blogs.oracle.com/xmlpublisher/entry/continued
3 > on Google, I found a few articles on the page break conditionally as display only certain numbers on a page or the page by section break but in our case, its dynamics and its number of lines to display on a page is driven by data, so I could not think of a certain condition to use in "Condition." ": If" for use as a page break.
Thank youRicha
Watch see the-Report
http://docs.Oracle.com/CD/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#do_bf_cf
Download the https://blogs.oracle.com/xmlpublisher/entry/continued sample
Add
<>
name = "contd_footer".
format = "99G999G999" / >
After the field "Footer."
If need to use a footer to display the meter then and sous-modèle with code above and call it in footer
Maybe you are looking for
-
Impossible to paste into the e-mail after updating ios 10.0.1
After 10 ios update cannot paste into emails on iphone 6, iphone 5 and ipad.
-
HP w2207: screen rotation
My cat has just sat on the keyboard and the screen has turned sideways. How can I activate this back please? Thank you
-
Why the new cRIO-9076 does not support the scanning engine?
I spec'd a new chassis cRIO-9076 spiffy but learned that, despite its impressive capabilities, it does not support the analytical engine. I'm curious as to why this is. I hope that this is not an indication of support OR away from the scan engine an
-
! Missing for HP 2000-2C12NR Ethernet drivers &; SM Bus
I just finished without portable decommissioning of my aunt of windows 8 for windows 7 Pro 64-bit (she's been difficult really to work with windows 8), but it seems that some of the pilots did not through the instillation. I've been down the drivers
-
Vista-a failed-Code of error 80070570 updates
Updates for Vista have been are marked down with updates error Code 80070570-not for Vista have instaled since the first of October; However, to install the MS Office updates. I tried to go back and the first update which failed, but it does not work