How to find the numbers and make it more 34
Hi, dear friends
I want to find a group of numbers in my selection and then make it + 34
for example: \d\d\d p. & p.
I want to do is + 34
My code below
var _selection = app.selection[0]; app.findGrepPreferences = changeGrepPreferences = null; app.findGrepPreferences.findWhat = "p. \d\d\d"; var found = app.selection[0].findGrep(); for(var i=0;i<found.length;i++) { app.findGrepPreferences = changeGrepPreferences = null; app.findGrepPreferences.findWhat = "p. \d\d\d"; var foundnum = found[i].findGrep(); var newnum = parseInt(foundnum[0].contents) + 34; app.changeGrepPreferences.changeTo = newnum.toString(); found[i].changeGrep(); } alert ("Done")
I think that my formula is wrong? Please a friend advice.
Thanks in advance.
Hello
Change the '-' in regex with ' \' as below, try the code,
_selection var = app.selection [0];
app.findGrepPreferences = changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "% \\d\\d\\d";
var found = app.selection [0] .findGrep ();
for (var i = 0; i)<>
{
app.findGrepPreferences = changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\d\\d\\d";
var foundnum is found [i] .findGrep ();.
var newnum is parseInt(foundnum[0].contents) + 34;.
app.changeGrepPreferences.changeTo = newnum.toString ();
Found [i] .changeGrep ();
}
Alert ("Done")
Tags: InDesign
Similar Questions
-
How to find the numbers and make it more 1
Hello world
I want to find a group of numbers in my selection, and then do it + 1
for example:
elderly (\d\d)
I want to do is + 1
and
201 (\d)
I want to do is + 1
What is the syntax?
Thank you
VK
Hi, VK,.
Try this. It looks up the number in the selection and added, for example, finds it "(20) years", "201 (2)" and will replace it for "elderly (21)", 201 3 respectively.
var _selection = app.selection[0]; app.findGrepPreferences = changeGrepPreferences = null; app.findGrepPreferences.findWhat = "(aged) (\\(\\d\\d\\))"; var found = app.selection[0].findGrep(); for(var i=0;i
Kind regards
Cognet
-
How to find the Maxima and Minima for each column of a 2D array?
Hello
I have a 2D chart and I would find the maxima and minima of each column of the 2-D table. Even though I know how to get maxima and minima for the whole picture but don't know how columnwise? Any ideas please?
Thank you
Rohit
Hello
@Smercurio-What you said is true, I should have shown using automatic indexing enabled which is really excellent choice. I just tried to show in a very simple way.
Anyway, here's the best way
-
How to record the numbers and words in the same file
Hello:
I did a vi where I record the spectrum and its integration in different positions of a two-dimensional net. I save the information in two spreadsheet with the comand "write to file measure."
Now, I am recording the parameters initial positions, end X X and space between measurement points. I want a file with two columns that looks like:
Initial position X 1000
final position X 2000
space 100
But idon't know how to save the words and numbers in the same file.
As I have to perform several steps I want to automatically choose the name of the file (something like parameters_1, parameters_2...)
Thank you for your attention
Hi bitxor.
You can use all the functions of the WriteTotext file to write strings to a file.
Then you could set up WriteToMeasurementFile' to add new data to existing files (instead of overwrite or renaming)...
BTW. It is not a good idea to mix lvm files containing arbitrary spreadsheet data!
-
How to find the utilities and windows drivers VGN-CR36G 8?
Hello
I use laptop Vaio VGN-CR36G with vista ultimate. Now, I want to install windows 8 enterprise edition.
But I can't find the drivers and utilities on the site of sony vaio.
But my product is compatible for windows 8 OS.
Here is the link below:
http://www.Sony-Asia.com/support/product/VGN-CR36G
Can someone please help me to download all drivers and software?
Thank you
Hi Whiteeasy.
This model does not support Windows 8 operating system which you can confirm from the link below.
If my post answered your question, please mark it as an "accepted Solution".
-
How to find the maximum and minimum of a waveform between cursors
Hello!
Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?
Kind regards
Andreas
Hi Andreas,
attached, you get an example of it in MeasurementStudio.
-
Last backup completed in September - how can I save now please
Hello1. you remember to make changes to your machine before the problem?
2. you have any third-party backup utility installed on your computer?
3. What are you trying to backup?
4. that you make a system image backup?Try another backup file and check.Follow the steps and check if that helps.Step 1:I suggest that you run SFC analysis and check if the problem is related to the file system damaged or missing.Step 2:Check your hard drive for errorsWarning of Chkdsk.
Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lostAziz Nadeem - Microsoft Support[If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]
-
How to find the lock and kill session in order to release it?
Hi all
EBS R12.2
"I met ' could not book record" in our case. How to release the session locked?
I usually do this by bouncing the apps & db level. Is their subtle way?
Kind regards
JC
Ideally, you should check for locks on the table in question where records are trying to access.
AFAIK, you must check the v$ locked_object and find sessions.
Hope this helps!
Kind regards
Hugues
-
How to find the version and the arc of the installed Oracle client
Hi all
I have a sles 10 sp2 x86_64 on which customer oracle 10.2 is installed. This facility has not been made by me!
so I don't know how the oracle client version/architecture (32/64-bit) is installed on the client.
of sqlplus v I get only the version that is installed, and not if it is 32 or 64 bit. How can I find that.
sqlplus v
SQL * more: Release 10.2.0.1.0 - Production
with a little research on Google I found that the link that says 10g below client 32-bit cannot be installed on a 64-bit system.
I read this Client 32-bit installation on Linux x86_64 RDBMS software. [1075717.1 ID]
can anyone please shed more light on this?Installing 32-bit RDBMS Client software on x86_64 Linux. The only release of 32-bit RDBMS Client software that will properly install on an x86_64 Linux OS system is 11gR2 (aka 11.2.0.x) * 9iR2 (aka 9.2.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system. * 10gR1 (aka 10.1.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system. * 10gR2 (aka 10.2.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system. * 11gR1 (aka 11.1.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system. The answer to "why", is that the 11gR2 Client software is the first version that includes syntax so that a 32-bit object is linked.
Hello
PL see TechNote MOS:
* How to find if the Oracle Client Software is 32-bit or 64-bit platforms UNIX [434295.1 ID] *.Thank you
A H E E R X -
How to find the lock and more information why the prg conc taking too long
Oracle Apps R12-Orader management
Hi all
I am new to Oracle Apps, we I run my simultaneous program
its taking too long to complete. How to find that there is a lock to produce in the table while that simultaneous execution of the program, another way to find why the simultaneous program takes too long to run and how can you speed up the process.
Yesterday we made a few changes to speed up the process with our DBA to accelerate the simultaneous program
The first simultaneous program takes 2 h 30 and after these changes taking 1 h 45. Please suggest it's okay
Connected with the responsibility of the system administrator.
Manager - set - Manager of the standard.
Set the value of PROCESS like 15 (instead of 10).
Set the value of SECONDS of SLEEP as 10 (Changed from 30).
Manager - set - Manager2 Standard.
Set the value of PROCESS like 15 (instead of 10).
Set the value of SECONDS of SLEEP as 10 (Changed from 60).
Any suggestion on how to find why it takes too much time.
Any help is highly appricatable
Thanks and greetings
Srikkanth.MHello
I suggest you draw the simultaneous program and analyze the trace file. To do this, mark the simultaneous program as Trace enable (RESP system administrator, Menu simultaneous > program > define) and then run the program and download the trace file after dealing with tkprof. Check which are the staements who take most of the time and try to optimize them.
It will be useful.
-
How to find the computer and hostname to get remote access?
Original title: remote access
Where I would look for a hot name and cmputer get remote access.Hello
Follow these steps to find the name of your computer:
1. open system by clicking the Start button, click Control Panel, clicking system and Maintenance, and then click System.
2. under name computer, domain, and workgroup settings, you can find your computer name and the full name of the computer if your computer
is in a domain.Refer to this link for help:
The name of your computer:
http://Windows.Microsoft.com/en-us/Windows-Vista/find-your-computer-nameYou can also visit these links for more information about the remote desktop connection:
Connect to another computer using Remote Desktop connection:
http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-another-computer-using-Remote-Desktop-connectionRemote Desktop connection: frequently asked questions:
http://Windows.Microsoft.com/en-us/Windows-Vista/Remote-Desktop-connection-frequently-asked-questions
Kind regards
Afzal Taher-Microsoft Support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
How to find the audio and recording mixers
Cannot find Audio Mixers and recording in Windows 7 as I had XP
My Medion computer purchased recently does not appear to have full audio mixer for volumes or a similar mixer to record levels as I have already in Win XP.
Is it possible to reproduce pages of mixer teas? I would be grateful for any help on this problem.
TIA Mike
Cool Edit 2000 (compatibility issue)
Hello
The mixer similar to that of Windows XP volume has been removed in Windows 7.
Windows 7 has its own volume mixer. Check this link for more information:
Adjust the sound level on your computer:
http://Windows.Microsoft.com/en-us/Windows7/adjust-the-sound-level-on-your-computerCool edit 2000 is not compatible with Windows 7. Cool Edit was taken over by Adobe, a few years ago and renamed Adobe Audition. The manufacturer
offers a paid upgrade to the software.Check this link for more information:
http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/details.aspx?type=software&p=cool%20Edit%20PRO&v=Adobe&UID=2&pf=0&PI=
6 & s = Cool % 20Edit % 202000 & os 32-bit =Kind regards
Amal-Microsoft Support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
How to find the object and remove from the WordPress site.
There is a search form that appear on each page. It is just below the entrance by the WP user content for each page.
I've been using Firebug in Firefox and I can see the code it puts in Firebug, but I can't find the source file so that I can change the code using DW to remove this search form.
Please help if you can.
I found it. It is searchform.php and she is called to sidebar.php where the other widgets are called from.
I hope this helps someone else.
Thanks for your help Nancy OShea
-
How to find the Date and the time of Installation of Oracle on Windows?
Hello
Is it possible to find the installation Date and time of Oracle on Windows?
Concerning
RajeshIf you have never recreated/restored/reincarnated the database, then COLUMN of v database $ should tell you when you created the database.
If you are looking for the time of installing Oracle home, check the logs under OraInventory.
Reply by Satish sir at the following link:
installation of a database date/time!HTH
Girish Sharma -
HP J4680: how to enter the numbers and letters of wpa
I have no trouble to enter the letters of WPA, but my WPA also has a number, how should I enter a number?
Continue to press the same key again and again and watch the magic.
Maybe you are looking for
-
Firefox does not correctly display images
He didn't get that on firefox.everything looks like green.as you can see in the screenshot of youtube.com, the logo looks green.same thing happens with facebook.com
-
With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help
-
Satellite P850 - need WLAN Driver for Windows 8.1 64bits
I have Satellite P850: I renewed my Kaspersky Internet Security and Windows update to 8.1 made 64 bit. Now, I have no wireless LAN driver. I can only connect to the internet through an ethernet cable. I searched high and low for 2 days looking for a
-
What number to call to get warranty service?
The HP Web site has apparently deleted or any telephone number a cleverly hidden could call to get warranty service. My PC 5 - months, has lost its wireless capability. Given that the wireless is the main method of Internet connection, I would like
-
How can you stop your malfunctioing album covers?
Just the day before I had an update I did on my computer. I noticed after the update from microsoft that I was getting a malfunction in my windows media player 11. So far, none of my music has dissappeared. The question that happens is that a part