Applescript 在用户选择的目录中隐藏所有文件

Applescript 在用户选择的目录中隐藏所有文件,applescript,Applescript,所以基本上我希望能够把所有的文件都放在一个文件夹中并隐藏它们,但它总是在此时停止,并出现Applescript错误-1700 tell application "Finder" set filePath to entire contents of (choose folder with prompt "Please choose your folder") as alias list set pFilePath to POSIX path of

所以基本上我希望能够把所有的文件都放在一个文件夹中并隐藏它们,但它总是在此时停止,并出现Applescript错误-1700

tell application "Finder" 
        set filePath to entire contents of (choose folder with 
        prompt "Please choose your folder") as alias list
        set pFilePath to POSIX path of filePath
end tell

你们能帮帮我吗?

变量
filePath
是一个项目列表,需要获取每个项目的POSIX路径。隐藏的项目可以很容易地在Finder或终端中看到,但是-你真正想做什么?我希望它能做的基本上是能够用密码压缩文件夹的所有内容。我想这是一种更简单的方法来询问做同样的事情你可以使用
zip
shell实用程序,但另一种方法是使用
Disk实用程序从文件夹创建新图像并选择加密。我甚至不知道这一点谢谢