Bug ? Error on changing directory name

Hi !

I feel some problems on my last test day of your nice & powerful soft.

I'm working on a powerbook (Intel) and an external drive

I want to change a directory name, for this i use you quick action :
_DIRECTORY
and %album% for example
i've got an error :

When i'm doing the same thing but for create a directory, it works perfectly

Of course i've checked all the permission on the disk / Folders & files

Then why can't i rename folders ? i check & test a lot without results

Just for confirm,
I've got the same issue when using _FILENAME

did you have a look at this thread:

Thank you @ohrenkino

It doesn't work anymore, but i'll give the console result, it may help Florian

I've test on a folder at the root of the eternal drive
this drive is a Lacie rugged HFS+ journalisé
I'va launched the console and here the result :slight_smile:

Citation
Sandbox: Mp3tag(3960) deny(1) file-write-create /Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a
Violation: deny(1) file-write-create /Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a
Process: Mp3tag [3960]
Path: /Applications/Mp3tag.app/Contents/MacOS/Mp3tag
Load Address: 0x10df1e000
Identifier: app.mp3tag.Mp3tag
Version: 51 (1.2.3)
Code Type: x86_64 (Native)
Parent Process: launchd [1]
Responsible: /Applications/Mp3tag.app/Contents/MacOS/Mp3tag
User ID: 501

Date/Time: 2021-09-12 18:57:27.906 GMT+1
OS Version: macOS 11.5.2 (20G95)
Report Version: 8

MetaData: {"storage-class":"kTCCServiceSystemPolicyRemovableVolumes","container":"/Users/macmusic/Library/Containers/app.mp3tag.Mp3tag/Data","vnode-type":"REGULAR-FILE","mount-rdev":16777229,"target":"/Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a","platform-binary":false,"rdev":0,"extension-class":"com.apple.app-sandbox.read","process":"Mp3tag","signing-id":"app.mp3tag.Mp3tag","platform_binary":"no","process-path":"/Applications/Mp3tag.app/Contents/MacOS/Mp3tag","platform-policy":false,"suffix":"Fighting Nightmares EP test.m4a","apple-internal":false,"summary":"deny(1) file-write-create /Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a","uid":501,"removable-media":true,"hardware":"Mac","matched-extension":false,"profile-flags":0,"build":"macOS 11.5.2 (20G95)","profile-in-collection":false,"responsible-process-path":"/Applications/Mp3tag.app/Contents/MacOS/Mp3tag","team-id":"SX5YR25689","operation":"file-write-create","path":"/Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a","primary-filter":"path","errno":1,"matched-user-intent-extension":false,"action":"deny","primary-filter-value":"/Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a","user-approval":"kTCCServiceSystemPolicyRemovableVolumes","flags":5,"pid":3960,"normalized_target":["Volumes","LaCie","MP3Tag","Fighting Nightmares EP test.m4a"]}

