MacOS에서 상위 폴더와 하위 폴더를 통해 폴더를 위나 아래로 이동할 수 있는 단축키가 있습니까?
예를 들어 이 간단한 예에서는 파일 1234.pdf를 폴더 A로 이동하고 하위 폴더 A는 비워 두려고 합니다. 이상적으로는 키보드만 사용해 이 작업을 수행할 수 있습니다. 보너스 포인트: 마지막으로 선택한 하위 폴더를 다시 선택하는 단축키(삭제, 이름 바꾸기 등 가능)
- Folder A
- Subfolder A
-File 1234.pdf
- Folder B
답변1
고객님의 답변이 늦어져서 죄송합니다. 예상했던 것보다 더 어려운 일이었습니다.
하지만 원하는 것을 달성하는 것은 가능합니다.서비스~에자동화기, 키보드 단축키(단축키)를 통해 액세스할 수 있게 됩니다.
당신은 따라야합니다시스템 전체 서비스 만들기에 대한 이 가이드.
다음에서 새로운 서비스를 생성하여 시작하세요.자동화기. 받아야 할 것이다파일 또는 폴더입력으로 사용할 수 있으며 다음에서 사용할 수 있습니다.파인더.
을 추가하다AppleScript 실행워크플로우에 대한 조치. 해당 작업의 텍스트 영역에 다음 AppleScript를 복사하여 붙여넣을 수 있습니다.
use Finder : application "Finder"
property F_ : missing value -- The previous folder
property f : missing value -- The files that we moved
property home : Finder's home as alias
on run {f, _}
get its ParentFolderOf:(some item in f)
set there to the result -- The destination folder, one level up
-- We won't navigate any higher up the folder tree than
-- the home folder
if (its ParentFolderOf:home) is in there then return
-- Also don't apply this service to other folders that aren't
-- in the same branch of the folder tree as the home folder
if (there as text) does not begin with (home as text) then return
-- The folder we're currently at
tell Finder to set F_ to ¬
(the container of some item in f) as alias
-- Check to ensure there are no files in the destination folder
-- that risk being overwritten. If there are, we won't move
-- the files who share the same name, i.e. only move those that
-- are safe to move.
tell Finder to ¬
repeat with _g in f
get name of _g
set g to [there as text, result] as text
if not (g exists) then set end of f to _g
set f to the rest of f
end repeat
-- Move the files
tell Finder ¬
to set f ¬
to (move f to there) ¬
as list as alias list
-- Reveal them
reveal f
activate Finder
end run
to ParentFolderOf:(f as alias)
local f
set F_ to [f, "::"] as text as alias
if (f as text) ends with ":" then return F_
return its ParentFolderOf:F_
end ParentFolderOf:
원하는대로 서비스를 저장하십시오. 자동화기자동으로 올바른 위치에 저장됩니다(~/라이브러리/서비스). 나는 내 것을 다음과 같이 저장했습니다."Finder에서 승천".
다음으로 키보드 단축키를 만들어야 합니다. 이는 다음을 통해 이루어집니다.시스템 환경설정:
서비스 목록에서 표시된 섹션까지 아래로 스크롤해야 합니다.파일 및 폴더, 그 아래에 서비스 이름이 표시됩니다. 내 것이 강조 표시된 것을 볼 수 있습니다. ⌃▲내 바로가기를 만들었습니다 (Ctrl+위쪽).
이제 파일 및/또는 폴더를 선택할 때마다파인더을 누르고 을 누르면 ⌃▲해당 파일과 폴더가 상위 폴더로 계층 구조에서 한 수준 위로 올라갑니다. 다시 이동하려면 을 눌러 ⌘Z이동을 취소하면 됩니다.
파일과 폴더가 홈 폴더보다 폴더 트리 위로 이동되지 않도록 보호 장치를 설치했습니다. 어쨌든 그럴 필요는 없을 것 같습니다.
답변2
열 보기에서 작업하는 경우 화살표 키만 사용하여 탐색할 수 있습니다.
예를 들어, 선택한 파일로 시작한다고 가정하면...
Cmd ⌘ C 복사하다
왼쪽 화살표 [하위 폴더 A가 선택됨], 보너스 포인트는...
- Enter ⌅ 이름을 바꾸거나 Cmd ⌘ Backspace ⌫ 삭제할 수 있습니다
. [현재 복사 버퍼에 있는 파일은 손실되지 않습니다.]
- Enter ⌅ 이름을 바꾸거나 Cmd ⌘ Backspace ⌫ 삭제할 수 있습니다
왼쪽 화살표 [폴더 A가 선택됩니다]*
Cmd ⌘ Opt ⌥ V 이동
처음에 보이는 구조입니다.
그리고 마지막에 다시 [지나가는 도중에 하위 폴더 A를 삭제한 후]
*답변 어디에도 언급되지 않았기 때문에 이 시점에서 아래쪽 화살표를 누르면 폴더 B가 선택됩니다.