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.
Similar Messages
-
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 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 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 install asian script for language support for bangla in safari and install a font? Some websites are working fine in ipad and iphone4 but not in mac osx supported imac or macbook. Example: www.sonarbangladesh.com.
You just need to install a font, like one of these:
https://sourceforge.net/projects/onkur/
http://www.ekushey.org/?page/osx
For non-Unicode sites, see
http://m10lmac.blogspot.com/2011/04/reading-non-unicode-indic-language-web.html -
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 -
How can I write a script to regularly transfer a file between two iMacs on a network?
I keep all our family photo files (iPhoto Library) on my wife's iMac. Because we can't share the library simultaneously, I want to automate the copying of the library from her iMac to mine say, once a week in the wee hours (it's a big file). Both of our iMacs are on our common (wired) home network. Is there a way to write a script that will accomplish that? If it matters, we both maintain independent external backup drives and use 'Time Machine' judiciously. Thanks in advance for any guidance!!!
Hi Paul,
http://fmforums.com/forum/topic/85381-applescript-to-copy-file-from-network-volu me/
http://stackoverflow.com/questions/5134568/copy-a-file-in-applescript -
How can I get the Icon for setting back? It just went away?
How can I get my Setting Icon back?
Try reset iPad
Hold the Sleep/Wake and Home button down together until you see the Apple Logo.
Note: Data will not be affected. -
How can I write a script or create a macro for gaming.
Now I know this may be a petty and or silly question for most apple users but I am going to throw it out there anyway. I play an online game called Battle Pirates. When you make an attack you have up to 5 ships to control. I am looking for a way to control multiple ships with a "macro" or "script" and using only 1 key. For example: Select ship 2, 3, and 4 while leaving ship 1 and 5 alone. Yea I know it is childish but indulge me. Hahaha.
I know you can write Macros with Windows and you can even use something called "Auto Hotkey". I just wanted to see if anyone knew of a way to do this with what Apple already has in place. What I have commonly found out with Apple products is that since I have come from being a Windows user to Apple, I usually overthink the process. LOL. Mac's are soooooo much easier....if you know where to start.
Any help would be greatly appreciated! By the way, I have read the tutorial on "Script Editor" but I am having trouble understanding it mostly because you kinda would have to have SOME programming knowledge. Obviously I lack in that area. Thanks for bearing with me.Can you expand on that? How do you use automator in your game? Can you give me a rough idea of how and what you do with it? I have watched a tutorial on Automator and it seems more useful for documents.
-
How can i write sql query for this result ?
Hello Dear,
Here is the script first.
CREATE TABLE ACC_TEST(
AD_ID NUMBER,
AD_NAME VARCHAR2(50),
AD_SPM_ID NUMBER);
/data are
Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (136,'Saleh Ahmed',129);
Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (142,'Hamidur Rahman',136);
Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (124,'Jasim Uddin',null);
INSERT INTO ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) VALUES (129,'Sazib',124);I Need The Following Result When I Pass A Value Of Ad_Id. For Example I Pass 142 Then Result Should Be
Select Ad_Id,Ad_Name
From..
where ad_id=142
Ad_Id Ad_Name
136 Saleh Ahmed
129 Sazib
124 Jasim Uddin
If I Pass Ad_Id=136 Then Result Should Be
Ad_Id Ad_Name
129 Sazib
124 Jasim Uddin
If I Pass Ad_Id=129 Then Result Should Be
Ad_Id Ad_Name
124 Jasim Uddin Database 10G XE
Any help will be helpfulHi,
HamidHelal wrote:
WoW ! you acutely got my point. How did you understand that ? lLuck guess. Guessing is usually not the best way to solve problems. It's usually faster and more reliable to say exactly what you want, as well as give an example.
ittle bit more i want to know, if i want to restrict the output not more then 2, what would be sql ?Now you're not even giviing an example!
Maybe you want something like this:
SELECT ad_id
, ad_name
FROM acc_test
WHERE LEVEL BETWEEN 2 AND 3 -- Changed
START WITH ad_id = :target_ad_id
CONNECT BY ad_id = PRIOR ad_spm_id
;which will show jsut the parent and the grandparent of the given row.
I do work with forms developer very much. Sql knowledge is as oracle sql book(cerfitication 9i). But this type of sql isn't available there.
where can i learn this type of sql ? Different sql then ordinary ?Certification is a different topic entirely.
There are books and web sites dealing with more advanced techniques. Sorry, I don't know any well enough to recommend them. Some authors (such as Tom Kyte) are consistently good.
Here are a couple of sites that explain CONNECT BY queries:
http://www.adp-gmbh.ch/ora/sql/connect_by.html
http://www.oradev.com/connect_by.jsp -
How do I write a script to set maximum pixel dimensions?
I need to batch process JPGs and limit the maximum dimension to 500 px. This has to apply to the largest side of the image, either height or width. The other side should auto size proportionately. I'm currently having to make these size changes manually. I haven't found any script language or function that will let me set the largest pixel size to 500 px, regardless of which dimension is the largest.
Example:
1. If the image is 1000 px w x 750 px h, I want the script to resize the image proportionately for the largest side, changing the width to 500 px
2. If the image is 750 px w x 1000 px h, I want the script to change the height to 500 px and the proportions conform accordingly for the width
Any ideas are grately welcomed.
Thanks,
LindaCreate an action that use File - Automate - Fit Image.
I think there may still be a bug that this should fix....
http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3370&p=15152&hilit=don%27t+enlarge+fit+i mage&sid=ea73e8349aaf965015a4a351340e865d#p15152 -
How can i get java script for apple
java script turned off cant get it back on.
The interpreter to handle JavaScript is built in.
To turn the JavaScript interpreter on and off for all pages:
Firefox > Preferences > Content tab
If you already have JavaScript enabled on this tab but some sites tell you that JavaScript is ''not'' enabled, this might be the result of an add-on, a script filter, or many other possibilities.
You didn't provide a lot of information in your post. Can you indicate where you have this problem, when it started, and whether you recall making any changes in Firefox or on your system before this happened? -
How can I write an installer for filter plugin ?
Hi,
My filter works with several files.
I should take some files in different folders (Actions, Filters, Styles, Textures...)
Which installer can I use? Which installer knows the Photoshop directory?
Thnx for any help
FelixYou can also use this to find the photoshop executable:
RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshp.exe', 'Path', sPath);
("HKEY_LOCA_MACHINE\SOftware\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe")
The problem with the plugin path is that its named differently depending on your os language, e.g. "Zusatzmodule" in german. Now, since you do not know wich version is installed, you can't query the reg-key I stated first and without it you can never be sure how the plugin folder is named on the target platform.
Now either you try a reg-key for each version 1.0 to 10.0 until you get a valid entry or you can use the reg-key from above and put your plugin directly into photoshops root folder - it will be found there too. Of course that's a bit messy, but you don't have to worry about plugin-folder name and/or ps version that way. -
How can i write the code for make calendar in sap abap
hi this aditya from ongc trainee
i want design the calendar which is editadle only at present date for tik is it present or not.Hi Ajay ,
You can have Calender in your webdynpro Application by creating Element " DateNavigator" . -
How can I write unit tests for BizTalk Maps with multipe inputs?
I want to bring all my maps under unit test coverage, but can't seem to find a way to test maps with multiple inputs. Maps with multiple inputs are first merged into a single schema by biztalk and then the map actually uses that inline schema as source.
What I tried is- produced a generated instance of source schema by clicking "Test Map", and then modified the skeletal instance by stitching together the multiple input files into it. There are two problems I am facing going forward that way- 1#
It takes a lot of time to craft a mock input of inline schema and 2# the mock input fails input validation although the input works just fine in the orchestration.
So is there a better or standard way to test such Maps?For testing maps with multiple inputs, follow the below steps-
Lets assume you have a map with two input schemas A and B and output as C.
1) To create the required schema just reverse the inputs i.e. make a map with C as input and A & B as output. Later do a test map. This will generate an XML File with schemas A & B.
2) Now you just to need to replace OutputMessagePart_0 to InputMessagePart_0
and OutputMessagePart_1 to InputMessagePart_1
Later you can use this xml for testing your original map.
Refer the below article
Developing and Testing Maps which have Multiple Source and Destination Schemas
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.
Maybe you are looking for
-
Difference between upgrdae and migration about oracle database
Difference between upgrdae and migration about oracle database please give the comments
-
In the Firefox browser, when i click button in ADF page, then popup the OAF page in iframe tag,and then when i click the PPR bean in OAF page, then Firefox browser reload to ADF page. This is not the right response,browser should not reload the A
-
Sales order cancellation with points comsuption
issue is the following : As a consumer, i create a sales order in WCEM with points consumption : i "give" 8 points to get my stuff -> fine. Then, i decide to cancel this order, still in WCEM, as delivery is late .. -> i don't have any member activity
-
What is the use of inverted date format
In table TCURR - Exchange rates, the field GDATU - Date As of Which the Exchange Rate Is Effective is stored as an inverted date. So 01/01/2008 is actually stored as 79919898. What is the use of inverted dates. Why does SAP use them. Why not just use
-
Moving windows is jittery.....
Moving windows around by clicking the top edge looks very jittery to me. The movements are not smooth at all. Looks like a refresh phenomenon except I'm using an Apple Cinema Display with no refresh adjustment. When I grab the bottom right corner of