Re: substitution of variables
Re: substitution of variables
- Subject: Re: substitution of variables
- From: Christopher Nebel <email@hidden>
- Date: Mon, 2 Sep 2002 15:40:52 -0700
On Sunday, September 1, 2002, at 07:07 PM, Timothy Bates wrote:
Hi, I am trying to replace a variable for its value.
You are trying to use the value of a variable
tell application "Finder"
set i to the count of items in folder "(path to folder)"
set the name of the every item in folder "(path to folder)" whose
name begins with a "*" to "*You have 'i' new items"
end tell
Almost there already.
Just change
"*You have 'i' new items"
To
"*You have " & " i & " new items"
...except there's an extra quote in there. Try
"*You have " & i & " new items"
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.