When I apply the script of message #53 on a folder containing 15 mp3 files,
as I posted in my late message, 11 are moved, 4 aren’t.
I compared the content of your last message to the one in message #53.
Below is the list of oddities available:
# Prepare the counters of treated files # YOU DROPPED IT
set filesMoved to 0 # YOU DROPPED IT
set filesNotMoved to 0 # YOU DROPPED IT
# You have.
set my destinationRootPath to "/Volumes/Production/test6" --YOU NEED TO CHANGE DESTINATION PATH
# the comment is incorrect since several days.
# The instruction is designed to define the path used on MY machine.
# it MUST be:
set my destinationRootPath to "/Volumes/Macintosh HD/Users/Important/Test/" --"/Volumes/Production/test3"
set filesNotMoved to filesNotMoved + 1 # YOU DROPPED IT
# The comment to the instruction below is WRONG. It's not mine. The variable theTitle is not set to the file name !!!!
set theTitle to (metaItem's valueForAttribute:(|⌘|'s NSMetadataItemTitleKey)) --SET THE NEW FILE NAME
set filesMoved to filesMoved + 1 # YOU DROPPED IT
set filesMoved to filesMoved + 1 # ADDED on 2017/04/25 -- YOU DROPPED IT
--if (newArray's |count|()) as integer > 0 then # WAS REMOVED WHEN I ADDED THE COUNTERS
-- end if # WAS REMOVED WHEN I ADDED THE COUNTERS
Please use the script in message #53 without changing anything except the path used on your machine defined by the instruction :
property destinationRootPath : “/Volumes/Production/test/” # I assume that it’s the one you need # Is silently changed when the script run on my machine
If you want to work upon Test6, it’s this instruction and only this one which must be edited.
Yvan KOENIG running Sierra 10.12.4 in French (VALLAURIS, France) jeudi 27 avril 2017 11:56:01