Replacing the info in the GREP script to run a bunch of functions at one time
Hello,
I have created a new JavaScript, by saving the script called "FindChangeByList.jsx" and giving it a new name, and replacing the text file with my new one, which is just a copy of the original with my one change.
I am trying to make my script do 2 functions that I use often, and I am already stuck on the first one.
grep {findWhat:"\d+:\d+\t"} {changeTo:""} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double spaces and replace with single spaces.
I am trying to find any digit one or more times, followed by a colon, followed by any digit one or more times, followed by a tab aand replace it with nothing.
does anyone know what I have wrong in this file?
thanks
babs
HI John,
OK-the puzzle gets more perplexing.
You are right, the examples do not escape out the backslash and they work fine.
So, I took ours, and removed one additional backslash at time to see if it was one in particular, and guess what? I removed all 3 and it worked?
BUT!!!! and there is a big but here....after the answers here that made it work, I continued with my request by adding a second line of code to follow.
Here is the second line of GREP after the one I had questioned.
grep {findWhat:"\r"} {changeTo:" "} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all returns followed by a tab character and replace with single returns.
When I put the double backspaces in, it was fine by itself, so, then I added this second line and all was still fine.
So, after reading your comment this morning, I removed the additional backslashes (one at a time) and it still worked. (I thought maybe, it was one in particualr giving me grief.)
So, I removed that second line of code, and left it as I had it during my original post, one backslash, and guess what, it didn't work?
Conclusion thus far: Without that second GREP request, the line before it only works, if you have the escaped out the backslashs..once I put the second line back in, the first line works with just single backslash's???
Talk about strange?? huh???
any thoughts????
babs
Similar Messages
-
I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?
A reply to similar question (Q & As , in product page Apple Store) says:
"...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it." Answered by Enrique T from Lima Oct 25 2013.
If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
Hopefully this helps.
Good luck & happy computing! -
How can I completely wipe the hard drive with out the Mac OS X disc? I don't need any of the info on the computer.
You can't unless you have a bootable system on an external drive you can use. Otherwise, you need either the original disc that came with your computer or a retail copy of Snow Leopard DVD. The latter contains 10.6.3, so your model must be capable of booting from that or an earlier version of OS X.
You can purchase replacement discs from Apple:
Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
To contact product and tech support: Apple - Support - Contact Apple Support.
You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements. -
I had a MobileMe account before... after upgrading to iOS 5, should I keep my account info under iCloud (settings) AND under mail, contacts and calendars (in Settings as well) or only keep the info under the new iCloud setting section?
That's not the correct port. It should be 993 for incoming.
If you signed into iCloud from the System Preferences, it should automatically create the iCloud account for you in Mail. Sounds like it is an account you already had set up for MMe in Mail.
Open Mail preferences, open the Accounts tab, disable that account in the advanced pane.
Open Sys Prefs, open the iCloud tab, and sign out of iCloud. Then sign back in and see if a new iCloud account is automatically created. -
is it possible to print the info. for the help window. (ex. how to create a smartlist... i tunes)
Yes, click the gear icon and select print.
-
my computer crashed and I no longer have the itunes library. i get an error msg that my iphone 3g is synced to another library - how can I get the info from the phone to the itunes library without losing everything? How do I delete old audiobooks from my iphone?
You can transfer itunes purchases: File>Devices>Transfer Purchases
The iphone is not a storage/backup device. The sync is one way - computer to iphone. The exception is itunes purchases.
It has always been very basic to always maintain a backup copy of your computer. Use your backup copy to put everything back. -
how do I get the downloaded music on my iphone to my new home pc and itunes, it took the info from the 1st device but not the 2nd
the appletv will not display your movies in folders.
you could change the tags in itunes to include the genre in the "show" field in the "video" tab. this would replicate the view you want, but you will need to tag all your movies to do this. -
I just downloaded an iphoto update and when I tried to share my photos was asked for email and password. I must have typed in the info wrong because I keep getting an error message. I don't see how to change the info to the correct mistake..
I too added 2nd apple ID when I tried to get Free app from apple store just to get to NONE on the credit card needed. It said it sent confirmation email to my new apple ID email that I have to confirm. Problem is I can not get to the new apple ID email account. On my ipad it logs into my original email account and I see no where to log into another email account. If I go to my laptop, the new apple ID I created does not let me log into email where apple said it was sent to. It did not send to back up email account either.
Can I log into 2 email accounts on my ipad where it says mail at bottom?
Can I have 2 apple ids?
If I created a 2nd apple id to get to NONE on credit card needed, can't I log into it also on another laptop in gmail?
(won't let me)
If I used my original apple id I created when I got my new ipad, it will not let me get free app without credit card, there is no where it says NONE needed. I am too new to apple to start with credit cards etc until I get use to it. -
Question
Hi, Over a week now, my Firefox browser has been aligning the info on the page to the right of the page. This makes it difficult to see the rest of the contents on the page. Can you help?
Regards
Femworth65my money is on a hardware issue
-
Hello, I have a charge on my Discover card for $116.86 and I do not know what it is for. Can I get more information on it please. The info in the statement is MHDBQJ1Z3G-0
Please be aware that you are not communicating with Apple when you post in these forums. These are user-to-user support forums, so in almost all cases the only people who will reply to your posts are, like me, your fellow users.
If it's a charge though your iTunes Store account, it should be reflected in your Purchase History:
http://support.apple.com/kb/HT4098
If the charges are not reflected in the Purchase History, then it's most likely a fraudulent charge to your credit card directly or your credit card number has been stolen and used by someone else in another iTunes Store account rather than an unauthorized purchase through your account. In either case it will be up to your bank to handle.
Regards. -
I need to restore my apple ID, but it send the info to the wrong e-mail when that e-mail isn't on my ID information. How do I send it to the correct e-mail?
How can it sent it to the wrong email address? Apple sends it to the email address listed in the information you provided for your account. Thus, I really do not understand your problem.
Maybe this will help.
Frequently Asked Questions About Apple ID -
Where could I find the info where the transport is imported already
Hello
I noticed some transport requests were already imported in PRD system. However the copy eas made to QAS system afterwards. So the requests seems not yet to be approved (althought in log they are already imported to PRD).
Where (in which table etc) could I find the info where the transport is imported alreadyHi,
As Uday said you can see in E070 table and in Tcode> STMS_IMPORT>Goto Import History
Regards,
Kalyan -
for my ipod 3g 8gb in itunes where the info for the memory is half of the memory is taken up by "other" so im wondering what this other is and how to get rid of it?
Have you reset your Ipod resently? Never mind my ohter reply.
-
How can I get the info off the top of screen during slideshow playback on 7d
Subject says it all. I have a 7d and want to play slideshow through the camera up on screens without the info across the top. No the info buttin does not help. My older rebel does this no problem. YES I can shoot on 7d but playback through rebel but thats dumb. Help please.
I have had the same problem. I solved it by disconnecting the the cable and then using the info button to clear the info from the rear screen. When I re-conneccted, the TV screen was clear during slideshow.
There might be an easier way, but I haven't found it.
Mike Sowsun
S110, SL1, 5D Mk III -
How can I sync with a new computer without lost all the info?
See Syncing to a "New" Computer or replacing a "crashed" Hard Drive
Maybe you are looking for
-
Is there any way to prevent the child indexes from merging in the master project?
I have created a master project using Robohelp 8 and currently have 2 child projects, but this is going to expand. I would like the indexes to be assigned to the child projects only, rather than sharing one index across all of them. Is this possible?
-
TS1389 how do i authorize a MS Tablet to play my itunes library?
how do i authorize a MS tablet to play a loaded itunes library?
-
Acrobat X Pro - transfer settings to a new PC.
I am about to switch to a new PC. I customized the one installed in the old PC very much, and would not want to go thorugh the whole process again: is there a way to transfer settings from old to new PC? Either via Windos Easy Transfer, copy files /
-
Battery drains overnight when accounts are set up
We've got 2 Playbooks in our house.. both are on the latest OS version. As soon as I add my Google account, the battery gets drained at approx 5% every 30 min. The back of the tablet is warm around the logo. As soon as I delete the account the power
-
Download for elements 9 with only a serial number
can I download elements 9 with only a serial number? my disk for pc has been "lost"?