Shouldn't that simply copy the file named "oldname" to a new file named "newname"?
I'm getting nothing. When I check the result, I get "execution error". Is this because I'm trying to write to the Applications folder on my Mac? (I'm not intentionally trying to write there but LC wants to do this. When I create my standalone, I assume the app will try to write to whatever folder in which the app resides. True?)
I don't seem to have any issue reading from "oldname" or writing to "oldname".
Thanks,
Barry
PS - Here's the code in my script:
Code: Select all
on mouseUp
revCopyFile "Donations" , "DonationsPrevious"
answer the result
open file "Donations" for write
write field DonationList to file "Donations"
close file "Donations"
end mouseUp