I am a complete applescript virgin and I have 2 versions of the same application that use different frameworks that have the same name.
I'm looking to create 2 scripts that move the correct version of the framework into the frameworks folder so I can swap them out quickly from the desktop.
This is what I have so far but it is throwing up an AppleEvent Handler failed -10000 error.
tell application "Finder"
duplicate POSIX file "Machintosh HD/Framework Store/Test.framework" to POSIX file "Machintosh HD/Library/Frameworks/Test.framework" with replacing
end tell
Can someone point out where I am going wrong?
Any help is greatly appreciated.