Re: Ma always said: there is a time to take and a time to give [Mid(Source, Start, End)]
Re: Ma always said: there is a time to take and a time to give [Mid(Source, Start, End)]
- Subject: Re: Ma always said: there is a time to take and a time to give [Mid(Source, Start, End)]
- From: Christopher Nebel <email@hidden>
- Date: Mon, 27 Oct 2008 11:22:04 -0700
On Oct 27, 2008, at 6:48 AM, Skeeve wrote:
If there is a possible optimisation, please share.
Sure there are. Why do you use "characters" when there are already
string functions?
set StringLength to count of characters in StringSource
--better--> set StringLength to length of StringSource
Or, even better, leave that line out entirely, because StringLength is
never used after it's set.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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