• 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: 10.4.9 versus 10.4.10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.4.9 versus 10.4.10


  • Subject: Re: 10.4.9 versus 10.4.10
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 15 Mar 2008 13:20:42 -0700
  • Thread-topic: 10.4.9 versus 10.4.10

On 3/15/08 1:09 PM, "Michelle Steiner" <email@hidden> wrote:

> On Mar 15, 2008, at 1:02 PM, Paul Berkowitz wrote:
>
>>   set v1 to system attribute "sys1"
>>    set v2 to system attribute "sys2"
>>    set v3 to system attribute "sys3"
>>    set v to (v1 as string) & "." & v2 & "." & v3
>
> Alternatively,
>
> set text item delimiters to "."
> set v1 to system attribute "sys1"
> set v2 to system attribute "sys2"
> set v3 to system attribute "sys3"
> set v to (v1 & v2 & v3) as string

That's not very alternative. If it really hurts you to concatenate "." twice
in a string (why?) and you prefer to coerce a list to a string, I can't see
why you wouldn't just do so directly rather than first implicitly coerce to
list via non-existent concatenation of integers. But the difference is petty
again.


set text item delimiters to "."
set v1 to system attribute "sys1"
set v2 to system attribute "sys2"
set v3 to system attribute "sys3"
set v to {v1, v2, v3} as string


And then you might forget to reset tids again before the next time you try
'characters of someText as string'...


--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: 10.4.9 versus 10.4.10
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: 10.4.9 versus 10.4.10 (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: 10.4.9 versus 10.4.10
  • Next by Date: Re: 10.4.9 versus 10.4.10
  • Previous by thread: Re: 10.4.9 versus 10.4.10
  • Next by thread: Re: 10.4.9 versus 10.4.10
  • Index(es):
    • Date
    • Thread