Ich versuche, eine Datei mit AppleScript zu verschieben. Dies ist der Code ich benutze:Verschieben von Dateien mit AppleScript
on adding folder items to this_folder after receiving these_items
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
set the item_info to info for this_item
set the item_path to the quoted form of the POSIX path of this_item
...
... //irrelevant code here
...
tell application "Finder"
move POSIX file item_path to POSIX file "/Users/mainuser/Desktop/Books"
end tell
end repeat
end adding folder items to
Wenn ich item_path
mit einem normalen Pfad ersetzen, wie /Users/mainuser/Desktop/Test/test.png
als es funktioniert super. Was könnte der Grund für mein Problem sein?