我有下面的代碼來設置一個變量的AppleScript的路徑到iTunes Music文件夾:複製一個文件的AppleScript
set username to text returned of (display dialog "RingtoneDude" default answer "Enter your path to your iTunes Ringtones folder here. e.g. /Users/David/Music/iTunes/iTunes Music/Ringtones" buttons {"Confirm", "Cancel"} default button 1)
然後我的代碼來調用變量名複製文件
tell application "Finder"
copy file theCopy to username
end tell
但桌面上的theCopy文件(theCopy是一個變量)不會移動到文件夾。
請幫忙。