javascript – is there a approach to auto kind an inventory utilizing script writing?

0
11


i would like a code which is able to kind every merchandise one after one other

for eg: myList {“Apple Watch”, “iMac”, “iPhone”, “MacBook Professional”}

i wished consequence typed as:

Apple Watch

iMac

iPhone

MacBook Professional

i’ve tried to make a code however can not do it as a result of lack of my data

my code:

set theList to {"Apple Watch", "iMac", "iPhone", "MacBook Professional"}
size of theList
inform software "System Occasions"
    set situation to 0
    set varName to merchandise 1 of theList
    repeat till situation = size of theList
        keystroke of varName
        keystroke return
        set situation to situation + 1
        set varName to (merchandise 1) + situation
    finish repeat
finish inform

LEAVE A REPLY

Please enter your comment!
Please enter your name here