Как конвертировать загрузочный образ DMG в ISO в Windows
차례:
이 때, Automator를 사용하여 Mac에서 구현할 수있는 몇 가지 간단한 워크 플로우를 공유 할 것입니다. 어느 곳에서나 Mac에 앱 설치를 완료 할 때마다 몇 번의 클릭만으로 디스크 이미지를 꺼내거나 마운트 해제 하고 삭제할 수 있습니다.
이 멋진 Automator 워크 플로를 설정하는 방법부터 시작합시다.
DMG 파일을 자동으로 삭제하십시오.
1 단계: Automator를 열고 새 문서를 작성하도록 선택하십시오. 대화 상자에 표시되는 사용 가능한 문서 유형에서 서비스를 선택하십시오.
2 단계: 오른쪽 패널의 상단에서 '입력 없음' 및 'Finder' 옵션을 각각 드롭 다운 메뉴에서 선택하여 최종 결과가 아래 그림과 같도록하십시오.
3 단계: 다음으로, Automator의 왼쪽 패널에서 Run AppleScript 액션을 검색하여 오른쪽 패널로 드래그하십시오. AppleScript 윈도우에 일부 자리 표시 자 코드가 나타납니다.
해당 코드를 삭제하고 스크립트 상자에 다음 코드를 복사하여 붙여 넣으십시오.
tell application "Finder"
set selection_list to selection
if (count selection_list) < 1 then
display dialog
"Please select a volume mounted from a disk image." with title
"No Selection Found" with icon stop
buttons default button 1
return
end if
set my_selection to item 1 of selection_list
set my_kind to kind of my_selection
set my_name to name of my_selection
if my_kind is not "Volume" then
display dialog
"Please select a volume mounted from a disk image file." with title
"Selection is not a Disk Image" with icon stop
buttons default button 1
return
end if
set volume_list to paragraphs of (do shell script "hdiutil info | grep ^/dev/disk | grep -o '/Volumes/.*'")
set source_list to paragraphs of (do shell script "hdiutil info | grep ^image'-'alias | grep -o '/.*'")
set match_found to false
repeat with v from 1 to (count volume_list)
if "/Volumes/" & my_name = item v of volume_list then
set match_found to true
exit repeat
end if
end repeat
if match_found is not equal to true then
display dialog
"The selected volume does not appear to be a Disk Image." with title
"Could not find Disk Image" with icon stop
buttons default button 1
return
else
set my_source to POSIX file (item v of source_list) as alias
move my_source to the trash
eject my_selection
--reveal my_source
end if
end tell
4 단계: 이제이 Automator 서비스를 저장하고 기억하기 쉬운 이름을 지정하십시오.
이제 반대되는 일을 똑같은 목표로 수행하는 또 다른 Automator 워크 플로우에 대해 살펴 보겠습니다.
DMG 파일을 휴지통으로 끌면 자동으로 꺼내기
제목에서 알 수 있듯이이 Automator 워크 플로를 사용하면 반대의 경우를 제외하고 동일한 목적을 달성 할 수 있으므로 마운트 된 DMG 파일을 휴지통으로 드래그 할 때마다이 메시지가 표시되지 않도록 할 수 있습니다.
2 단계: 오른쪽 패널 상단의 드롭 다운 메뉴에서 기타 … 를 선택하십시오. 그런 다음 팝업되는 대화 상자에 ~ /.Trash 를 입력하여 해당 폴더에 대해 작업하십시오.