Я пытаюсь переместить файл с помощью AppleScript. Это код, я использую:перемещать файлы с помощью 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
Если я заменяю item_path
с обычным путем, например, как /Users/mainuser/Desktop/Test/test.png
, чем это прекрасно работает. Что может быть причиной моей проблемы?