使用苹果脚本在文件夹中查找文件名
find fileName in a folder using apple script
我想使用 appleScript 语言获取文件夹的第一个文件名
它应该是这样的:
文件夹:photo.png、photo1.png、photo2.png、photo3.png
tell application "Finder"
set fileName to (1° file in this case photo.png)
end tell
请任何能帮助我的人谢谢
差不多。
tell application "Finder"
set fileName to name of first file of folder "Macintosh HD:path:to:folder"
end tell
我想使用 appleScript 语言获取文件夹的第一个文件名 它应该是这样的:
文件夹:photo.png、photo1.png、photo2.png、photo3.png
tell application "Finder"
set fileName to (1° file in this case photo.png)
end tell
请任何能帮助我的人谢谢
差不多。
tell application "Finder"
set fileName to name of first file of folder "Macintosh HD:path:to:folder"
end tell