2013-07-21 49 views

回答

2
delay 0.5 -- time to release modifier keys if the script is run with a keyboard shortcut 
tell application "System Events" 
    key code 63 -- fn 
    key code 63 
end tell 

查看Events.h或my website獲取關鍵代碼。

+0

工作完全!你偶然知道如何通過蘋果腳本打開文件夾?我認爲我的問題是文件路徑中的空格.../Users/username/Library/Speech/Speakable Items – user2555399

0

在一個AppleScript文件路徑必須是一個macpath不是unixpath即目錄用冒號(未正斜槓)分開例如,

tell application "Finder" 
    open folder "Macintosh HD:Users:username:Library:Speech:Speakable Items" 
end tell