AppleScript文件夹导航
我在尝试让applescript查找包含随机字符的文件时遇到问题。我可以找到文件夹所在的位置,但如何找到该文件夹?以下是我的设想: 1) 文件夹将始终具有。默认值位于文件夹末尾。 2) 文件夹名称的第一部分是随机生成的字符 这是到目前为止我的代码AppleScript文件夹导航,applescript,Applescript,我在尝试让applescript查找包含随机字符的文件时遇到问题。我可以找到文件夹所在的位置,但如何找到该文件夹?以下是我的设想: 1) 文件夹将始终具有。默认值位于文件夹末尾。 2) 文件夹名称的第一部分是随机生成的字符 这是到目前为止我的代码 set FolderPath to ((path to home folder as text) & "Library:Application Support:Firefox:Profiles") tell applicati
set FolderPath to ((path to home folder as text) & "Library:Application Support:Firefox:Profiles")
tell application "Finder" to get every folder of folder FolderPath
对于那些感兴趣的人,我试图修改FireFox默认文件夹中的pref.js文件
当前在我的计算机上,文件夹具有以下文件名:tsv5su2x。默认值请尝试:
tell application "Finder" to set myFolders to folders of folder FolderPath whose name extension = "default"