Re: [applescript] Slow code
Re: [applescript] Slow code
- Subject: Re: [applescript] Slow code
- From: Brian Christmas <email@hidden>
- Date: Wed, 13 Sep 2017 10:25:30 +1000
Deivy, thank you for your input.
However, I want a reproducable list of codes.
When someone enters a code for my App, I want to check if it’s acceptable code,
but if it’s not in FastSprings list of registered codes, I want to be able to
generate a genuine error message that either their Subscrition has elapsed, ot
theres an error somewhere. Without a list to compare to, I can only tell them
their input is not acceptable for some reason, not that the input is supposedly
correct.
10,000 codes should be heaps. I think my App will have a very, very limited
market.
However, FastSpring have told me my code to access a popup store should still
work, in spite of my site not yet having a security certificate.
Something to look into.
Regards
Santa
> On 13 Sep 2017, at 4:34 am, Deivy Petrescu <email@hidden> wrote:
>
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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