• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A question on technique
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: A question on technique
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: A question on technique (From: Olof Hellman <email@hidden>)
 >Re: A question on technique (From: Shane Stanley <email@hidden>)
 >Re: A question on technique (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Avoiding arbitrary delay functions
  • Next by Date: Re: A question on technique
  • Previous by thread: Re: A question on technique
  • Next by thread: Re: A question on technique
  • Index(es):
    • Date
    • Thread