• 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: substitution of variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: substitution of variables (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: Naming Files from List Ref
  • Next by Date: Thanks Emmanuel!
  • Previous by thread: Re: substitution of variables
  • Next by thread: OS X Folder Action Hiccup
  • Index(es):
    • Date
    • Thread