Re: A question on technique
Re: A question on technique
- Subject: Re: A question on technique
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 16 Mar 2015 15:40:27 +0000
- Thread-topic: A question on technique
Also, one more thing to point out is that the advantage of this version is you can keep the list in a tab delimited file, like a spreadsheet, easy for you or a non-scripted to update, and then just read the file in at runtime.
On Mar 16, 2015, at 7:53am, Stockly, Ed <email@hidden> wrote:
> on MnemonicOfText(aCode, pairText)
> set saveTID to AppleScript's text item delimiters
> set AppleScript's text item delimiters to {return & aCode & tab}
> try
> set thisMnemonic to word 1 of text item 2 of pairText
> on error
> set thisMnemonic to false
> end try
> set AppleScript's text item delimiters to saveTID
> return thisMnemonic
> end MnemonicOfText
_______________________________________________
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