Re: AppleScript TID bug OS 10.2.5? [again]
Re: AppleScript TID bug OS 10.2.5? [again]
- Subject: Re: AppleScript TID bug OS 10.2.5? [again]
- From: Nigel Garvey <email@hidden>
- Date: Sun, 27 Apr 2003 12:03:38 +0100
julifos wrote on Sat, 26 Apr 2003 19:44:08 +0200:
>
I've confirmed again the error.
>
>
I sent a little applet called "Bug Test" to this user to see what was going
>
on. This is the code, courtesy of Mr. J. D. (I attached a simple dialog to
>
the end, in order to see the results):
>
>
###########################
>
set ls to {path to me, path to "cusr", path to startup disk}
>
open ls
>
--
>
on open ls
>
set {f, _colon} to {"" & item 1 of ls, false}
>
if f ends with ":" then set {f, _colon} to {text 1 through -2 of f,
>
true}
>
set text item delimiters to ":"
>
if (count text items of f) is 1 then return {"", f & ":"}
>
set _container to "" & text items 1 thru -2 of f & ":"
>
set _file to last text item of f
>
if _colon then set _file to _file & ":"
>
set text item delimiters to ""
>
display dialog _container default answer _file
>
end open
>
###########################
There are no checks here to see if f's colons (which are created at run
time and are of the same text type as the "" used in the concatenation)
are the same as the colon to which the TIDs are set (which is compiled
into the script). I can't personally see how they wouldn't be, but it
might be worth checking. No "likely" explanations have been forthcoming
so far and this would explain the observed behaviour.
What happens if the user compiles a text version of the script on his/her
own machine? What happens if conventional means are used to get the
strings, such as 'path to me as string' and 'text 1 thru text item -2 of
f'?
>
This user installed OS 10.2.5, he got some problems with it and reinstalled
>
again 10.2.1 (which I suposse his current OS).
>
International System: true, China.
Might having a Chinese system affect the way aliases are coerced to
string?
NG
_______________________________________________
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.