• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie Question - Replacing spaces with underscores
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Newbie Question - Replacing spaces with underscores (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Photoshop layer set
  • Next by Date: List content of a folder, output to document
  • Previous by thread: Re: Newbie Question - Replacing spaces with underscores
  • Next by thread: Re: Newbie Question - Replacing spaces with underscores
  • Index(es):
    • Date
    • Thread