Re: Strange path
Re: Strange path
- Subject: Re: Strange path
- From: Allen Watson <email@hidden>
- Date: Thu, 29 Jul 2004 19:29:25 -0700
On or near 7/23/04 9:03 AM, Michelle Steiner at email@hidden
observed:
>
On Jul 21, 2004, at 1:05 PM, John Stewart wrote:
>
>
> A two item list (or barring that an error) is what I expected here but
>
> didn't
>
> get, did you try it? It seems there is an unexpected backward coercion
>
> somewhere. I'd like to know if it's just on my machine.
>
>
>
> set x to path to preferences
>
> set y to x & "foo" as text
>
>
>
> --> G5:Users:john:Library:Preferences:foo
>
>
That's what I get as well.
>
Maybe it's seeing it as though it were
set x to (x & "foo") as text
Rather than
set x to x & ("foo" as text)
The concatenation produces a two-item list; "as text" turns the list into a
string.
--
<email@hidden>
Scripts for OE and Entourage: <
http://allenwatson.thinkaccess.net/Scripts/>
Entourage questions: <
http://www.entourage.mvps.org/>
_______________________________________________
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.