Re: Optimizing Character Matching
Re: Optimizing Character Matching
- Subject: Re: Optimizing Character Matching
- From: Tim Mansour <email@hidden>
- Date: Sat, 4 Nov 2006 16:20:30 +1100
On 04/11/2006, at 11:55 am, Rick Gordon wrote: tell character 1 of pStyleName if it contains " " or it contains "-" or it contains "_" or it contains "<" or it contains ">" or it contains "(" or it contains ")" or it contains "*" or it contains "*" or it contains "~" then set tempName to (characters 2 thru -1 of pStyleName as text) end if end tell
I'd be testing the other way round for this Rick:
if " -_<>()*~" contains (character 1 of pStyleName) then set tempName to ...
And having said that, I agree with Gary that you could save yourself a lot of effort with the Satimage scripting addition--or TextCommands which is Unicode aware:
|
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden