0
我想知道如何將文件從運行蘋果腳本的相同目錄複製到MAC上的硬編碼文件夾,例如Applescript - 將文件從當前文件夾複製到另一個文件夾
CurrentFolder> /應用/ MYAPP/
乾杯
柯
我想知道如何將文件從運行蘋果腳本的相同目錄複製到MAC上的硬編碼文件夾,例如Applescript - 將文件從當前文件夾複製到另一個文件夾
CurrentFolder> /應用/ MYAPP/
乾杯
柯
set applescriptDir to path to me
set ASdirFolder to do shell script "dirname " & quoted form of posix path of applescriptDir
tell application "Finder" to move file "Path:To:this.file" to POSIX file baseASdir
這得到的路徑,正在運行的AppleScript的,得到的AppleScript的目錄文件夾,然後移到什麼你想要的位置的文件。
嗨double_j只是想知道baseAsdir是什麼? – 2014-10-10 05:10:23
@Ke。它只是抓取AppleScript運行的文件夾名稱,就像你要求的那樣...對吧? – 2014-10-10 06:44:28