I am trying to move files using Applescript, and I get an error every time I run the app. In the contents of the app, I have the file(s) I want to move (so if I distribute the app the users won't have to separately download the file(s)). That is also why I am using ((path to home folder as text)
and adding the specific file path past that. Here is my code:
set source to ((path to home folder as text) & "/Contents/Resources/finder.jpg")
set source2 to ((path to home folder as text) & "/Contents/Resources/finder@2x.jpg")
set destination to alias "Macintosh HD:System:Library:CoreServices:Dock.app:Contents:Resources:"
tell application "Finder"
move source to destination with replacing
move source2 to destination with replacing
end tell
p.s. I checked just about every related question/answer there is on here, and none helped.