How to set a list in applescript to numbers 1 to 100?

Hey guys,
I want to have a probability function and i am going to use applescript to get a random item of the list i want to make ( 1 to 100) and then get some item of it and then make the result trigger an if statement.
So what i want to know is how do i quickly make a list consisting of numbers 1 to 100, like this?
set list1 to (1...100)

Generally, it's easier to use:
random number from 1 to 100
If you actually want to create a list for some reason:
set A to {}
repeat with B from 1 to 100
set A to A & B
end repeat
(63987)

Similar Messages

  • How to set Dropdown list in tablen whith others Dropdown values in each row

    how to set Dropdown list in tablen whith others Dropdown values in each row of the table

    hi ,
    You have to add the parent element before adding data to the child node ...you follow the below steps it will work
    1) Take ContextStructure as follows ...
    tabledata (valuenode)
        ddownbyindex( value node) --within the tabledata node
             value (attribute)
    2)Binding to your layout
      tabledata (node) ---bind this to the dataSource property of your  table
          ddownbyindex( node)
                Value (attribute)--bind to the texts property of you DDbyIndex
    3)In wdinit() method add the following code
         IPrivate<Your view name>.ITabledataElement tabledataElement =wdContext.createTabledataElement();
        wdContext.nodeTabledata().addElement(tabledataElement);
        for(int i=0;i<5;i++)
         IPrivate<Your viewname>.IDdownbyindexElement ddbyindexElement=wdContext.createDdownbyindexElement();
             ddbyindexElement.setValue("Value"+i);
             wdContext.nodeDdownbyindex().addElement(ddbyindexElement);
    And set the cardinality property of the table node as 0..n
    and dropdownbyinex node to 1..n
    You try it ...
    Regards
    Madhavi
    Edited by: madhavi kotra on Sep 2, 2008 6:00 PM

  • How to set price list to use in a Document

    Hi all,
    I have a simple question. I'm trying to insert a draft document into SAP B1 via DI API. I can't seem to find the correct property to set in order to change the price list to use for that draft.
    Example: The price list in the Supplier BP is 'Price List 01' and I want to change it only for the current document to 'Price List 02'.
    Can you guys help me?
    Thanks.
    Edited by: Pedro Magueija on Aug 28, 2009 6:11 PM
    Edited by: Pedro Magueija on Aug 28, 2009 6:41 PM

    That's too bad, since it is possible to do it in SAP B1.
    OK, but since I can only change the price for the item, line by line is it possible to force a .UnitPrice = 0 and .PriceAfterVAT = 100.00?
    The reason I ask is, the document I'm trying to insert get's it's prices from a source where only VAT included prices are present. So instead of the unit price, I want to set the price after VAT and have SAP B1 calculate the unit price.
    I set the BP default price list to a list where no prices are defined, and it works. But has you can imagine, when doing a document in SAP B1 this will cause it to set the prices to 0 on the lines, and the users might get angry at it.
    So if you guys have any ideas on how to go around this some other way, please do tell.
    Thanks in advance.

  • How to set a list form field data value that is linked to another document library's data when the link gets broken!!??

    In summary, I have created 3 document libraries and one issues list in a site collection.
    The issues list has a form that has mainly been created in SharePoint 2010 but tweaked in InfoPath 2007 and one of the fields links to the title of a document in the first document library (so an issue can be linked/referenced to a particular document).
    This all works great until I want to move a document (using the workflow that I built) from document library 1, to document library 2 or 3 as this is what I've set up to move documents through the business process we are taking it through.
    When this happens, the link between the issue that was raised originally against the document is broken and therefore you can no longer tell which document the issue is linked with.
    Does anyone know a way of 'setting' the field that is linked to data in another document library on original selection/creation of the issue, so that when the link is broken the original data remains.
    Any ideas welcome as I am stomped!!! 
    Cheers!!
    Louis Maxwell

    
    Hi  Louis,
    According to your description, my understanding is that you want to keep the link field of the issue list working after moving the linked document.
    Whether the link field  is a lookup column or not ?
    If so, due to the information source of  lookup column cannot be changed, you need to add other lookup fields for document library 2 and document library 3. Just one lookup column corresponds one document
    library. Then you can update the lookup column in the workflow when move the linked document. Such as when a document is moved to document library 2, you need to clear the lookup1 field (corresponding document library 1) and update the lookup2 field (corresponding
    document library 2).
    For updating the lookup column, you can refer to the following actions:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to Set Album list view as default

    MacBook Pro 3,1
    SL 10.6.7
    iTunes 10.3.1
    inverted-store-links
    if i use the »inverted-store-links« i always get the list-view instead the before used album-list.
    i think the same problem with playlists always shown in list-view by default.
    maybe there is a function at com.apple.itunes.plsit to set the default view.
    any other ideas are welcome.
    thanks
    chris

    you could use this script:
    Change Hidden iTunes Preferences v2.4 
    This application will allow you to invoke hidden iTunes preferences:
    Show "Library" playlist
    Changing view setting is global
    Allow half-stars in ratings
    Hide "Ping" buttons
    Show/hide arrow links -- to either search the iTunes Store or search your library
    Load complete iTunes Store preview before playing
    Create playlists for purchased song collections
    Play songs while importing or converting
    Create file names with track number
    Maintain grid view for Search results
    Option-click zoom button for Mini Player&
    Show buttons horizontally

  • How To set memory parameters /calculate size of data files for 100 gb db

    Dear all,
    I am new in Oracle db admin. I request to all of you buddies to please help in the following query.
    For a production database of about 100 GB in archivelog mode and 50 users simultaneously connecting to it. How
    to calculate the memory parameters (SGA PARAMETERS ) and size of all users/rbs/temp tablespaces ? I mean to
    say how to reverse enginner the sizes.
    like - how set settings of following
    SGA_max_size=
    Shared_pool_size=
    db_cache size,=
    buffer_pool_size=
    db_cache_size=
    db_block_size=
    log_buffer=
    large_pool_size=
    Thanks in advance. Please help me in this case
    Regards
    vs

    Friend 191264
    To tune the SGA parameters is something equivalent to knowledges for a complete course. Really the question is so wide to answer and overall for you that you are new to Oracle. Some people does not like to read documents but in this case you will have to do it.
    Performance Planning Contents / Search / Index / PDF
    Performance Tuning Guide and Reference Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Oracle9i Database Online Documentation
    (Release 2 (9.2))
    http://otn.oracle.com/pls/db92/db92.homepage
    Good Luck!
    Joel P�rez

  • How to create a list from checkboxes using Numbers on iPad?

    I am creating a guest list using Numbers foriPad. First sheet is a list of invited people with checkboxes (Yes/No/still to reply) in next column. In the next sheet i want create a list of everyone that has replied yes.
    I have tried using the if statement, but I dont want any blank cells.
    -IF(A2;TRUE;A1) gives name in A1 if box is checked, but gives 0 or something else if i specify. But i want to automatically start on next row to avoid blank or 0-
    Example:
    David   V
    Lisa.     V
    Derek 
    Brad.   V
    Paul.
    John
    The separate list in another sheet should then be:
    David
    Lisa
    Brad
    Any help will be appreciated.

    Can you use the the reorganize panel to sort the list?
    Idon't have Numbers on the iOS so I am not sure.  You are posting in the forum for Numbers on Mac OS X.
    you can also add a new column (let's say C)
    where
    C1=if(A1, A1, "")
    this will include the name from column A  when the checkbox in B is checked.  You can then copy column C and paste values using the menu item (Edit > Paste Values, or equivalent in iOS... not sure what it is)

  • How to set the view format of the numbers in the tooltip.

    By default a graph will automatically format the axis view to be a scaled value.
    Example: 180321005 will show as 180 M on the axis label for the graph
    There is a way to set the scaling on the y-axis of a graph so that it will not be displayed as a scaled number.
    m_graph.getY1Axis().getViewFormat().setScaleFactor(BaseViewFormat.SCALEFACTOR_NONE);
    Now: Example: 180321005 will show as 180321005 on the axis label for the graph
    But is there a way to set the scaling factor for the pop up tooltip that appears when the user mouses over a point on the graph?
    Right now the tooltip view shows the y value as a scaled value; therefore, much of the number's percision is lost.
    Thanks,
    michelle

    Hello
    Did you find any soloution?

  • How to set the default number of songs in Genius to 100?

    I like the Genius option but have a lot of songs and I'd like to defualt the number of songs to 100, or more?!?!? Any idea how to accomplish this?
    Thanks,
    Darren    

    Pernille,
    Work number in Lync is populated from Active Directory “Telephone Number” field. Lync builds the Address Book by reading the number and normalizing it
    to E.164 format if necessary.
     “Telephony Number” field is information attribute; while msRTCSIP attribute (typically) is provisioned with a Public routable
    DID, when the user is EV enabled.
    Let’s look this example:
    User1 is enabled for Lync, but not for EV. Telephony Number is populated with the user’s PSTN number 1 (425) 555 0001
    User2 is enabled for Lync, but not for EV. Telephony Number is populated with the user’s PSTN number 1 (425) 555 0002
    User1 is enabled for Lync, AND for EV. Telephony Number is populated with the user’s Lync DID number 1 (425) 555 0003 and msRTCSIP attribute with the same number
    in E.164 format i.e. +14255550003
    User3 (EV enabled) wants to call User1 (Lync enabled, but not EV). User3 expands “Call” drop down menu on Lync client. Two options will be revealed –
    Work (1 (425) 555 0001) and “Lync call”. If User3 select “Lync Call”, the call will be placed to the SIP URI of User1 and will be always “internal”. Here gets interesting – if User3 selects “Work Call”,
    because User1 does not have number in msRTCSIP attribute, a match (user/number association) will not be found, the call will be sent via the mediation server , trough the PSTN network and back to the company and User1 desk (even if they are in the same room).
    In both cases, the call will succeed.
    In reverse scenario – User1 wants to call User3. Again, the options will be Work (1 (425) 555 0003) and “Lync call”. For “Lync call”,
    as above, Lync call will route to SIP URI of User3 (internal call). If “Work” is selected, Lync will find association of +14255550003/User3 and place the call to the SIP URI of User3 (again INTERNAL call).
    I hope this make sense.
    Drago
    http://ocsdude.blogspot.com | MVP Snom OCS Edition

  • List view - how to set spacing

    I am running Mavericks on a MBP and want to set List view so the Name column doesn't stretch out all the way across the window - I want it to default to something only 1.5-2 inches on screen, so I can easily see and order things by the other columns [such as size, date etc.] - I can't figure out how to set up List View to have a default spacing setting = if I add Comments column [which generally is blank anyway] that'll do it but I don't want that, I just want to set up the Name column in list view to be more limited and not stretch all the way across on first opening.

    It's dynamic and requires showing more than just the name column. That's Apple's new paradigm.

  • How to set page margins in Numbers 3

    I just migrated from MS Excel after decades of use. I can't find out how to set page margins using the new Numbers 3 version. I believe I've exhausted all reference materials and the most relevant was an method in Numbers 8 & 9... both of which have a different top menu selection.  The answer is probably right in front of me and simple as it sometimes happens when learning new software...

    Hi caforestfire,
    There is no direct equivalent to page margins in Numbers 3.0. It's more oriented toward sharing on the web and on iPad screens than toward traditional printing.
    However, there are ways to achieve the effect of margins.  The idea is to first position your content (tables, charts, etc) on the canvas of a sheet, using rulers and guides if you want (you can drag the rulers onto the canvas to help in placement):
    Then you File>Print and in Print Preview fiddle with the slider until you get the white space you want around your content:
    Then click Print.
    For many purposes it works quite well. It's just a different approach from what we're used to in Excel, and the old Numbers 2.3.
    SG

  • How to set up the client-specific consolidation routes

    Hi!
    I am setting up TMS-functionality in my 2-system landscape (DEV, PRD) and would like to use 2 Clients in the DEV-system (100> Cust and 200> Test).
    <b>How can I set up the tranport routes between the Clients 100 and 200 in the same system DEV?</b>
    I read, the client-specific consolidation route should be applied in this case?!
    (also some parameter settings should be edited, e.g. CTC)
    <b>Can some one give me a detail technical description how to set up the client-specific consolidation routes between Client 100 and 200 in DEV-system?</b>
    Thank you!
    regards

    Hi Axel,
    You have activate Extended transport route.
    refer this link to helpout for the same
    http://help.sap.com/saphelp_47x200/helpdata/en/2e/709533ef9b11d184850000e8a57770/frameset.htm
    Reward points if helpful.
    Regards
    Ganesh

  • How to set up text distribution list

    I found out how to set up an email distribution list without buying an app but now I need to know how to do the same with sending texts, without buying an app and by associating a contact to it. I don't want to send a group text and only access that group by pulling up the text screen. All I want to do is assign a few numbers to a group name and use that group name to send a next message to the recipients. Any ideas?

    Since a phone number field in Contacts does not have the ability to delineate between numbers, probably not. Theoretically, I suppose it could work if applied for recipients getting iMessages AND using email as the receive address, but hard to say. But for SMS texting, no.

  • How to set up sms sending on yosemite if my country (Kyrgyzstan) is not in the list of supported countries? thanks

    how to set up sms sending on yosemite if my country (Kyrgyzstan) is not in the list of supported countries? thanks

    hello guys, i live in lebanon too and i was so frustrated by this. however i found the solution. when setting up icloud keychain, before creating a password for the keychain press on advanced options and choose not to create a password. you will ahve to use your account password to activate keychain on other device. this will bypass the sms confirmation

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

Maybe you are looking for

  • Memory Error Neo2 Pt 4*512 DDR 400 or even 333

    Ok, this board has started giving me a lot of problems. 1 week ago all was fine, and suddenly I started getting BSODs. Last friday the computer shut off after a BSOD, while I was just browsing the internet. Affter that it failed to start and gave a B

  • And on the 15th day.....

    Maybe someone here can help, or by luck someone from VZ will see it and actually  be able to help me. Although I don't have my hopes high.  15 days ago I got my TB, 16 today, but I was too mad to seek help on here yesterday. I'm coming from a Droid P

  • How can I change where an iTunes download is saving?

    My iPod has a larger capacity than my computer's hard disk, so I bought an external drive to store my music on. I moved my iTunes library folder to this G: drive and instructed future downloads to be sent there as well. This has worked well. Problem-

  • Adobe Flash Player 11 incompatibility with UC320W pre-2.1.2 firmware

    WHAT? There is a known incompatiblity with Adobe Flash Player 11 and UC320W Configuration Utility running on firmware earlier than 2.1.2.  This incompatibility prevents the UC320W Configuration Utility from loading.  If a user tries to launch a brows

  • Can't run very simple DOM parsing source on my machine - please help :(

    Hi Guys, I am trying to run the following very simple program on my machine to parse a very simple XML file. It just returns Document object NULL. Same code is working fine on another machine. Note: there is no silly mistake. i have valid xml file at