Re: Newbie Question - Replacing spaces with underscores
Re: Newbie Question - Replacing spaces with underscores
- Subject: Re: Newbie Question - Replacing spaces with underscores
- From: Shane Stanley <email@hidden>
- Date: Wed, 06 Jan 2010 08:36:23 +1100
- Thread-topic: Newbie Question - Replacing spaces with underscores
On 6/1/10 4:12 AM, "Luther Fuller" <email@hidden> wrote:
> Saving, then resetting the value of 'AppleScript's text item delimiters' is a
> waste of time. Simply set the value, then use the value in the next line.
The main problem with that advice is that people end up delimiters them when
they don't realise, especially beginners. So they don't understand why using
something like "characters 1 thru 5 of x as text" doesn't always return what
they expect.
And it can play merry havoc at the testing stage.
Then later they change them in a handler that's called inside an if
statement, and wonder why their results are erratic.
> But, it is important to do this ...
>
> on quit
> set AppleScript's text item delimiters to {""}
> continue quit
> end quit
Now that *is* a waste of time.
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
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