• 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: Timothy Bates <email@hidden>
  • Date: Mon, 02 Sep 2002 12:07:19 +1000

> 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"


Presto.
Tim
_______________________________________________
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.

  • Follow-Ups:
    • Re: substitution of variables
      • From: Christopher Nebel <email@hidden>
References: 
 >substitution of variables (From: Antonio Inojal <email@hidden>)

  • Prev by Date: substitution of variables
  • Next by Date: Re: Defaults
  • Previous by thread: substitution of variables
  • Next by thread: Re: substitution of variables
  • Index(es):
    • Date
    • Thread