Replace asterisks with note figures

Hi
I have a book project in which I need to replace all the asterisks in the text with a superscript figure (fisrt asterisk = superscript figure 1, second asterisk = superscript figure 2, etc.).
At the end of the text there is a list of endnotes in which I need to do the same, only all the 'xxx' combinations need to become figures.
Is there a way to do this with a script or a smart find/change?
Thanx
Fons

Here you go:
app.findGrepPreferences = null;
doNumbers ("\\*");
doNumbers ("^xxx");
function doNumbers (f) {
    app.findGrepPreferences.findWhat = f;
    var found = app.documents[0].findGrep();
    for (var i = found.length-1; i >= 0; i--) {
        found[i].contents = String(i+1);
Peter

Similar Messages

  • Replace a 2003 (not R2) File Server with a 2012R2 files server and preferably keep the same machine name and IP when finished

    I am wanting to replace a 2003 (not R2) File Server with a 2012R2 file server and preferably keep the same machine name and IP when finished.  For the moment I just need some "high level" guidance, little details can be worked out once I know
    which direction I will go.  I was considering that DFS might be a way to help get through the process although when finished the 2012R2 Files server will be by itself with no other file server planned at this time.  DFS can stay installed for maybe
    future purposes but clearly I wouldn't need the DFS Replication with only one machine.
    Here's a few details of the environment....
    1.  DC's are 2012R2 but it is still 2003 DFL because the old 2003 DCs are still present.  But likely they will be gone and the DFL elevated before I start on the File Server project
    2. Nearly all machines in the facility have a shortcut on the "All Users" Desktop that points to the existing old File Server.  Editing or replacing that shortcut would be a major pain,...hence why I want to keep the same machine name at least,
    and maybe the same IP if not too much trouble.  This way the existing shortcut would continue to work with the new 2012R2 File Server.  The UNC path represented in that shortcut is also configured into one or more of our major business applications,
    futher emphasizing the need to keep the UNC path the same throughout the process.
    3. The facility runs 24/7/365 but is "light" on weekends.  The political environment is such that there is little to no tolerance for any down time at all.
    4. Would DFS (based from the 2012R2 machine) be a good tool to get where I need to go?
    Thanks for any suggestions.
    Phillip Windell

    Hi Sharon,
    I've done some more reading and have a few new ideas to run past you....
    Yes regular DFS wouldn't help and the Namespace would still be different than how it was with just the old server. However I was thinking DFS Replication could replace the purpose of RoboCopy and it would keep the two locations "in sync" until I was ready
    to flip over to the new server.  DFS Rep can exist independently of a DFS Namespace, so a Namespace is not even needed. It needs a minimum of 2003R2 for the "later & better" DFS Rep but I believe 2003 can do an "in place" upgrade to 2003R2, so I would upgrade
    the old server to 2003R2 first.  As long as the DFS Rep on 2012R2 and 2003R2 will properly interact I think that will work.
    Thanks for the reg info on the Shares.  I'm debating if editing that would reg file would really be much better than manually creating the Shares on the new server while the DFS Replication was doing its job.  I'll probably export that Key as a
    safety move whether I use it or not.
    Once the DFS Rep is fully in sync and the Shares are in place on the new server, I figure I would then:
    1. Remove the DFS Replication Object (optionally remove DFS Services completely)
    2. Rename the old File Server to something else and set it to DHCP
    3. Rename the new File Server to the name I want to use and give it the IP the old server had.
    How does that sound?
    Phillip Windell

  • My 5th gen. ipod died and they replaced it with a new one, but I'm having problems getting the music. An error message says that its not authorized on this computer. The ipod is synced but it wont let me add what music I want.

    My 5th gen ipod died and apple replaced it with a new one. I synced it up to the itunes that I already have on my computer but an error message keeps coming up telling me that its not authorized on this computer. What do I do?

    About iTunes Store authorization and deauthorization
    iPod: Troubleshooting songs and audiobooks that won't play
    iPod does not play content purchased from the iTunes Store

  • I not so recently changed my email adress I associated with my Apple ID and my iCloud ID. My old email still shows up for iCloud, and won't let me change it to my new email. When I try to delete it and replace it with the proper email, it wants my passwor

    I not so recently changed my email adress I associated with my Apple ID and my iCloud ID. My old email still shows up for iCloud, and won't let me change it to my new email. When I try to delete it and replace it with the proper email, it wants my password, which it won't accept because it's an invalid username.

    I had this same issue and got it resolved very simply when I contacted Apple SUpport
    Go to https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/ and sign into your infomation
    > Go to Manage apple id and primary email address
    > Change it to the old apple id that your device is asking for
    > Save changes
    > Go to Settings > iCloud and sign out of the infomation
    > Go back to https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    > Change it back to the correct apple id
    > Go to the email address adn reverify the apple id
    > Sign back into iCloud on your device
    > Smile
    Article to back up my statement http://support.apple.com/kb/TS5223

  • I have changed computers and installed iTunes on my new computer. I want to sync my iphone now but the "sync" program indicates that it will remove all data on my phone and replace it with the newly installed itunes that does not have my information.

    I have a new computer and have installed iTunes on it.
    Now I want to sync my iphone but the new itunes on the new computer wants to remove everything on my niphone and replace it with what's on the newly installed itunes data but it does not have my data.
    How can I sync the new itunes with my iphone and not have my phone data wiped out?
    Thanks,
    hscllc

    hscllc wrote:
     How can I sync the new itunes with my iphone and not have my phone data wiped out?
    There is no way to stop iTunes from doing exactly what it is designed to do.
    The iPhone is designed to sync with one and only one computer.
    If you have moved/copied your iTunes library from your old computer to your new one, then iTunes wiping your device is no problem.  You would simply sync and iTunes will put all the content back.

  • I'm not able to pair my iPad with my Logitech mini-Boombox. I was able to do this on my original iPad. I was having a problem on an unrelated matter, and the Apple store replaced it with a new device. Previously, all Bluetooth devices worked fine;

    I'm not able to pair my iPad via Bluetooth with my Logitech mini-Boombox. I recently brought my iPad to the Apple Store for an unrelated problem, and they replaced it with a new device. The old device had no problem pairing with any of my Bluetooth devices. I'm only haveing the problem with my new device. I was able to pair it with my Apple wireless keyboard, but not the mini-Boombox. I think I've done everything that I've read in other forum posts: I've toggled the Bluetooth setting on and off; I've reset the iPad a couple times; I've turned off and on the mini-Boombox; I've recharged the mini-Boombox. What am I missing here, and how can I fix this?

    Hi ecb1999,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    iOS: How to troubleshoot Bluetooth connections
    http://support.apple.com/kb/TS4562
    Cheers,
    - Judy

  • Replace Null With 0 in Pivot Table in a BI Publisher Report (Not OBIEE Answ

    I have a problem with nulls in a pivot table. I got a measure column in my BI Answers analysis and I made a report with a model based in this analysis. When I add a pivot table to my report the 0 measures don't display.
    In first place I found that there's a bug (13054445). I download and ran the patch, then I tried editing data format in my analysis column and in BI Answers and this worked. The 0 displays correctly, but in the report it's still not displaying.
    I tried editing the formula in the analysis with:
    IFNULL(column,0)
    CASE WHEN column IS NULL THEN 0 ELSE column END
    CASE WHEN column IS NOT NULL THEN column ELSE 0 END
    IFNULL(cast("column"as varchar (10)), '0')
    And nothing works
    When I tried this: CASE WHEN column IS NULL THEN 0 ELSE 656565656 END
    in the report the 6565656565 display correctly but the 0 still doesn't display.
    Does anybody know if that is a bug? Or does another option exist that can I try?

    Hi,
    Following on with this post, I followed the document posted and the formula worked fine. I was able to replace nulls with strikethrough in a pivot table. Since combining the report into a compound layout, the strikethrough has reverted back to nulls. Even when just viewing the pivot table, the same applies.
    I have double checked the column properties and the condition(is null) and formatting(strikethrough) still exists but does not take effect in the pivot table.
    I hav also checked that no data exists in the fact table under the null categories and they are true.
    Can anyone help with this problem, I have also removed the condition and re-applied but still face the same problem.
    Thanks

  • My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    Yes, you have to update the iPod in order to retore from backup. The iOS on the "new" has to be aequal to r greater than on the iPod from which the backup was made.  The iOS downloads are unique to an iDevice and model (the one for a 3G iPod will not work for a 4G iPod).

  • Hi, i have a new number and I'm trying to activate iMessage but i can't.  it is only saying waiting for activation,  i have tried a lot of times with not success.  i'm not sure if i need to replace the old one to this new one, or what do do. can you help

    Hi, i have a new number and I'm trying to activate iMessage but i can't.  it is only saying waiting for activation,  i have tried a lot of times with not success.  i'm not sure if i need to replace the old one to this new one, or what do do. can you help

    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • I just got My iPad 2 for a few days ago but why the charger is not working, how they are going to replaced it with a new one ? ?

    Please be informed me... with my battery or charger problems....
    my iPad 2 charger is not working....
    since I've got it for five days ago, I only use it for three times....
    Are they going to replace it with a new one ?

    Most likely yes. There's a manufacturers warranty against defects for a year. I'd contact your place of purchase and talk to them about it.

  • I purchased the Brookstone DLP projector for the iPhone, and all the reviews state the iPhone 4S can be mirrored with it. However, I can't not figure out how to do so. Is there a setting to change? Can't figure it out! ARGGG!

    I purchased the Brookstone DLP projector for the iPhone, and all the reviews state the iPhone 4S can be mirrored with it. However, I can't not figure out how to do so. Is there a setting to change? Can't figure it out! ARGGG!
    It will show pictures and videos if I choose, Start Slideshow, but it won't show anything else, no apps, etc.
    Here's a few examples of the reviews which state it mirrors:
    http://www.bgr.com/2011/11/07/brookstone-pocket-projector-for-iphone-4-and-4s-re view/
    http://www.gadgetaddict.info/brookstone-pocket-projector-for-iphone-4-and-4s-rev iew/
    I bought this for video analysis presentations with an app on the phone, so this is a key feature for me.
    Any help is appreciated.
    Jim

    I also have not figured out how to mirrow either.  I ask you both, is the sound via the projector louder than the phone itself when projector is tuerned off?  No matter what I do the max vilume through the projector speakers is lower that the phone itself even with phone remaining installed in projector.  I am think of taking it back to try another one.
    Keith

  • How do I figure out if I have usb 3.0?  I am trying to buy compatible external hard drive (western digital my passport for mac) and I can not figure out if it will work with my mac book.

    how do I figure out if I have usb 3.0?  I am trying to buy compatible external hard drive (western digital my passport for mac) and I can not figure out if it will work with my mac book.

    Dont buy a Western Digital, get a Hitachi or Seagate (Toshiba is made by Hitachi). These are the most reliable, and the HD used inside Macs.
    ALL HD can be made compatible with your MAC (including a WD if you already bought same), ......they just need to be formatted for the Mac platform, format them in Disk Utility as Mac OSX extended journaled. 

  • Can I replace CUA with CUP. If not why or what will be the risks

    Hi,
    The client does not want to have two provisioning systems CUP & CUA. The sole purpose they are using CUA is the proper accounting for SAP licenses such that the user ID remains the same across the landscape. No other purpose of using CUA. In this case can I replace CUA with CUP 5.3 SP12.
    Thanks & Regards,
    Sanjeev

    There are limitations to doing that.
    CUA has a technology focus and does not take access risk into consideration at all. The long-term successor of this would be Netweaver Identity Management. If you want to consistently manage user master data and license information, that's probably the solution to look at.
    You can perfectly use CUP on top of that to manage authorizations. You can also force CUP to only allow user IDs from a central system like CUA or ActiveDirectory in order to enforce user ID consistency.
    What CUP will not do is give you an overview of where a user is maintained with which kind of information/license data. That is something that either CUA (for ABAP only) or Netweaver Identity Management will give you.
    Frank.

  • Need to figure out how to remove an unknown admin password on a mac.  used the install disc with not luck. tried some commands in single user mode, no luck.

    need to figure out how to remove an unknown admin password on a mac.
    used the install disc with not luck. tried some commands in single user mode, no luck.

    need to figure out how to remove an unknown admin password on a mac.
    used the install disc with not luck. tried some commands in single user mode, no luck.

  • HT4641 Hello there i am using the latest version of pages but when I imported a word do.ument with some figures ( mainly pictures, X-rays,  CT scans, and ECG ) I could not find them they all vanishes although the text was perfectly displayed . Can anybody

    Hello there i am using the latest version of pages on ipad3 but when I imported a word doument with some figures ( mainly pictures, X-rays,  CT scans, and ECG ) I could not find them they all vanishes although the text was perfectly displayed . Can anyone help.
    Thanks

    Thank you very much!
    I cant believe this little comment has been so helpful!
    But yes it is:
    I explain, despite my efforts to find, googled it, forums, faqs, etc...
    no where it mentionned the manifest.fm file is... INSIDE the .jar!
    Your comment "a zip" made me attempt to open it with winrar, and I found a manifest.fm file inside!
    So far I was editing the one at the "source" of my project and rebuilding it with netbeans.
    I am going to try that now.
    Actually.... :( no its mentionning my main class!
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.0
    Created-By: 10.0-b19 (Sun Microsystems Inc.)
    Main-class: courseworkjava3d.Simple3D
    Class-Path:
    X-COMMENT: Main-Class will be added automatically by buildWell I have no problems uploading you the .jar, it is for a coursework it is not a private project or whatever:
    http://www.uploading.com/files/CM2LKWYU/BetaCourseworkJava3d_Final.jar.html
    Oh and I felt on your comment "dont ask us" as if I was suppose to know... i'm a beginner, I did not know that! And I tried to give you so many infos so you dont lose your time if you want to help, especially as after my own research I found many, many results for this "main class" and I tried a few solutions!
    Edited by: CupofTea on Apr 13, 2008 3:28 AM

Maybe you are looking for