小编Wil*_*ans的帖子

在 AppleScript 中复制文件

我有下面的代码在 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 是一个变量)不会移动到文件夹中。

请帮忙。

directory applescript copy file move

1
推荐指数
1
解决办法
8514
查看次数

标签 统计

applescript ×1

copy ×1

directory ×1

file ×1

move ×1