set folder_1 to text returned of (display dialog "Create Folders:" default answer "Type Here")
set folder_2 to "new_" & folder_1
set loc1 to ":path1"
set loc2 to ":path2"
tell application "Finder"
set newfo1 to make new folder at loc1 with properties {name:folder_1}
make new folder at newfo1 with properties {name:"new folder"}
make new folder at newfo1 with properties {name:"new folder"}
make new folder at newfo1 with properties {name:"new folder"}
make new folder at newfo1 with properties {name:"new folder"}
set newfo2 to make new folder at loc2 with properties {name:folder_2}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make new folder at newfo2 with properties {name:"new folder"}
make alias at folder_1 to folder_2
end tell
有人可以解释一下如何在上述代码中创建一个别名吗?我试图在
{name:folder_1}
里面创建{name:folder_2}
的别名,但是使用这个变量我得到了一个错误信息Finder got an error: AppleEvent handler failed
。有谁可以帮忙吗?非常感谢。