User interaction

I wants to get 5 data at a time from user, is it possible to get that data from user. The data must be stored in a csv file

Comments

  • SenseTalkDougSenseTalkDoug ForumAdmin admin
    To request data input from a user while a script is running, use the Ask or Answer commands, described in the last chapter of the SenseTalk Reference manual.

    To read data from a comma-separated value (CSV) file, you can do something like this:
    repeat with each line of file "/path/to/myData.csv"
        set data to it split by comma -- divide the line into a list of values
        -- at this point, data is a list of all of the items on the current line
        -- process it in any way you like
        put data
    end  repeat
    

    I hope that helps you.
Sign In or Register to comment.