Thread 0 (id: 242271):
0 libsystem_malloc.dylib 0x00007fff202f3fc5 _malloc_zone_calloc + 12
1 libobjc.A.dylib 0x00007fff203505fa class_createInstance + 65
2 Foundation 0x00007fff212dc1e2 NSAllocateObject + 15
3 Foundation 0x00007fff2130f806 _NSKeyValueObservationInfoGetObservances + 56
4 Foundation 0x00007fff2130fa59 NSKeyValueWillChange + 131
5 Foundation 0x00007fff214755c6 NSKeyValueWillChangeWithPerThreadPendingNotifications + 383
6 Foundation 0x00007fff21348d79 _NSSetObjectValueAndNotify + 139
7 AppKit 0x00007fff22eab43b -[NSSegmentItemView _updateBezelView] + 132
8 Foundation 0x00007fff2130dd6c NSKeyValueNotifyObserver + 327
9 Foundation 0x00007fff212ee354 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 266
10 Foundation 0x00007fff212ed7ba -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 93
11 AppKit 0x00007fff22eaa61c -[NSSegmentItemView _setupObserving] + 491
12 AppKit 0x00007fff22eaa427 -[NSSegmentItemView viewDidMoveToSuperview] + 94
13 AppKit 0x00007fff22dd39c1 -[NSView _setSuperview:] + 1323
14 AppKit 0x00007fff22dd3273 -[NSView addSubview:] + 155
15 AppKit 0x00007fff22ea5b04 -[NSSegmentedCell _addNSSegmentItemViewsToControlView:] + 2216
16 AppKit 0x00007fff22ea7b61 -[NSSegmentedCell _setSegmentItems:updateSegmentItemViews:] + 758
17 AppKit 0x00007fff23005f73 -[NSSegmentedCell initWithCoder:] + 606
18 Foundation 0x00007fff212eaf96 _decodeObjectBinary + 2766
19 Foundation 0x00007fff212ea39c _decodeObject + 152
20 Foundation 0x00007fff212ea287 -[NSKeyedUnarchiver decodeObjectForKey:] + 162
21 AppKit 0x00007fff22e10e97 -[NSControl initWithCoder:] + 431
22 AppKit 0x00007fff23005c9c -[NSSegmentedControl initWithCoder:] + 49
23 Foundation 0x00007fff212eaf96 _decodeObjectBinary + 2766
24 Foundation 0x00007fff212ea39c _decodeObject + 152
25 Foundation 0x00007fff212ea287 -[NSKeyedUnarchiver decodeObjectForKey:] + 162
26 AppKit 0x00007fff22d85769 -[NSNibConnector initWithCoder:] + 97
27 AppKit 0x00007fff22d856a4 -[NSNibOutletConnector initWithCoder:] + 404
28 Foundation 0x00007fff212eaf96 _decodeObjectBinary + 2766
29 Foundation 0x00007fff212eca39 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 850
30 Foundation 0x00007fff21304df3 -[NSArray(NSArray) initWithCoder:] + 161
31 Foundation 0x00007fff212eaf96 _decodeObjectBinary + 2766
32 Foundation 0x00007fff212ea39c _decodeObject + 152
33 Foundation 0x00007fff212ea287 -[NSKeyedUnarchiver decodeObjectForKey:] + 162
34 AppKit 0x00007fff22d84375 -[NSIBObjectData initWithCoder:] + 166
35 Foundation 0x00007fff212eaf96 _decodeObjectBinary + 2766
36 Foundation 0x00007fff212ea39c _decodeObject + 152
37 Foundation 0x00007fff212ea287 -[NSKeyedUnarchiver decodeObjectForKey:] + 162
38 AppKit 0x00007fff22e0f414 -[NSNib _instantiateNibWithExternalNameTable:options:] + 526
39 AppKit 0x00007fff22e0f111 -[NSNib _instantiateWithOwner:options:topLevelObjects:] + 143
40 AppKit 0x00007fff238bd381 -[NSTextTouchBarItemController loadNib] + 78
41 AppKit 0x00007fff238bca18 -[NSTextTouchBarItemController textAlignmentItem] + 106
42 AppKit 0x00007fff238bdbe0 -[NSTextTouchBarItemController setSelectedAttributesWithEnumrator:] + 1029
43 AppKit 0x00007fff22ed22ba -[NSTextView(NSTextView_TouchBar_API) updateTextTouchBarItems] + 113
44 AppKit 0x00007fff22f5756f -[NSTextView(NSPrivate) _setWindow:] + 304
45 AppKit 0x00007fff23642f4a __21-[NSView _setWindow:]_block_invoke.427 + 308
46 AppKit 0x00007fff22dc9fcd -[NSView _setWindow:] + 1754
47 AppKit 0x00007fff23642f4a __21-[NSView _setWindow:]_block_invoke.427 + 308
48 AppKit 0x00007fff22dc9fcd -[NSView _setWindow:] + 1754
49 AppKit 0x00007fff22de6d68 -[NSControl _setWindow:] + 179
50 AppKit 0x00007fff23642f4a __21-[NSView _setWindow:]_block_invoke.427 + 308
51 AppKit 0x00007fff22dc9fcd -[NSView _setWindow:] + 1754
52 AppKit 0x00007fff23642f4a __21-[NSView _setWindow:]_block_invoke.427 + 308
53 AppKit 0x00007fff22dc9fcd -[NSView _setWindow:] + 1754
54 AppKit 0x00007fff2304163e -[NSWindow dealloc] + 870
55 CoreFoundation 0x00007fff2054c583 RELEASE_OBJECTS_IN_THE_ARRAY + 118
56 CoreFoundation 0x00007fff2054c4c6 -[__NSArrayM dealloc] + 279
57 AppKit 0x00007fff2302b82d -[NSWindowController dealloc] + 182
58 AppKit 0x00007fff22f8abb4 -[NSWindowController release] + 130
59 libobjc.A.dylib 0x00007fff2037020f AutoreleasePoolPage::releaseUntil(objc_object**) + 167
60 libobjc.A.dylib 0x00007fff20352e30 objc_autoreleasePoolPop + 161
61 CoreFoundation 0x00007fff2056ca66 _CFAutoreleasePoolPop + 22
62 Foundation 0x00007fff2130d0ab -[NSAutoreleasePool drain] + 131
63 AppKit 0x00007fff22da1c9b -[NSApplication run] + 636
64 AppKit 0x00007fff22d75e6c NSApplicationMain + 816
65 Mp3tag 0x000000010df90f79
66 libdyld.dylib 0x00007fff204cdf3d start + 1
67 0x0000000000000001

