如何加入 Applescript 路径?
How to join Applescript paths?
有没有比在 Applescript 中来回转换 POSIX 路径更直接的方法来连接路径?例如:
POSIX file (POSIX path of (path to desktop folder) & "hello.txt")
您可以通过这种方式连接 HFS 路径(以冒号分隔)
(path to desktop as text) & "hello.txt"
path to desktop
returns 别名说明符。
参数 as text
将别名说明符强制为 HFS 路径
有没有比在 Applescript 中来回转换 POSIX 路径更直接的方法来连接路径?例如:
POSIX file (POSIX path of (path to desktop folder) & "hello.txt")
您可以通过这种方式连接 HFS 路径(以冒号分隔)
(path to desktop as text) & "hello.txt"
path to desktop
returns 别名说明符。
参数 as text
将别名说明符强制为 HFS 路径