How Can I write Script for Indesign set left indent
I really need two scripts for indesign set left indent:
1. If the left indent is: 8, 16, 24, 32, 40, 48, 56mm... set the first -8mm; if the left indent is 0, set the left indent 8mm, first -8mm.
2. Whatever the first indent is, set the first 8mm.
Can someone help me?
Hi, Trevor
I use change by list as below:
grep {leftIndent:48mm} {leftIndent:56mm}
grep {leftIndent:40mm} {leftIndent:48mm}
grep {leftIndent:32mm} {leftIndent:40mm}
grep {leftIndent:24mm} {leftIndent:32mm}
grep {leftIndent:16mm} {leftIndent:24mm}
grep {leftIndent:8mm} {leftIndent:16mm}
grep {firstLineIndent:8mm, leftIndent:48mm} {firstLineIndent:8mm, leftIndent:56mm}
grep {firstLineIndent:8mm, leftIndent:32mm} {firstLineIndent:8mm, leftIndent:48mm}
grep {firstLineIndent:8mm, leftIndent:24mm} {firstLineIndent:8mm, leftIndent:32mm}
grep {firstLineIndent:8mm, leftIndent:16mm} {firstLineIndent:8mm, leftIndent:24mm}
grep {firstLineIndent:8mm, leftIndent:8mm} {firstLineIndent:8mm, leftIndent:16mm}
grep {firstLineIndent:-8mm, leftIndent:48mm} {firstLineIndent:-8mm, leftIndent:56mm}
grep {firstLineIndent:-8mm, leftIndent:32mm} {firstLineIndent:-8mm, leftIndent:48mm}
grep {firstLineIndent:-8mm, leftIndent:24mm} {firstLineIndent:-8mm, leftIndent:32mm}
grep {firstLineIndent:-8mm, leftIndent:16mm} {firstLineIndent:-8mm, leftIndent:24mm}
grep {firstLineIndent:-8mm, leftIndent:8mm} {firstLineIndent:-8mm, leftIndent:16mm}
but not that perfect,
I want to useing jave "if{}" or "for{}" to write this script, but I don't kown the syntext.
Similar Messages
-
How can i write code for close my application
Hi,
I m doing one apps in which i have 2 option and Agree and Quit. When user press Quit then my apps should be close and direct to main page of iphone. My apps should terminate.
So anyone know that how can i do that?
Thanks.Thank friend......... thanks a lot.... its working.......
-
How can build help file for right to left and non english language
hi erverybody, i have a big problem ,please help me
i creat a c# appliction with vs.net2005 and i want to write
help file for it .i need a software to creat help file for non
english language(such as persian or arabic) and right to left
support . i tried many helpware chm builder tools but each of them
made a problem .i dont know what to do .what is the best solution
for creating help files for right to left and non english languages
how can i build my help file with f1 helping ability .thank u
so much
TextHi Mr_Sia and welcome to the RH community.
You could try looking at the HAT Matrix. This is a comparison
of all the help tools around. Click
here to go to it.
RoboHelp itself, whilst it does support over 35 different languages
does not support Persian or Arabic. -
Can anyone write script for this
You need to create a class called ?Account? that represents a bank account. The data describing each account consists of the customer?s account number, name and the current balance. Method shoud be provided to deposit an amount of money and to withdraw an amount of money and to get the current balance.
Class Account may like the following
class Account{
protected int accountNumber;
protected String firstName;
protected String lastName;
protected float balance;
protected String message;
protected String accountType;
//default constructor
public Account(){*add your definition here*/}
//constructor
public Account(String firstName,String lastName,
float balance}
{*add your definition here*/}
public void deposit(float amount)
{*add your definition here*/}
public void withdraw(float amount)
{*add your definition here*/}
public void balance()
{*add your definition here*/}
public void display(Graphics g, int x, int y)
{/*add your code here:print out accout type*/
/*print out name,accountNumber and ?message?*/}
You also need to create two classes: Checking and Saving both inherited from classs Account. Provide both classes with their own contructors. A checking can go overdrawn (the balance can be less than zero). A saving cann?t go overdrawn. Add an additional data member interestRate to the class Saving. Add an additional data member called limit to the class Checking. It represents overdraft limit. For example, if the overdraft limit is 500, any request of withdrawing that causes the balance of the checking account under ?500$ would be denied. You need to override methods withdraw in both classes.
You also need to create a user interface class called UseAccount
? The beginning of this class could be
private Account account;
private Checking checking;
private Saving saving;
private Choice accountChoice;
private String choice="Checking";
? Create objects ?checking? and ?saving? in your ?createGUI? method and assign object ?account? to the default one.
? Add a textField called amountField to allow people to enter the amount they want to deposit or withdraw. Also add a Label with it
? Add three buttons: deposit, withdraw and balance
? Add a Choice box that has two options: Checking and Saving. Set default choice as Checking or Saving as you like
? When you press a button, action happens on the approprite account
? Whenever you make a deposit or withdraw, print out the account number, account type and what you have done in this account.
? Use the polymorphism, you actionPerformed method could be
if(event.getSource()==withdraw){
Float amount=Float.valueOf(amountField.getText());
account.withdraw(amount);}
You itemStateChanged method could be
if(e.getSource()==accountChoice){
String aChoice=e.getItem().toString();
if(aChoice.equals(?Checking?))
account=checking;
? When a transaction is made or denied, you should display an appropriate message. For example, the message could be:
Account Type: Checking
Name: George Bush
Account Number: 1010
Deposit amount: $120.
Transaction success! ?.
Or
Account Type: Checking
Name: George Bush
Account Number: 1010
Withdraw amount: $1000.
Request denied! Exceed the overdraft limit!
this is my assignmnets .. as i dont get what my teachers teache sin class i dont know how to wring programs in java ...littl ehelp frm u can help meh to understand the java and of course complet my assignmnetwhast is wrong with u guys if u guys can come with
the solution .. ..then plz .. dont write here just to
increase . ur post ....Nobody is posting here to increase their post count. Typically, when some chucklehead comes along and says, "Hello. I am lazy and a pathetic waste of a student. Please do my homework for me, because I want a free ride..." - the thread get hijacked and turned into some nonsensical, totally unrelated mess. NO ONE IS GOING TO DO YOUR DAMN HOMEWORK FOR YOU, SO GROW A F*CKING BRAIN, GET OFF YOUR LAZY A SS AND DO IT YOURSELF.
Oh ... and have a nice day :-) -
How can I write a script for set left indent?
In three cases as below:
for example:
left indent:8mm; first indent:0mm
left indent:0mm; first indent:8mm
left indent:8mm; first indent:-8mm
How can I write a script to tell Indesign, wherever the text indent is, each time when I run the script once, the text can put just a step rightward, and “one step = 8mm”.
Please!Hi, Trevor
I use change by list as below:
grep {leftIndent:48mm} {leftIndent:56mm}
grep {leftIndent:40mm} {leftIndent:48mm}
grep {leftIndent:32mm} {leftIndent:40mm}
grep {leftIndent:24mm} {leftIndent:32mm}
grep {leftIndent:16mm} {leftIndent:24mm}
grep {leftIndent:8mm} {leftIndent:16mm}
grep {firstLineIndent:8mm, leftIndent:48mm} {firstLineIndent:8mm, leftIndent:56mm}
grep {firstLineIndent:8mm, leftIndent:32mm} {firstLineIndent:8mm, leftIndent:48mm}
grep {firstLineIndent:8mm, leftIndent:24mm} {firstLineIndent:8mm, leftIndent:32mm}
grep {firstLineIndent:8mm, leftIndent:16mm} {firstLineIndent:8mm, leftIndent:24mm}
grep {firstLineIndent:8mm, leftIndent:8mm} {firstLineIndent:8mm, leftIndent:16mm}
grep {firstLineIndent:-8mm, leftIndent:48mm} {firstLineIndent:-8mm, leftIndent:56mm}
grep {firstLineIndent:-8mm, leftIndent:32mm} {firstLineIndent:-8mm, leftIndent:48mm}
grep {firstLineIndent:-8mm, leftIndent:24mm} {firstLineIndent:-8mm, leftIndent:32mm}
grep {firstLineIndent:-8mm, leftIndent:16mm} {firstLineIndent:-8mm, leftIndent:24mm}
grep {firstLineIndent:-8mm, leftIndent:8mm} {firstLineIndent:-8mm, leftIndent:16mm}
but not that perfect,
I want to useing jave "if{}" or "for{}" to write this script, but I don't kown the syntext. -
How Can I write a script for change first indent?
How can I write a java script to tell indesign:
what ever the text first indent is, I want to change first indent =
1) 8mm
2) 0mm
3)-8mm (if left indent is 0, change the first indent to 8mm, and then change first indent = -8)
3 scripts
Please someone help me, please!Hi hasive, thank you for your responses, thank you very much,
I need three scripts
1st script, I want to set the first indent to 8mm;
2nd script, I want to set the first indent to -8 mm, but if the left indent is 0, please set the left indent to >8mm then set the first indent to -8mm;
3rd, I want to set the first to 0mm, if the first indent is 8mm or -8mm;
thank you
Harvey -
How do I set pages up so that I can type a script for a radio play
here we go, that is if I'm not driven mad by the process of trying to work out how to use this help thing.
how do I set pages up so that I can type a script for a radio play ie the character then as an indented bit what they sayHere's a sample, using what should be a familiar script to any radio drama buff, and showing a few of the features you'll want to incorporate into your template.
Features noted by arrows:
This is the "First line indent" margin stop, in this case, set to produce a 'hanging indent'. This stop sets the starting position of the first line of a Paragraph.
Left margin stop: This stop sets the starting position of all lines in a paragraph except the first.
When setting margins, set this one first, as it will drag the First line indent stop with it when moved. After setting this one (by dragging it to the position on the ruler where you want it to be), drag the rectangle (First line stop) left as far as it will go.
Right margin stop.
Running Header: This is a combination of text that appears on every page, plus the page number / page count—very useful information when someone drops his script. (Typed here, but a combination of typing and inserting the two number calculators from the Insert menu in the actual template.)
Tab character. Used to move the first line of the dialogue into alignment with the rest of that paragraph. The Left margin stop also acts as a Tab stop.
Paragraph break (made by pressing the return key). After a Paragraph break, the next line of the script will start at the left margin of the page. To break a long monologue into smaller blocks, use a 'soft return', made by pressing Shift-return, as I've done twice here...
...to produce an empty line without creating a 'new paragraph' (or in this case, a new item on the current list.
Those are the basics for producing the body of your script.
Regards,
Barry
Sample script is an excerpt from:
The War of the Worlds
COLUMBIA BROADCASTING SYSTEM
ORSON WELLES AND MERCURY THEATRE ON THE AIR
SUNDAY, OCTOBER 30, 1938
8:00 TO 9:00 P.M. -
How can i write the trigger for Global Temporary Table
Hi Grus,
How can i write the trigger for Global Temporary Table.
I was created the GTT with trigger using the below script .
CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
EMP_C_NAME VARCHAR2(20 BYTE)
ON COMMIT PRESERVE ROWS;
CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
BEFORE DELETE OR UPDATE OR INSERT
ON GLOBAL_TEMP
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
END;
trigger was create successfully, but the wouldn't insert into to EMPNAME Table..
Please guide whether am correct or not? if not kindly give a correct syntax with example
Thanks in Advance,
Arun M MBEGIN
INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
END;
you are referencing old value in insert stmt.
BEGIN
INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
END;then run ur application it works fine...
CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
EMP_C_NAME VARCHAR2(20 BYTE)
ON COMMIT PRESERVE ROWS;
CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
BEFORE DELETE OR UPDATE OR INSERT
ON GLOBAL_TEMP
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo');
INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
dbms_output.put_line(:OLD.EMP_C_NAME);
END;
create table EMPNAME as select * from GLOBAL_TEMP where 1=2
insert into GLOBAL_TEMP values('fgfdgd');
commit;
select * from GLOBAL_TEMP;
select * from EMPNAME;
output:
1 rows inserted
commit succeeded.
EMP_C_NAME
fgfdgd
1 rows selected
EMP_C_NAME
fgfdgd
1 rows selectedgot it Arun
Edited by: OraclePLSQL on Dec 28, 2010 6:07 PM -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How can we write the code for opening the command prompt and closing the
how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)
rakeshsikha wrote:
how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)? -
How can I write program in Labview for zbrain kit..??
Hello everybody
I need to write the program in Labview fro Zbrain kit. I need to write code for multiple analog input (through multiple channels) that results multiple digital output. I found one refrence code which has one analog input (one channel) and gives one digital output.
I also need to save data for channels. I have no idea how can I save data for channels.
I have attached here the base program. Please give me idea how can I understand this program so that I can complete following tasks:
1. Save data for one channel and later for multiple channels
2. Modify the number of channels from one channels to multiple channels.
Actually I have gone through the videos and text based content(basics in labview) but I am unable to write the code.
Attachments:
Analog_3_InBlock.vi 131 KBHi,
Attached is an example snipped with some more comments on how to acquire multiple channels on a ZBrain platform that is based on an Analog Devices Blackfin processor. Just drag and drop it into your LabVIEW diagram. More examples can be found here: http://wiki.schmid-engineering.ch/zsystem/doku.php?id=example_zmc_adc-dma_continous. The idea behind dynamic data acquisition on a microprocessor is simple: you define the channels (up to 6x) , sampling frequency (up to 250kHz) and block sizes (up to 65'000) and start the acquisition. The underlying driver model samples in the data in parallel and the LabVIEW program gets this data. While e.g. processing the data, the underlying driver model continues sampling new data.
I hope this helped.
Marco Schmid
Schmid Engineering
Attachments:
snippet_zmc_adc-dma_continuous.png 107 KB -
How can I buy or license InDesign CS4? (I need to work in CS4 for a client, even though I have a CC subscription.)
There's no way to buy CS4 any longer through official reseller channels. If you can get the work done in 30 days you can use a trial, which you can download at Download and Installation Help
-
How can i write a Pl/sql Programme for a calender
hi all,
How can i write Pl/sql programme (may be function) for a calendar ,like after the programme is created if call the function at the prompt and give the year 2099 so on, it should display the result with all the 12 months (months and days.)
Please email the answer to
[email protected]
or send the link for the answers.
ThxWell, you can start off by reviewing the SYSDATE command and the TO_DATE and TO_CHAR functions. Also, review addmonths etc.
http://www.unix.org.ua/orelly/oracle/prog2/ch14_01.htm
Cheers -
How can i write properties file for Hindi font
Hi All,
i'm using jdev 11.1.1.5.0
in my use case i have worked on internationalization where i want to use hindi font
like this link -
Majid Hussain: Internationalization of ADF 11.1.1.3 Applications
as in above post majid used german language and write properties file for german language(which is using english character).
but my problem is that i want to use hindi language
so how can i write propery file which support hindi font.
ManishHi Manish,
We also had same requirement where we need to show indian local language(Hindi ,Bengali and many more ).
We had implemented following approach and perhaps it will helpful for you.
1-First we changed the encoding value in jdeveloper.
go to jdeveloper --> tools --->preference-->encoding , select to UTF8
2-We used to get the properties and it's translated value from business and then we were manually put these pair into related resource bundle.
And using this we were able to implemented multilanguage support.
Thanks
Prateek -
Hello!
I want to write 1 digital port from PXI-6536 with streaming to TDMS file.
I'm writing by 'DAQmx Configure Logging.vi' and become TDMS file with 8 boolean channels.
How can I write to 1integer channel?
Attachments:
1.JPG 27 KBHey Atrina,
The actual data stored on disk is just the raw data (that is, a byte per sample in your case). It's really just a matter of how that data is being represented in LabVIEW whenever you read back the TDMS file.
I'm not sure if there is a better way to do this, but here is a way to accomplish what you're wanting:
Read back the TDMS file as a digital waveform. Then there's a conversion function in LabVIEW called DWDT Digital to Binary. This function will convert that set of digital channels into the "port format" that you're wanting. I've attached an example of what I mean.
Note: When looking at this VI, there are a few things that the downgrade process did to the VI that I would not recommend for these TDMS files. It added a 1.0 constant on the TDMS Open function, and it set "disable buffering" on the TDMS Open function to false; you can get rid of both of those constants.
Message Edited by AndrewMc on 01-27-2010 11:21 AM
Thanks,
Andy McRorie
NI R&D
Attachments:
digitalconvert.vi 13 KB
Maybe you are looking for
-
Dear forum contributors, 1. HP Officejet Pro 8600 Plus e-All-in-One 2. Linux OpenSuSE 12.2 64-bit 3. Failed , after the failed message is a very long URL to my gmail attachment. 4. This issue occured from the beginning, I have this printer only for o
-
Free goods determination from material determination.
Hi experts, I have one issue for you, My scenario is: we issue freee goods 1:1. i configured free goods setting and maintained VBN1 (condition records for free goods). i even maintained material determination configuration settings and maintained VB1
-
How to populate the premise info automatically in Order page of CC&B
Hi All, In CC&B if we are creating a order from order page, whenever we select person information as a existing person and search the person using search button,account information also used to get populate automatically.But at the same time premise
-
Photoshop CS4 Trial version install error
Hello. I've downloaded the trial version of Photoshop CS4 Extended. When I click the setup.exe it starts running and works until it reaches the loading setup menu. Then a error pops up. The title of the message box is "Windows Internet Explorer" and
-
Will Apple open my Macbook Pro for me?
I'm just curious, I was trying to install new RAM, and the screws are just so tight that I am only ruining them as I try, will they open it up for me for free? The RAM is third-party, but I can install it myself once the system is open. Also, I've ne