• 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: Dialog simple question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog simple question


  • Subject: Re: Dialog simple question
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 19 Oct 2005 15:12:07 -0700

On Oct 19, 2005, at 2:44 PM, Mark J. Reed wrote:

On 10/19/05, J Charles Ferrari <email@hidden> wrote:

sset Dialog1 to itemCount & " file(s) copied." as text

... I'm not real comfortable with that technique, since it first builds a list and then goes back and joins the stringified elements of that list together. I don't, well, trust AppleScript to do the right thing there. I'd much rather be explicit and make everything strings all the way through. :)

Oh, AppleScript will do the right thing, but it might not be what you expect. =) The list-to-string coercion is defined to insert the value of "text item delimiters" [1] in between each item. By default, this is an empty string, so you won't notice, but if you had set it to something else, then you would.



--Chris Nebel AppleScript and Automator Engineering

[1] Technically, the value if it's a string, or the value of the first item if it's a list.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Dialog simple question
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Dialog simple question (From: Bernard AZANCOT <email@hidden>)
 >Re: Dialog simple question (From: "Mark J. Reed" <email@hidden>)
 >Re: Dialog simple question (From: Dave Balderstone <email@hidden>)
 >Re: Dialog simple question (From: J Charles Ferrari <email@hidden>)
 >Re: Dialog simple question (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: coercing text to time
  • Next by Date: Re: coercing text to time
  • Previous by thread: Re: Dialog simple question
  • Next by thread: Re: Dialog simple question
  • Index(es):
    • Date
    • Thread