Good idea Shane but it doesn’t solve the problem.
Yesterdays, when I faced the problem I ran this extract of the main script :
set allAliasFiles to (do shell script "mdfind \"kMDItemKind == 'Alias'\"")
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {linefeed}
set allAliasFiles to text items of allAliasFiles
set AppleScript's text item delimiters to saveTID
log (get count allAliasFiles)
allAliasFiles
and the returned count was 1.
New attempt trying to split upon return :
set allAliasFiles to (do shell script "mdfind \"kMDItemKind == 'Alias'\"")
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {return}
set allAliasFiles to text items of allAliasFiles
set AppleScript's text item delimiters to saveTID
log (get count allAliasFiles)
allAliasFiles
This time, the count was 432 and the list contained :
"/Users/??????????/Library/Application Support/PDF Nomad/URLBookmarks/D9B0C587-2F86-446B-952D-F2116A5B5DE7_bookmark.alias", "/Users/??????????/Library/Application Support/PDF Nomad/URLBookmarks/4B16FC2D-EEA2-46A9-AAC1-61165AD6110A_bookmark.alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Pages/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Numbers/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Mail/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/JavaApplicationStub/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/ImageWell/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/HexEdit/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Finder/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/AppleScript Editor/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/iTunes/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Xcode/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/VLC/Target Application Alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/System Preferences/Target Application Alias", "/Users/??????????/Downloads/Developer/Makefiles/bin",
If the return ending some paths was returned by mdfind I assume that I would have get :
"/Users/??????????/Library/Application Support/PDF Nomad/URLBookmarks/D9B0C587-2F86-446B-952D-F2116A5B5DE7_bookmark.alias", "/Users/??????????/Library/Application Support/PDF Nomad/URLBookmarks/4B16FC2D-EEA2-46A9-AAC1-61165AD6110A_bookmark.alias", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Pages/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Numbers/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Mail/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/JavaApplicationStub/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/ImageWell/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/HexEdit/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Finder/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/AppleScript Editor/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/iTunes/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/Xcode/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/VLC/Target Application Alias", "", "/Users/??????????/Library/Speech/Speakable Items/Application Speakable Items/System Preferences/Target Application Alias", "", "/Users/??????????/Downloads/Developer/Makefiles/bin",
It’s why I wrote that I saw no way to get rid of the problem except adding a filter in the CLI.
But maybe you may build an ASObjC code replacing the mdfind instruction.
Yvan KOENIG running Sierra 10.12.6 in French (VALLAURIS, France) jeudi 27 juillet 2017 10:21:49