Re: Replace slash by underscroe in file name
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 11:02:38 +1100
On 24/03/2006, at 10:29 AM, Paul Berkowitz wrote:
On 3/23/06 3:13 PM, "Malcolm Fitzgerald" <email@hidden>
wrote:
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 "y" -- <-- typo. was "l"
should be "y"
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"
There is no reason to ever use 'my' text item delimiters. Always use
AppleScript's text item delimiters and you'll never go batty. ;-)
That's first the lesson.
The second lesson has a script which looks like it might set text item
delimiters to "l" but we never get to use "l".
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