I would like to know how can we hide the Progress Bar of Finder during a copy ?
I spent hours seeking without any results. I search something like that :
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
As soon as the copy (or move) is launched, the Copy bar is in front.
Thank you for your help.
Try this instead of your 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
Cheers, Michael / Hamburg