开发者

Append a folder name to a path variable in applescript?

开发者 https://www.devze.com 2023-01-08 18:36 出处:网络
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
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

精彩评论

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