Thread 1 (id: 242411, com.apple.NSEventThread):
0 libsystem_kernel.dylib 0x00007fff2047d2ba mach_msg_trap + 10
1 CoreFoundation 0x00007fff205abb2f __CFRunLoopServiceMachPort + 316
2 CoreFoundation 0x00007fff205aa20f __CFRunLoopRun + 1328
3 CoreFoundation 0x00007fff205a961c CFRunLoopRunSpecific + 563
4 AppKit 0x00007fff22f3723a _NSEventThread + 124
5 libsystem_pthread.dylib 0x00007fff204b28fc _pthread_start + 224
6 libsystem_pthread.dylib 0x00007fff204ae443 thread_start + 15

Thread 2 (id: 242463):
0 libsystem_kernel.dylib 0x00007fff2047d2ba mach_msg_trap + 10
1 Mp3tag 0x000000010e19de5e
2 libsystem_pthread.dylib 0x00007fff204b28fc _pthread_start + 224
3 libsystem_pthread.dylib 0x00007fff204ae443 thread_start + 15

Thread 3 (id: 242522, com.apple.NSURLConnectionLoader):
0 libsystem_kernel.dylib 0x00007fff2047d2ba mach_msg_trap + 10
1 CoreFoundation 0x00007fff205abb2f __CFRunLoopServiceMachPort + 316
2 CoreFoundation 0x00007fff205aa20f __CFRunLoopRun + 1328
3 CoreFoundation 0x00007fff205a961c CFRunLoopRunSpecific + 563
4 CFNetwork 0x00007fff24a51358
5 Foundation 0x00007fff21332437 NSThread__start + 1068
6 libsystem_pthread.dylib 0x00007fff204b28fc _pthread_start + 224
7 libsystem_pthread.dylib 0x00007fff204ae443 thread_start + 15

Thread 4 (id: 244699):
0 libsystem_kernel.dylib 0x00007fff2047d2f6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x00007fff20307623 _dispatch_call_block_and_release + 12
2 libdispatch.dylib 0x00007fff20308806 _dispatch_client_callout + 8
3 libdispatch.dylib 0x00007fff2030e5ea _dispatch_lane_serial_drain + 606
4 libdispatch.dylib 0x00007fff2030f0ad _dispatch_lane_invoke + 366
5 libdispatch.dylib 0x00007fff20318c0d _dispatch_workloop_worker_thread + 811
6 libsystem_pthread.dylib 0x00007fff204af45d _pthread_wqthread + 314
7 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 5 (id: 245019):
0 libsystem_kernel.dylib 0x00007fff2047e95e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 6 (id: 245425):
0 libsystem_kernel.dylib 0x00007fff2047d30e semaphore_timedwait_trap + 10
1 libdispatch.dylib 0x00007fff20309145 _dispatch_semaphore_wait_slow + 58
2 SkyLight 0x00007fff24d97b9c CGSUpdateManager::enable_updates_common() + 1146
3 SkyLight 0x00007fff24d985b5 SLSReenableUpdateTokenWithSeed + 130
4 libdispatch.dylib 0x00007fff20307623 _dispatch_call_block_and_release + 12
5 libdispatch.dylib 0x00007fff20308806 _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff2030e5ea _dispatch_lane_serial_drain + 606
7 libdispatch.dylib 0x00007fff2030f0ad _dispatch_lane_invoke + 366
8 libdispatch.dylib 0x00007fff20318c0d _dispatch_workloop_worker_thread + 811
9 libsystem_pthread.dylib 0x00007fff204af45d _pthread_wqthread + 314
10 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 7 (id: 245431):
0 libsystem_kernel.dylib 0x00007fff2047e95e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 8 (id: 245435):
0 libsystem_kernel.dylib 0x00007fff2047e95e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 9 (id: 245443):
0 libsystem_kernel.dylib 0x00007fff20480082 __rename + 10
1 Foundation 0x00007fff21386c47 -[NSFilesystemItemMoveOperation main] + 424
2 Foundation 0x00007fff2131b32a NSOPERATION_IS_INVOKING_MAIN + 17
3 Foundation 0x00007fff2131a5de -[NSOperation start] + 785
4 Foundation 0x00007fff213903fb -[NSFileManager moveItemAtURL:toURL:options:error:] + 292
5 Mp3tag 0x000000010e0d7ddc
6 Mp3tag 0x000000010df9a539
7 Mp3tag 0x000000010e0f46ae
8 libdispatch.dylib 0x00007fff20307623 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff20308806 _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff2030e5ea _dispatch_lane_serial_drain + 606
11 libdispatch.dylib 0x00007fff2030f0ad _dispatch_lane_invoke + 366
12 libdispatch.dylib 0x00007fff20318c0d _dispatch_workloop_worker_thread + 811
13 libsystem_pthread.dylib 0x00007fff204af45d _pthread_wqthread + 314
14 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 10 (id: 245444):
0 libsystem_kernel.dylib 0x00007fff2047e95e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff204ae42f start_wqthread + 15

