文件夾我有這樣的腳本:我怎麼能打開「網絡」使用AppleScript
set filename to getLocalizedString("Finder", "AXICON5")
--set openIP to filename & PCIP
tell application "Finder" to activate
tell application "Finder"
try
--open folder openIP
--on error errMsg number errNbr
open folder filename
end try
tell application "Finder" to activate
end tell
on getLocalizedString(a, x)
tell application a to return localized string x
end getLocalizedString
我想要做的就是打開一個文件夾中的「網絡」文件夾中。如果失敗,請打開「網絡」文件夾。更重要的是,應用程序本地化了serval語言,因此,我使用函數getLocalizedString(a,x)從Finder.app獲取localizedString「network」。
問題來了。有些語言沒有大小寫敏感的問題,如中文,日文。但在英文中,我得到字符串「網絡」,我不能去文件夾。 「網絡」正常工作。 Plz幫助!
嗨,thx請注意它。我有一個應用程序可以在我的本地網絡中找到一些設備。當我選擇設備時,我想打開網絡文件夾中設備的文件夾。至於字符串,因爲我有本地化的語言語言,所以我必須獲得本地化使用此函數設置文件名的字符串爲getLocalizedString(「Finder」,「AXICON5」) – leleleo