Re: Can I map custom characters to normal uppercase equivalents?
Re: Can I map custom characters to normal uppercase equivalents?
- Subject: Re: Can I map custom characters to normal uppercase equivalents?
- From: has <email@hidden>
- Date: Mon, 14 Jun 2010 23:14:15 +0100
Tommy Bollman wrote:
> The problem is that I'm running 64 bit, and I can't get Satimage.osax to work. What I can do, however is to use Satimage.osax as a reference on
Check you've got the latest version of Satimage.osax, which is 64-bit capable. (Older versions are 32-bit only.)
+1 for delegating the problem to an existing third-party library, rather than trying to write your own (been there, junked that). Unicode is heinously complicated, and vanilla AppleScript is notoriously slow for any sort of moderate-to-heavy text crunching. Satimage is probably your best option; TextCommands should also work (although that's an FBA, not an osax, so will be significantly slower in heavy use due to the inter-process communication overheads). Or, you could even write your own: the code for a case-change osax is quite trivial (hint: use CFMutableString); you certainly don't need to be a C guru to scrape something together. If you're in a situation where installing third-party extensions isn't an option, then you could still shell out to (e.g.) Python, which is included in OS X as standard; it won't be super-fast, but it's simple and reliable.
HTH
has
--
Learn AppleScript, 3rd edition, Sanderson & Rosenthal:
http://apress.com/book/view/9781430223610
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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