I am trying to move the currently viewed file, in my case images, in the preview to a different folder with AppleScript. Idea is to create a shortcut with this AppleScript to easily go through my images and sort them.
I am getting the error 1728 “file can not be read”.
tell application "Preview" to set thefile to path of front document
tell application "Finder"
set p to "Users:XXX:XXX:XXX:Favoriten"
set favorit to POSIX path of p
move POSIX file thefile to favorit with replacing
end tell
1