Spotlight가 드라이브를 색인화하지 못하게하려면 컨텐츠가없는 .metadata_never_index라는 제목의 일반 텍스트 파일을 TextEdit에 작성하고 외부에 저장하십시오. 확장명 "txt"사용을 선택 취소하고 TextEdit에 예, 앞에 점으로 저장하고 싶습니다 (표시되지 않게 함).
그것이 지금 막을 지 확실하지 않지만 앞으로 막을 것입니다.
또는,이 Applescript를 응용 프로그램으로 만들어 [강제 추출에 대한 일반적인 경고와 함께 ...] MacTipper 블로그의 크레딧을 추출하십시오.
property show_credits : true
set the_volumes to do shell script "ls /Volumes/"
tell application "Finder" to set the_HD to path to home folder as string
set ejectable_volumes to {}
repeat with i in (every paragraph of the_volumes)
if the_HD does not start with i then
set end of ejectable_volumes to (i as string)
end if
end repeat
if (count of items of ejectable_volumes) is 0 then
tell me to activate
display dialog "Sorry, but there are no ejectable volumes."
else if (count of items of ejectable_volumes) is 1 then
tell me to activate
set the_result to item 1 of ejectable_volumes as string
display dialog ("Eject \"" & the_result & "\"?") buttons {"No", "Yes"} default button 2 cancel button "No"
set the_path to quoted form of ("/Volumes/" & the_result as string)
do shell script "hdiutil eject -force " & the_path
else
tell me to activate
set the_result to choose from list ejectable_volumes with prompt "Please choose a volume to eject (You can select multiple items):" with multiple selections allowed
if the_result is not false then
repeat with j in the_result
set the_path to quoted form of ("/Volumes/" & j as string)
do shell script "hdiutil eject -force " & the_path
end repeat
end if
end if
if show_credits is true then
tell me to activate
set the_credits to button returned of (display dialog "This applescript brought to you by The MacTipper Blog.\n\nhttp://mactipper.com" buttons {"Don't Show Again", "Visit TMB", "OK"} default button 3) as string
if the_credits is "Don't Show Again" then
set show_credits to false
else if the_credits is "Visit TMB" then
open location "http://mactipper.com"
end if
end if