我想用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
如果我用常規的路徑,例如/Users/mainuser/Desktop/Test/test.png
比它的偉大工程,更換item_path
。我的問題可能是什麼原因?