substitution of variables
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.