• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Strange path (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Too simple to find an answer for...
  • Next by Date: Re: How do I get the decimals?
  • Previous by thread: Re: Strange path
  • Next by thread: Re: Strange path
  • Index(es):
    • Date
    • Thread