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

substitution of variables


  • Subject: substitution of variables
  • From: Antonio Inojal <email@hidden>
  • Date: Sun, 1 Sep 2002 19:38:57 -0400

Hi, I am trying to replace a variable for its value. Say I want to
change the name of a directory to the number of items present in the
directory but without taking too much code. ( I am considering time
greatly here). An example

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

In this case, I want to replace 'i' for the actual number of items in
the folder. I put 'i' to signify this. I don't know how it is done, and
I was hoping someone did and was able to share that with me. Thank You.
Tony
_______________________________________________
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:
    • OS X Folder Action Hiccup
      • From: Mr Tea <email@hidden>
    • Re: substitution of variables
      • From: Timothy Bates <email@hidden>
  • Prev by Date: Re: Address Book
  • Next by Date: Re: substitution of variables
  • Previous by thread: Script Menu script to open dictionaries by name
  • Next by thread: Re: substitution of variables
  • Index(es):
    • Date
    • Thread