我需要从 AppleScript 中获取所选文件夹的文件路径。我正在使用以下代码来执行此操作。
--Display selection window
set source_folder to choose folder with prompt "Please select directory."
--Get the path of the folder
set item_list to get the path of every disk item of source_folder
我得到这样的文件路径:
文件:路径:到:该:fodler
我想要的是:
文件/路径/到/该/文件夹