尝试创建一个AppleScript droplet,当文件被拖动到droplet时,它将文件移动到给定的文件夹;不确定如何告诉脚本我刚刚拖动的文件是我想要移动的文件;我尝试了一下,但不起作用:
on open dragged_file
tell application "Finder"
move dragged_file to "Macintosh HD:Users...etc."
end tell
end open --script runs but doesn't move file发布于 2012-11-05 23:18:29
尝试:
on open of theFiles
tell application "Finder"
move theFiles to folder "Macintosh HD:Users...etc."
end tell
end open发布于 2016-11-12 22:26:29
要使用droplet,您必须在现在的脚本中引入一个带有currentitem的循环repeat,然后在示例中结束repeat
on open dragged_file
repeat with currentitem in dragged_file
tell application "Finder"
move dragged_file to folder "Macintosh HD:Users...etc."
end tell
end repeat
end open --script runs but doesn't move filehttps://stackoverflow.com/questions/13234805
复制相似问题