I have a script which will copy a preference file to the correct location depending on what button the user clicks. The problem is that AS Studio doesn’t let me copy the files into the resources folder because they all have the same name even though they are being added to different resource groups and the original locations are different. The target files must have the exact same name. Help Please
Source folders are: Folder:folderone:samefilename.plist
Folder:foldertwo:samefilename.plist
Structure in Project builder:
example Resources:folderone:samefilename.plist
then Resources:foldertwo:samefilename.plist
on clicked theObject
tell application “Finder”
duplicate (file “:Applications:EnvironmentLauncher.app:Contents:Resources:dev:LoginAppPrefs”) to home with replacing
end tell
quit
end clicked :!: :!: