开发者

Append a folder name to a path variable in applescript?

set fold to "/Users/Test/Desktop/"
set file to "/Myfolder/Hi.txt"
开发者_StackOverflow社区

How can I join these two variables to get my file path as "/Users/Test/Desktop//Myfolder/Hi.txt"?


here ya go

  set aFile to (the POSIX path of (path to desktop)) & "Myfolder/Hi.txt"


Use the Concatenation operator to join strings:

set the folderPath to "/Users/Test/Desktop/"
set the filePath to "/Myfolder/Hi.txt"
set the fullPath to folderPath & filePath
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