Re: How do I delete the 1st three characters from a variable
Re: How do I delete the 1st three characters from a variable
- Subject: Re: How do I delete the 1st three characters from a variable
- From: kai <email@hidden>
- Date: Wed, 4 Jan 2006 05:04:55 +0000
On 4 Jan 2006, at 04:50, Michelle Steiner wrote:
On Jan 3, 2006, at 9:47 PM, deivy petrescu wrote:
So, the two methods do not yield the same result.
"characters" is convenient when you need a list.
But we're talking about these two constructs:
characters a through b of foo as text
text a through b of foo
They do return the same result.
Only under certain conditions - and certainly not any of these:
-----------
set foo to "Are these results the same?" as Unicode text
set text item delimiters to return
set a to characters 1 through 8 of foo as text
set b to text 1 through 8 of foo
{a = b, a's length = b's length, a's words = b's words, a's class =
b's class}
--> {false, false, false, false}
-----------
---
kai
_______________________________________________
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