Re: [applescript] Slow code
Re: [applescript] Slow code
- Subject: Re: [applescript] Slow code
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 12 Sep 2017 14:34:38 -0400
Brian,
not to compete in time, but if you want to generate random serial “numbers”
then a much simpler approach would be to use
————
set lista to {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "A", "B", 4, "C", "D", "E", "F"}
set codes to {}
repeat 10000 times
set code to ""
repeat with j from 1 to 28
set code to code & some item of lista
if j mod 4 = 0 and j ≠ 28 then set code to code & "-"
end repeat
set end of codes to code
end repeat
————
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden