On-rev Rename quotes work. Vars don't!
Rick Harrison
harrison at all-auctions.com
Thu Jan 27 13:56:01 EST 2011
Hi again,
The following works:
rename "imac27.jpg" "imac2012.jpg"
what's below doesn't work:
put "imac27.jpg" into NameOfOldFile
put "imac2012.jpg" into NameOfNewFile
rename NameOfOldFile NameOfNewFile
also this doesn't work:
put "imac27.jpg" into NameOfOldFile
put "imac2012.jpg" into NameOfNewFile
put quote & NameOfOldFile & quote into NameOfOldFile
put quote & NameOfNewFile & quote into NameOfNewFile
rename NameOfOldFile NameOfNewFile
Unfortunately, I need to be able to use variables as I have
a large number of files I will be renaming, so the simple quotes
solution will not work for me.
Ideas?
Thanks,
Rick
More information about the use-livecode
mailing list