windows程序功能強大且已經習慣使用了,用mac總感覺不給力,例如記事本工具Notepad++就非常優秀。下面介紹如何在mac系統下通過wine來安裝使用notepadd++程序。
1.安裝wine
在Mac上安裝Wine (用於運行exe程序)
2.安裝notepad++
https://notepad-plus-plus.org/
找到dowload,找到Notepad++ zip package 32-bit x86 版本下載
解壓到某個文件夾,例如:/Users/hdwang/App
復制運行文件的全路徑:/Users/hdwang/App/npp.7.4.2.bin/notepad++.exe
3.運行notepad++
徹底消除wine中文亂碼,QQ,kugoo等等
5.創建快捷方式到mac桌面
on run {input, parameters}
tell application "Finder"
--set dirPath to (get insertion location)
set filePathAlias to selection as alias
set filePath to POSIX path of filePathAlias
end tell
--display dialog "打開" & filePath
(* 調用shell腳本 *)
do shell script "/usr/local/bin/wine /Users/hdwang/App/npp.7.4.2.bin/notepad++.exe \"" & filePath & "\""
return input
end run
保存到應用程序即可(notepad.app)。