我有下面的代码在 Applescript 中为 iTunes 音乐文件夹的路径设置一个变量:
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)
Run Code Online (Sandbox Code Playgroud)
然后我有代码来调用变量用户名来复制文件
tell application "Finder"
copy file theCopy to username
end tell
Run Code Online (Sandbox Code Playgroud)
但是桌面上的文件 theCopy(theCopy 是一个变量)不会移动到文件夹中。
请帮忙。