Insert numbers in order by script

Hi,
My indesign file has 'AQ' character style, now I want to add the numbers in order 1, 2,3,... instead of 'AQ' character style. Is this possible by script?
Before process:
After process:
by hasvi

Hi,
I am going to fix the 'Author Query Number' instead of 'Author Query Text'. Here I used AQ-character style for 'Author Query Text', after insert 'Author Query Number' I am going to change my character style from 'AQ' to 'Superscript'. Is this possible by script?
Author Query Text:
Author Query Number:
by
hasvi

Similar Messages

  • When priniting jewel case inserts, my song order is reversed. The numbering is correct, but the song titles are incorrect. This only happens on jewel case inserts. Any insight would be greatly appreciated.

    When priniting jewel case inserts, my song order is reversed. The numbering is correct, but the song titles are incorrect. This only happens on jewel case inserts. Any insight would be greatly appreciated.

    Hi,
    I have exactly, exactly!! thesame annoying problem you have or had. I don't know what to do and i am reallyfrustrated with the dumb limited inside the box solutions offered to me. It'slike if you have a problem with your ipod or iphone you can either restore it,uninstall/reinstall itunes and thats pretty much it. I am sorry but that isjust f***** up.
    anyway, regardless to all that,i was wondering if you had any success in solving this problem (something otherthan using a different computer which oddly enough seemed to work for somereason..?? why???, weird) since April.
    I am on the edge of givingup.
    thank you in advance.

  • How to insert the style in sap-script? and in smart form?

    how to insert the style in sap-script? and in smart form?

    Hi..,
    For SAP scripts u need to create them in SE72 ...
    and u can include them in the script editor as..
    /: STYLE <STYLE-NAME>
    P1 text...............  (*** P1 is the Paragraph format created in SE72 )
    /: STYLE *
    For smartforms u need to go for the transaction (tcode) SMARTSTYLES... here u can create paragraph and character formats globally...
    <b>Sunil, plz do remember to close all your threads, when ur problem is solved !!</b>
    reward all helpful answers,
    sai ramesh

  • How to insert a logo in sap script?

    How to insert a logo in sap script?

    Steps to insert a logo,
    I
    1. First save the file as BMP
    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
    make it Zoom as 100% and save as *.TIFF
    3. Open SE38 and execute program RSTXLDMC
    4. Give your TIFF file path name
    5. Select Bcol (for Color)
    6. TEXT ID will be ZHEX-MACRO-*.
    7. Inplace of * write your own logo name (ZCOMPANYLOGO)
    8. Execute the program
    9. Now Goto SE71 create your ZFORM
    10. Create logo window
    11. Goto text element of logo window
    II
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    III
    1 ) create a bmp file in local system
    2 )RSTXLDMC FM to upload image in tiff format.
    Also check these links...
    Logo in SAP SCRIPT
    Re: Uploading a (Image) Logo in your Sap Script
    Need Urgent Help for Logo Uploading the Sap Script
    sap script  logo
    http://www.sap-img.com/ts001.htm
    Regards,
    Sakthi Sri.

  • When I insert numbers in master it has a "1." next to to A

    When I insert numbers in master it has a "1." next to "A" and it shows in all my pages, how can I hide it?

    Sounds like the paragraph contianing the marker may be styled as a numbered list...

  • Numbers to CSV export script: how to specify the encoding?

    Hi,
    I'm using the following script to export a Numbers document to CSV:
    # Command-line tool to convert an iWork '09 Numbers
    # document to CSV.
    # Parameters:
    # - input: Numbers input file
    # - output: CSV output file
    # Attik System, Philippe Lang
    # Creation date: 31 mai 2012
    # Modification date:
    on run argv
      # We retreive the path of the script
              set myPath to (path to me)
              tell application "Finder" to set myFolder to folder of myPath
      # We get the command line parameters
              set input_file to item 1 of argv
              set output_file to item 2 of argv
      # We retreive the extension of the file
              set theInfo to (info for (input_file))
              set extname to name extension of (theInfo)
      # Paths
              set input_file_path to (myFolder as text) & input_file
              set output_file_path to (myFolder as text) & output_file
              if extname is equal to "numbers" then
        tell application "Numbers"
          open input_file_path
          save document 1 as "LSDocumentTypeCSV" in output_file_path
          close every window saving no
        end tell
              end if
    end run
    It works fine, except that I don't know how to specify the encoding of the text in the CSV file (Latin1, MacRoman, Unicode). This option is available in the export dialog of Numbers. Any hint on how to do that is welcome. (GUI Scripting?)
    Where can I find documentation on the iWork "vocabulary" available? Is there a definitive documentation somewhere? I tried to record an manual export in the script editor, without success. Script is more or less empty.
    Thanks!
    Philippe Lang

    A further note from Yvan. He's made some revisions to the script sent earlier.
    --{code}
    --[SCRIPT export to CSV with selected encoding]
    I added some features.
    (1) Defining the encoding thru the preferences file apply only if
    the application is not in use because the file is read only once in a session.
    A test urge you to quit Numbers if it is running.
    (2) info for is deprecated so it may be removed by Apple tomorrow.
    I no longer use it.
    (3) just for the fun, I added a piece of code allowing you to select the encoding on the fly.
    Thanks to the property chooseEncodingInScript, at this time the script use Unicode (UTF-8)
    (4) I'm wondering which tool is used to launch this script,
    I don't know the way to pass arguments when I run one.
    Yvan KOENIG (VALLAURIS, France)
    2012/06/13
    property chooseEncodingInScript : false
    true = the script will ask you to select the encoding
    false = the script use the embedded encoding
    on run argv
      set input_file to (item 1 of argv) as text
      set output_file to (item 2 of argv) as text
      set myPath to (path to me) as text
              tell application "System Events"
      set theProcesses to name of every application process
      set myFolder to path of container of (disk item myPath)
      set input_file_path to myFolder & input_file
      set output_file_path to myFolder & output_file
      set extname to name extension of (disk item input_file)
      end tell
              if extname is "numbers" then
                        if "Numbers" is in theProcesses then error "Please, quit “Numbers” before running this script !"
      if chooseEncodingInScript then
                                  set theList to {"Mac OS Roman", "Unicode (UTF-8)", "Windows Latin 1"}
                                  set maybe to choose from list theList with prompt "Choose the default encoding applying to export as CSV"
      if maybe is false then
      error number -128
      else if item 1 of maybe is item 1 of theList then
                                            30 -- Mac OS Roman
      else if item 1 of maybe is item 2 of theList then
                                            4 -- Unicode (UTF-8)
      else
                                            12 -- Windows Latin 1
      end if
      else
                                  4 -- Unicode (UTF-8)
      end if
                        do shell script "defaults write com.apple.iWork.Numbers CSVExportEncoding  -int " & result
      tell application "Numbers"
      open input_file_path
                                  save document 1 as "LSDocumentTypeCSV" in output_file_path
      close every window saving no
      end tell
      end if
    end run
    --{code}
    Regards,
    Barry

  • I downloaded the latest operating system for my iPhone 5.  It worked fine for about two minutes then the phone requested a password number to continue. Each time I inserted numbers, the phone would lock up for a period of time.  Now, it says "iPhone

    I downloaded the latest operating system for my iPhone 5.  It worked fine for about two minutes then the phone requested a password number to continue. Each time I inserted numbers, which were incorrect, the phone would lock up for a certain period of time.  Now, it says “iPhone is Disabled”.  It said to “Connect to iTunes” which I did, but iTunes does not recognize my phone.  If I scroll the face to the right, it goes to the phone number face and says, "No Service". Can I do something to make the phone work?

    Forgot passcode for your iPhone, iPad, or iPod touch, or ...

  • Retrieving row numbers in order

    how are rows retrieved in jdbc?
    i want my query to retrieve the row numbers and not the record number.
    if i do this
         ResultSet rs = stmt.executeQuery("SELECT LMNAME FROM T_LINKMANAGER where rownum >= 1 and rownum <=18 and LMFLAG='false' order by lmid asc");it selects 18 rows but the record numbers are 1,2,3,4,36,37,38,58.etc
    i want it to select rows 1-18 and the record numbers should be 1-18 or 1-19, if 18 gets deleted.

    well, i did say that in my post, dint i ? here's it again - Please note:: a condition of rownum >= (any number other than 1) will never work
    here's the reason - rownums are dynamically constructed data - they arent stored anywhere. So lets say you have a query, it selects say 10 rows. now when you add the clause rownum > 1, it picks up the first row. The first row's rownum is 1 and since you have mentioned >1, it discards it. Next it picks up the second row which's rownum is 1 again (since the first one has been discarded). And now the second row gets discarded for the same reason. It would return zero rows which's exactly how it behaved for you. You have to either write it in a sql script or do it via java.
    cheers,
    ram.

  • Outline Order, Calc Script Performance, Substitution Variables

    Hi All,
    I am currently looking in to the performance side.
    This is mainly about the calculation script performance.
    There are lot of questions in my mind and as it is said you can get the results only by testing.
    1. Outline order should be from least sparse to most sparse
    (other reason : to accomodate as many sparse members in to calculator cache) correct me if I am wrong
    2. Is Index entry created based on the outline order. For example I have outline order as Scenarios, Products, Markets then does my index entry be like scenario -> Products -> Markets ?
    3. Does this order has to match with the order of members in FIX Statement of calculation script?
    4. I have 3 sparse dimensions. P (150 members), M (8 members), V (20 members).
    I use substitution variables for these three in the calculation script. And these three are the mandotary things in my calculation script. Now when I see the fix statement, these three are the first 3 parameters of the fix statemtn and since I am fixing on a specific member, placing these three members as the first 3 sparse dimensions in the outline, ill it improve performance?
    In one way, I can say that a member from P, M,V becomes my key for the data.
    Theoritically if I think, may be it will...but in practical terms I don't see any of such thing.. Correct me If my thinking is wrong.
    One more thing, I have a calc script with say around 10 FIX statements and this P,M,V is being used in every FIX statemnts. Since my entire calculation will be only on one P, one M, one V. Can I put everything in one FIX at the beginning and exclude it from remaining FIX statememts?
    5. I have a lot of cross dimensional operations in my calc scripts for accounts dimension (500 + ) members.
    Is there a way to reduce these?
    6. My cube statistics..
    Cube size : 80 GB +
    Block Size : 18 KB (Approx)
    Block density : 0.03 . This is what I am more worried about. This really hurts me.
    This is one of the reason why my calculation time is > 7 hours and some times it is horrible when there is huge amount of data (it takes aound 20 + hours) for calculation.
    I would be looking forward for your suggestions.
    It would be really apprecialble if It is Ok to share your contact number so that I can get in touch with you. That could be of great help from your side.

    I have provided some answers below:
    There are lot of questions in my mind and as it is said you can get the results only by testing.
    ----------------------------You are absolutely right here but it helps to understand the underlying principles and best practices as you seem to understand.
    1. Outline order should be from least sparse to most sparse
    (other reason : to accomodate as many sparse members in to calculator cache) correct me if I am wrong
    ----------------------------This is one reason but another is to manage disk I/O during calculations. Especially when performing the intial calculation of a cube, the order of sparse dimensions from smallest to largest will measurably affect your calc times. There is another consideration here though. The smallest to largest (or least to most) sparse dimension argument assumes single threading of the calculations. You can gain improvements in calc time by multi-threading. Essbase will be able to make more effective use of multi-threading if the non-aggregating sparse dimensions are at the end of the outline.
    2. Is Index entry created based on the outline order. For example I have outline order as Scenarios, Products, Markets then does my index entry be like scenario -> Products -> Markets ?
    ----------------------------Index entry or block numbering is indeed based on outline order. However, you do not have to put the members in a cross-dimensional expression in the same order.
    3. Does this order has to match with the order of members in FIX Statement of calculation script?
    ----------------------------No it does not.
    4. I have 3 sparse dimensions. P (150 members), M (8 members), V (20 members).
    I use substitution variables for these three in the calculation script. And these three are the mandotary things in my calculation script. Now when I see the fix statement, these three are the first 3 parameters of the fix statemtn and since I am fixing on a specific member, placing these three members as the first 3 sparse dimensions in the outline, ill it improve performance?
    --------------------------This will not necessarily improve performance in and of itself.
    In one way, I can say that a member from P, M,V becomes my key for the data.
    Theoritically if I think, may be it will...but in practical terms I don't see any of such thing.. Correct me If my thinking is wrong.
    One more thing, I have a calc script with say around 10 FIX statements and this P,M,V is being used in every FIX statemnts. Since my entire calculation will be only on one P, one M, one V. Can I put everything in one FIX at the beginning and exclude it from remaining FIX statememts?
    --------------------------You would be well advised to do this and it would almost certainly improve performance. WARNING: There may be a reason for the multiple fix statements. Each fix statement is one pass on all of the blocks of the cube. If the calculation requires certain operations to happen before others, you may have to live with the multiple fix statements. A common example of this would be calculating totals in one pass and then allocating those totals in another pass. The allocation often cannot properly happen in one pass.
    5. I have a lot of cross dimensional operations in my calc scripts for accounts dimension (500 + ) members.
    Is there a way to reduce these?
    -------------------------Without knowing more about the application, there is no way of knowing. Knowledge is power. You may want to look into taking the Calculate Databases class. It is a two day class that could help you gain a better understanding of the underlying calculation principles of Essbase.
    6. My cube statistics..
    Cube size : 80 GB +
    Block Size : 18 KB (Approx)
    Block density : 0.03 . This is what I am more worried about. This really hurts me.
    This is one of the reason why my calculation time is > 7 hours and some times it is horrible when there is huge amount of data (it takes aound 20 + hours) for calculation.
    ------------------------Your cube size is large and block density is quite low but there are too many other factors to consider to simply say that you should make changes based solely on these parameters. Too often we get focused on block density and ignore other factors. (To use an analogy from current events, this would be like making a decision on which car to buy solely based on gas mileage. You could do that but then how do you fit all four kids into the sub-compact you just bought?)
    Hope this helps.
    Brian

  • Insert PDFs In Order Selected

    Fellow Forum Members,
    I'm using Acrobat 8 Standard. I need to insert external PDF in the order I select them. Currently, Acrobat is inserting all of the Files I select in an order that requires I move pages around. Is it possible to insert PDFs in the order I select them? Any help will be greatly appreciated. Thanks.

    Hi,
    I am going to fix the 'Author Query Number' instead of 'Author Query Text'. Here I used AQ-character style for 'Author Query Text', after insert 'Author Query Number' I am going to change my character style from 'AQ' to 'Superscript'. Is this possible by script?
    Author Query Text:
    Author Query Number:
    by
    hasvi

  • R12 - API to Create Serial Numbers for Ordered Item in Receipt

    Hello All,
    I got a requirement to create PO Receipt using PL/SQL code. For that i have created PL/SQL code to insert data in following Interface tables,
    a) rcv_headers_interface
    b) rcv_transactions_interface
    After inserting data in Interface table executed Concurrent Program "Receiving Transaction Processor" to process data from Interface table to Base Table. This process is working perfectly fine for "Non-Catalog" requests. But if i try to process any PO having Inventory Item whose Serial Control is set to "At Receipt" then i got following error at Interface table,
    "Fail to validate serials".
    To resolve this issue i need to create and process serial number for Ordered Item selected to Receive. Can anyone guide me regarding how can I generate Serial Numbers using API for PO Receipts.
    Regards,
    Priyanka

    Hi,
    Just populate mtl_serial_numbers_temp table correctly (by specifying transaction_temp_id = RTI.interface_transaction_id)
    and serial number range in fm_serial_number - to_serial_number respectively.
    You may entermultiple MSNT records with same transaction_temp_id.
    You may need to populate PRODUCT_TRANSACTION_ID = RTI.interface_transaction_id and PRODUCT_CODE = 'RCV'.
    Oracle will create all the serial numbers for you when the records get processed.
    Thanks,
    Hrishi

  • Find & replace part of a string in Numbers using do shell script in AppleScript

    Hello,
    I would like to set a search-pattern with a wildcard in Applescript to find - for example - the pattern 'Table 1::$*$4' for use in a 'Search & Replace script'
    The dollar signs '$' seem to be a bit of problem (refers to fixed values in Numbers & to variables in Shell ...)
    Could anyone hand me a solution to this problem?
    The end-goal - for now - would be to change the reference to a row-number in a lot of cells (number '4' in the pattern above should finally be replaced by 5, 6, 7, ...)
    Thx.

    Hi,
    Here's how to do that:
    try
        tell application "Numbers" to tell front document to tell active sheet
            tell (first table whose selection range's class is range)
                set sr to selection range
                set f to text returned of (display dialog "Find this in selected cells in Numbers " default answer "" with title "Find-Replace Step 1" buttons {"Cancel", "Next"})
                if f = "" then return
                set r to text returned of (display dialog "Replace '" & f & "' with " default answer f with title "Find-Replace Step 2")
                set {f, r} to my escapeForSED(f, r) -- escape some chars, create back reference for sed
                set tc to count cells of sr
                tell sr to repeat with i from 1 to tc
                    tell (cell i) to try
                        set oVal to formula
                        if oVal is not missing value then set value to (my find_replace(oVal, f, r))
                    end try
                end repeat
            end tell
        end tell
    on error number n
        if n = -128 then return
        display dialog "Did you select cells?" buttons {"cancel"} with title "Oops!"
    end try
    on find_replace(t, f, r)
        do shell script "/usr/bin/sed 's~" & f & "~" & r & "~g' <<< " & (quoted form of t)
    end find_replace
    on escapeForSED(f, r)
        set tid to text item delimiters
        set text item delimiters to "*" -- the wildcard 
        set tc1 to count (text items of f)
        set tc2 to count (text items of r)
        set text item delimiters to tid
        if (tc1 - tc2) < 0 then
            display alert "The number of wildcard in the replacement string must be equal or less than the number of wildcard in the search string."
            error -128
        end if
        -- escape search string, and create back reference for each wildcard (the wildcard is a dot in sed) --> \\(.\\)
        set f to do shell script "/usr/bin/sed -e 's/[]~$.^|[]/\\\\&/g;s/\\*/\\\\(.\\\\)/g' <<<" & quoted form of f
        -- escape the replacement string, Perl replace wildcard by two backslash and an incremented integer, to get  the back reference --> \\1 \\2
        return {f, (do shell script "/usr/bin/sed -e 's/[]~$.^|[]/\\\\&/g' | /usr/bin/perl -pe '$n=1;s/\\*/\"\\\\\" . $n++/ge'<<<" & (quoted form of r))}
    end escapeForSED
    For what you want to do, you must have the wildcard in the same position in both string. --> find "Table 1::$*$3", replace "Table 1::$*$4"
    Important, you can use no wildcard in both (the search string and the replacement string) or you can use any wildcard in the search string with no wildcard in the replacement string).
    But, the number of wildcard in the replacement string must be equal or less than the number of wildcard in the search string.

  • Open Purchase Order Conversion Script (Data Loader)

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

  • I have a MacBook pro 10.6.8, 2.66 Ghz 8GB 1067MHz. Please does anybody know of software that can auto send emails to a word/pages doc. and insert in date order into a book file, so that you can open like a book

    I have a MacBook Pro 10.6.8, 2.66 Ghz,  8GB memory 1067Mhz running Snow Lepard. I am going mad with trying to organise emails and cross reference to file documents, also the first model iPad.
    Does anybod know if there is any softeware - pages or otherwise that can copy emails automatically to document files and insert them in dated order and also that the file can be reviewed like a book by flicking from bottom right hand corner iPad book style.
    Please help me run my contracts easily, it shouldn't be difficult in this day and age.
    I currently use Apple 'Mail' and microsoft word but am considering any new software that can organise and integrate mail better. I use photo inserts and scanned documents and excel spreadsheets.

    No, I don't know about that kind of software. It isn't Pages anyway. You need somekind of database.

  • Alpha numeric numbering production orders

    Hi,
        Do we need to have external numbering turned on to have alpha numeric numbers for production orders and planned orders ? By the way is external numbering allowed for planned orders ? If yes then how would MRP create planned orders if only external numbering is allowed ?
    Thanks

    Hi,
    As per my thinking , you can try with following enhancement for getting alphanumeric numbering of production orders :
    PPCO0001  Application development: PP orders
    You need to concetanate the fix part ( alphabetical) alongwith number range maintained for production orders.
    Pls. take help of your abaper for the same.
    You can implement above as Enhancement Project in Tcode : CMOD.
    Hope this helps.
    Regards,
    Tejas

