フォルダ内に内包されているファイルのリスト
tell application "Finder"
set aliasDownloadsFolderPath to path to downloads folder from user domain as alias
end tell
###全部リスト
tell application "Finder"
set listAliasContents to every item in aliasDownloadsFolderPath
end tell
###ドキュメントだけのリスト
tell application "Finder"
set listAliasContents to every document file in aliasDownloadsFolderPath
end tell
####エリアスだけのリスト
tell application "Finder"
set listAliasContents to every alias file in aliasDownloadsFolderPath
end tell
####フォルダだけのリスト
tell application "Finder"
set listAliasContents to every folder in aliasDownloadsFolderPath
end tell
###全部リスト
tell application "Finder"
set listAliasContents to every item of contents of aliasDownloadsFolderPath
end tell
###ドキュメントだけのリスト
tell application "Finder"
set listAliasContents to every document file of contents of aliasDownloadsFolderPath
end tell
####エリアスだけのリスト
tell application "Finder"
set listAliasContents to every alias file of contents of aliasDownloadsFolderPath
end tell
####フォルダだけのリスト
tell application "Finder"
set listAliasContents to every folder of contents of aliasDownloadsFolderPath
end tell
| 固定リンク
「Folder」カテゴリの記事
- [Folder]共有用のアイコン付きフォルダ作成(アクセス権別)(2025.02.20)
- [Localised] localized名称付きのフォルダを作成する(2025.02.20)
- [Folder]修正日がX日より古いフォルダのリスト(Spotlightの方が早いけど…苦笑)(2025.01.18)
- フォルダ内のファイルの情報をHTMLで出力する 少し修正(2024.10.17)
- フォルダ内のファイルを比較 差異があるファイルにはラベルを付与(2024.07.18)