我想知道如何在复制过程中隐藏Finder的进度条?
我花了几个小时寻找没有任何结果。我搜索类似的东西:
tell application "Finder"
set theItems to items of disk thisVolume
tell application "Finder" to set visible of process "Finder" to false <---- here
move theItems to Destination_Folder with replacing
end tell
启动复制(或移动)后,复制栏就在前面。
感谢您的帮助。
答案 0 :(得分:0)
尝试此操作而不是move
:
-- get the POSIX path of the destination folder
set destinationPath to POSIX path of (Destination_Folder as string)
-- looping through the items
repeat with anItem in theItems
-- get the POSIX path of the file to move
set sourcePath to (POSIX path of (anItem as string))
-- combine all information and trigger the mv shell script
do shell script "mv -f " & (quoted form of sourcePath) & " " & (quoted form of destinationPath)
end repeat
干杯,迈克尔/汉堡