• 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: Luther Fuller <email@hidden>
  • Date: Tue, 05 Jan 2010 11:12:35 -0600

On Jan 5, 2010, at 11:06 AM, Tin Tin wrote:
> Should Josh first set a variable to the current test delimiters so
> that he might
> return it to that after his script is done with the text parsing?
>
> Something like:
>
> set originalDel to current text item delimiter
> --rest of script

No. 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.

But, it is important to do this ...

	on quit
		set AppleScript's text item delimiters to {""}
		continue quit
	end quit

 _______________________________________________
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

  • Follow-Ups:
    • Re: Newbie Question - Replacing spaces with underscores
      • From: Shane Stanley <email@hidden>
References: 
 >Newbie Question - Replacing spaces with underscores (From: Josh Tishhouse <email@hidden>)
 >Re: Newbie Question - Replacing spaces with underscores (From: Luther Fuller <email@hidden>)
 >Re: Newbie Question - Replacing spaces with underscores (From: "Mark J. Reed" <email@hidden>)
 >Re: Newbie Question - Replacing spaces with underscores (From: Tin Tin <email@hidden>)

  • Prev by Date: Re: Newbie Question - Replacing spaces with underscores
  • Next by Date: Re: Newbie Question - Replacing spaces with underscores
  • Previous by thread: Re: Newbie Question - Replacing spaces with underscores
  • Next by thread: Re: Newbie Question - Replacing spaces with underscores
  • Index(es):
    • Date
    • Thread