Re: A question on technique
Re: A question on technique
- Subject: Re: A question on technique
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 17 Mar 2015 21:25:07 +0000
- Thread-topic: A question on technique
??? This script doesn't work here, I'm thinking it's a partial edit?.
In order to do a fair test, it should be a handler, that returns the
correct result.
It should take any value from the code list and return the corresponding
value from the mnemonics list.
So here's my version of this method, but it doesn't do so well. Am I
missing something?
--offset method
set AppleScript's text item delimiters to {space}
set codeText to Codes as string
set time1 to (current date)
repeat iterationCount times
set offResult to my MnemonicOffSet(aCode, codeText)
end repeat
set offSetTime to (current date) - time1
on MnemonicOffSet(aCode, codeText)
set k to round (offset of aCode in codeText) / 5 rounding up
return item k of Mnemonics
end MnemonicOffSet
>
><script>
>
>tid(space)
>set TMnemonics to Mnemonics as string
>
>set t to (current date)
>repeat 100000 times
> set k to round (offset of "RfX" in TMnemonics) / 4 rounding up
>end repeat
>return ((current date) - t) / 1000
>
>
>
>on tid(x)
> set AppleScript's text item delimiters to x
>end tid
>
></script>
_______________________________________________
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