Re: Dialog simple question
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