• 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: Replace slash by underscroe in file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace slash by underscroe in file name


  • Subject: Re: Replace slash by underscroe in file name
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Fri, 24 Mar 2006 10:13:59 +1100


On 24/03/2006, at 2:24 AM, Paul Berkowitz wrote:

On 3/23/06 6:48 AM, "kai" <email@hidden> wrote:

set text item delimiters to storedDelimiters
-- restore the value of AppleScript's text item delimiters
-- to whatever they were on entering the subroutine



The context of this is that AppleScript's text item delimiters is a true
global across all scripts in your current session of Script Editor or
whatever application is running your script.

Here are two ways in which text item delimiters will drive you batty.

------------ one
set my text item delimiters to "x"
set AppleScript's text item delimiters to "y"
get my text item delimiters --> "y"

------------ two
set AppleScript's text item delimiters to "l"
script tid
	set my text item delimiters to "l"
	on _get()
		return my text item delimiters
	end _get
end script
tell tid to _get() --> "y"


malcolm

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Replace slash by underscroe in file name
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Replace slash by underscroe in file name (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Return or No Return
  • Next by Date: Re: Replace slash by underscroe in file name
  • Previous by thread: Re: Replace slash by underscroe in file name
  • Next by thread: Re: Replace slash by underscroe in file name
  • Index(es):
    • Date
    • Thread