Maybe you are looking for

  • How do I share files between two Macs on my wireless network?

    I have an iMac G4 and an ibook G3 on a wireless network. I have "file sharing" activated on both computers. (Also Appletalk, which may or may not be a misguided move, but I got the idea from OSX "Help.") When I try to get from either computer onto th

  • Pricing for VM running WS 2012 E R2 primarily as domain controller for ~5 clients

    Hi I am starting a small medical clinic, with only about 6 client PCs.  However, I  would like a domain network structure for security purposes moving forward rather than a workgroup. I'm looking at either purchasing a modest server (ie HP Proliant m

  • Re: Parental Control not Working

    FROM A VERY ANNOYED NEW CUSTOMER.  THIS IS MY LAST RESORT BEFORE I CANCEL WHAT APPEARS TO BE A RUBBISH 'PARENTAL CONTROL' SERVICE... Brand new BT Infinity 2 Service installed on Wed 28th Jan.  On Fri 30th Jan set router up... logged into bt.com/mybt.

  • Multiple Hierarchies on single characteristic in BEx

    In BEx 3.5 Is there a way to display multiple hierarchies/groups on one characteristic? For example, reporting by a Cost Element with several child hierarchy subgroups from differnt parents. An orphanage if you will. I try that and the fisrt group di

  • Weblogic portal document management

    Hi, Please advice me how to go about implementing/using weblogic portal's content management feature. regards