Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe real stupid question …



Hi all,

Here my solution based on Philip's idea - in case somebody could need it some time

on IsLower(theChar)
set res to call method "isEqualToString:" of theChar with parameter (call method "lowercaseString" of theChar )
return res as boolean
end IsLower


Just a little background why I needed that:
while reading file content there are entries like $AS1234, nSCENE, SCENE where the first character has to be removed in case it's lower case.


Regards
Andreas

On 25.09.2006, at 17:06, Philip Aker wrote:

On 2006-09-25, at 04:37:47, Andreas Kiel wrote:

I was was a little bit too fast with my reply.
So "lowercaseString" method of NSString is not the way to go - after reading the doc.

He probably meant to do something like (pseudo-code):

on IsLower(theString)
	set res to false
	set lower to call method [theString lowercaseString];
	if (lower is equal to theString) then
		set res to true
	}
	return res
end IsLower


Philip Aker email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Re: Maybe real stupid question … (From: Takaaki Naganoya <email@hidden>)
 >Re: Maybe real stupid question … (From: Jan Geerling <email@hidden>)
 >Re: Maybe real stupid question … (From: Christopher Nebel <email@hidden>)
 >Re: Maybe real stupid question … (From: Andreas Kiel <email@hidden>)
 >Re: Maybe real stupid question … (From: Andreas Kiel <email@hidden>)
 >Re: Maybe real stupid question … (From: Philip Aker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.