Я пытаюсь выявить элементы одного и того же размера в папке, и я просто тестируя следующий код, но я получаю эту ошибку:Reveal файлы одинакового размера в папке с помощью Applescript
error "Finder got an error: Can’t get some file of alias \"Macintosh HD:Temp to be Listened to:Temp:Short Temp (Small Files, <20mb):New Folder With Items:\" whose size = \"8890814\" and not 64."
Знаете ли вы, как я могу заставить Finder открыть файл с таким же размером, как (но с другим именем), другой файл в той же папке? Вот код, который я придумал:
tell application "Finder"
set theFolder to choose folder
set noofFiles to number of files in folder theFolder as text
get some file of theFolder
set theFile to result
print result
display notification name of theFile as text
delay 1
get size of theFile as text
set theSize to result
get (some file of theFolder whose size is equal to theSize and name does not contain theFile)
reveal the result
end tell
Благодарность
запоздалого
Спасибо за это. Я знал, что что-то сбиваю с толку, подумал, что это вопрос Finder. –