I'm writing on AppleScript to take a photo I choose a put it in /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Resources
, although whenever I run the script it throughs an error, saying
"340:354: execution error: Finder got an error: Can’t set file (alias "Macintosh HD:Users:Samuel:Pictures:4.jpg") to folder "Macintosh HD:System:Library:PrivateFrameworks:LoginUIKit.framework:Versions:A:Frameworks:LoginUICore.framework:Resources". (-10006) (1)"
osascript -e 'set this_file to choose file
display dialog "Login Walls is now going to attempt to change the wallpaper." buttons {"Okay"} default button "Okay"
tell application "Finder"
set apple to "apple.png"
copy folder "Macintosh HD:System:Library:PrivateFrameworks:LoginUIKit.framework:Versions:A:Frameworks:LoginUICore.framework:Resources" to file this_file
end tell'
The snippet above is from a .sh that is called from the applet script with Admin Privileges.
What I really need to have be done is that the file be copied and renamed, if one can tell me how to do that.