moving a file to the current users library

I’m trying to move a file to a password restricted folder in the current users library.

this is for a screensaver file i want to be played the applescript is run.

is it possible to do it with applescript?

automator just gives me an error.


Well if the script is running without sufficient privileges then the only way to do it would be to make the user authenticate. To do that you could do the move via a shell script.

do shell script "your move command here" with administrator privileges

This will bring up a authentication dialog.

For more options on do shell script, such as supplying the username/password, check out command in the StandardAdditions library.