Re: Can anyone explain this?
Re: Can anyone explain this?
- Subject: Re: Can anyone explain this?
- From: Rob Jorgensen <email@hidden>
- Date: Fri, 27 Dec 2002 16:31:41 -0500
At 1:50 PM -0700 12/27/02, Michelle Steiner wrote:
set foo to (choose file)
tell application "Finder" to set foo_name to name of foo
--> "Advance and Retreat"
text items of foo_name
--> {"", "", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ",
"R", "e", "t", "r", "e", "a", "t"}
The first text item is replaced by two null characters.
But
set foo_name to "Advance and Retreat"
text items of foo_name
--> {"A", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ",
"R", "e", "t", "r", "e", "a", "t"}
I'm just guessing but I think it might have something to do with
Unicode, or some other type of text. If I run your first script in
Script Debugger, SD indicates that foo_name isn't just a plain
string. I'm not knowledgeable about all of the various types of text
so I may be way off. <shrug>
--
Rob Jorgensen
Ohio, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.