
Applescript에서는 Finder 창에서 선택한 파일을 가져오는 것이 매우 쉽습니다.
tell application "Finder"
set finderSelList to selection as alias list
end tell
Powershell에 동등한 것이 있습니까?
내가 할 수 있기를 원하는 것은 탐색기 창에서 파일 개체 배열로 임의의 파일을 선택하는 것입니다. 그래서
get-explorer-selection|%{do-something-to $_}
여기서 get-explorer-selection
맨 앞의 탐색기 창에서 선택한 파일의 배열을 반환합니다.