したがって、あるフォルダーのすべてのコンテンツのエイリアスを別のフォルダーに作成するためのこの AppleScript があります。
ソース フォルダーにアイテムが 1 つしかない場合を除き、完全に機能します。
tell application "Finder"
set SourceFolder to (choose folder with prompt "Please choose Source folder:") as string
set DestinationFolder to (choose folder with prompt "Choose Destination folder for aliases:") as string
set theFolders to every item of entire contents of folder SourceFolder
repeat with thisFolder in theFolders
set thisName to name of thisFolder
make new alias file at folder DestinationFolder to thisFolder without invisibles
end repeat
end tell
アイテムが1つしかないのに、なぜ何も得られないのか考えていますか? ソース フォルダーに少なくとも 2 つのアイテムがある場合、宛先に両方のエイリアスが作成されます。
余談ですが、実行時にソース フォルダーと宛先フォルダーを記憶させる方法はありますか?