我需要一个脚本,该脚本可以选择文件夹中符合以下条件的所有项目:
名称使用5.3约定(即“ XB2F6.jpg”)
名称不能包含下划线
我不知道从哪里开始。有标准的方法吗?
谢谢
答案 0 :(得分:0)
tell application "Finder"
set _W to a reference to front Finder window
if not (_W exists) then return false
set fs to every file in _W
set gs to {}
repeat with f in fs
set filename to f's name
set extension to f's name extension
if the filename's length = 9 and ¬
the extension's length = 3 and ¬
the filename does not contain "_" then ¬
set end of gs to f's contents
end repeat
select gs
activate
end tell