我想用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
。我的问题可能是什么原因?