Thread 11 (id: 245445):

Binary Images:
0x10df1e000 - 0x10e2edfff app.mp3tag.Mp3tag (1.2.3 - 51) <7a1b1d70-bf04-399e-b565-d9f7e8191b2d> /Applications/Mp3tag.app/Contents/MacOS/Mp3tag
0x7fff202d8000 - 0x7fff20304ff7 libsystem_malloc.dylib (317.140.5) <0aedabf0-cff7-3304-9ff8-eb3bbf0801e6> /usr/lib/system/libsystem_malloc.dylib
0x7fff20305000 - 0x7fff2034980f libdispatch.dylib (1271.120.2) /usr/lib/system/libdispatch.dylib
0x7fff2034a000 - 0x7fff20383ad7 libobjc.A.dylib (824) <551c4322-3921-3703-8cc6-1e8e143bb474> /usr/lib/libobjc.A.dylib
0x7fff2047c000 - 0x7fff204abfff libsystem_kernel.dylib (7195.141.2) /usr/lib/system/libsystem_kernel.dylib
0x7fff204ac000 - 0x7fff204b7fff libsystem_pthread.dylib (454.120.2) /usr/lib/system/libsystem_pthread.dylib
0x7fff204b8000 - 0x7fff204f3ff7 libdyld.dylib (852.2) <11007de4-abe1-3079-bf1c-4d0eada884dd> /usr/lib/system/libdyld.dylib
0x7fff2052a000 - 0x7fff209c73ef com.apple.CoreFoundation (6.9 - 1777.103) <08b48289-1c59-3259-8d49-f1fa51ed53d2> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff212d9000 - 0x7fff216372ef com.apple.Foundation (6.9 - 1777.103) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff22d72000 - 0x7fff23abd35f com.apple.AppKit (6.9 - 2022.60.128) <8b44aaab-01a1-30a2-9b1b-cbbbe6dfb82a> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff24811000 - 0x7fff24cafff8 com.apple.CFNetwork (1240.0.4 - 1240.0.4) <9256a031-e247-364b-bd8c-6d701a07c85a> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff24d4d000 - 0x7fff250b2b97 com.apple.SkyLight (1.600.0) <5ce5d2b0-bda7-3f08-bd50-a37580ef6f03> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight

and

Impossible de déplacer « 01-Frezel - Fighting Nightmares.m4a » car vous ne disposez pas de l’autorisation nécessaire pour accéder à « MP3Tag ». (Error Domain=NSCocoaErrorDomain Code=513 "Impossible de déplacer « 01-Frezel - Fighting Nightmares.m4a » car vous ne disposez pas de l’autorisation nécessaire pour accéder à « MP3Tag »." UserInfo={NSSourceFilePathErrorKey=/Volumes/LaCie/MP3Tag/01-Frezel - Fighting Nightmares.m4a, NSUserStringVariant=(
Move
), NSDestinationFilePath=/Volumes/LaCie/MP3Tag/Fighting Nightmares EP test.m4a, NSFilePath=/Volumes/LaCie/MP3Tag/01-Frezel - Fighting Nightmares.m4a, NSUnderlyingError=0x60000177b2d0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}})

Hope it could help

Is this still happening? If so, can you close Mp3tag and run Terminal.app with the command

defaults delete app.mp3tag.Mp3tag SecurityScopedBookmarks

After that, load the root directory of your external volume and retry the operation.

Hi Florian,
I just try & it works well :slight_smile:
It's too cool...
Then i've bought the mac licence.
Thanks for all this work & this so nice tool.
And also for your answers (& solutions) in this community forum

1 Like

Many thanks, Laurent! Happy it's working now :slight_smile:

I'm getting the same issue using my 5 TB external hard drive and I can't get it resolved. I am using a 2020 MacBook Air with an Apple M1 chip on Big Sur 11.5.2. I tried the 'defaults delete app.mp3tag.Mp3tag SecurityScopedBookmarks' fix but it didn't work. I have all permissions on this external hard drive but I can't move the files to a new directory using a custom Action. Please help.

I think I might have fixed it. I opened Mp3Tag and then went to 'Mp3Tag->Preferences' in Preferences, I changed the 'General->Startup Folder' to the root folder of the music files that I am working on. That seemed to do the trick. Have to see if it works with all the files in the root folder but it should I would think.

If you load the root folder, Mp3tag gets permission to access all files and folders under the root. This should do the trick.

You can also do this via Cmd+O and set the startup folder to something that doesn't take much time to load (except if you actually want to load the whole drive on startup).