好吧,我还是把我为你打的东西贴出来吧:-)
set folderTest1 to "test1"
set folderTest2 to "test2"
set homePath to POSIX path of (path to home folder as text) as text
set attachmentsFolder to (homePath & folderTest1 & "/" & folderTest2) as text
--OR
set homePath to POSIX path of (path to home folder as text) as text
set attachmentsFolder to (homePath & "test1/test2") as text
POSIX PATH将 HFS+ 路径更改为 unix 类型路径
主文件夹路径获取用户主文件夹
文档路径获取用户文档文件夹的路径
POSIX 文件将 unix 类型路径更改为 HFS+ 路径
set homePath to POSIX path of (path to home folder as text) as text
set theHFSPath to (POSIX file homePath)
tell application "Finder"
--The finder looks for the folders in the alais path of theHFSPath
set theFolders to folders of (theHFSPath as alias) as alias list
--> returns is a list of folders in the form of alais paths
end tell