![梅問題-[MAC]讓MAC也能顯當前的目錄路徑位置](http://photo.minwt.com/img/Content/mac/mac-show-path/mac-show-path_00.jpg)
首先,開啟「終端機」,並輸入defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES。
![梅問題-[MAC]讓MAC也能顯當前的目錄路徑位置](http://photo.minwt.com/img/Content/mac/mac-show-path/mac-show-path_01.jpg)
接著再輸入killall Finder,將所有的視窗給關閉。
![梅問題-[MAC]讓MAC也能顯當前的目錄路徑位置](http://photo.minwt.com/img/Content/mac/mac-show-path/mac-show-path_02.jpg)
完成後,再開啟視窗,這時在視窗上方,就會看到目前的路徑位置啦!
![梅問題-[MAC]讓MAC也能顯當前的目錄路徑位置](http://photo.minwt.com/img/Content/mac/mac-show-path/mac-show-path_03.jpg)
set Cap to (do shell script "ioreg -w0 -l | grep ExternalChargeCapable") tell Cap to set {wallPower} to {last word of paragraph 1} set Cap to (do shell script "ioreg -wO -l | grep Capacity") tell Cap to set {Available, Max} to {last word of paragraph 2, last word of paragraph 1} set percent to round (100 * Available / Max) if percent <= 15 then # cargar tell application "Finder" activate set dialog_text to "電力只剩於 " & percent & "%. 請接上電源供應器" display dialog dialog_text end tell end if |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <false/> <key>Label</key> <string>batteryAlert</string> <key>LowPriorityIO</key> <true/> <key>ProgramArguments</key> <array> <string>/usr/bin/osascript</string> <string>/etc/batteryScript.applescript</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceDescription</key> <string>Battery Alert</string> <key>StartInterval</key> <integer>30</integer> </dict> </plist> |