Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

Alexander Thurgood alex.thurgood at gmail.com
Thu Aug 29 03:30:16 PDT 2013


Hi all,

Is it intended that for 4.1 the applescript installer now scans every
file on the whole disk looking for the strings equal to 'LibreOffice*'
and not equal to 'LibreOffice Language Pack.app' ?

The applescript in the French 4.1 langpack (and I assume in other
languages) contains the lines :

set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType
== 'com.apple.application-bundle' && kMDItemDisplayName ==
'LibreOffice*' && kMDItemDisplayName != 'LibreOffice Language
Pack.app'\"") & "
" & chooseMyOwn

set found_ooos_all_paragraphs to paragraphs in found_ooos_all

set found_ooos to {}
repeat with currentApp in found_ooos_all_paragraphs
	if currentApp does not start with "/Volumes" then
		copy currentApp to the end of found_ooos
	end if
end repeat


whereas the 4.0.5 langpack contains :

set found_ooos_all to ""
-- command might return an error if spotlight is disabled completely
try
	set found_ooos_all to (do shell script "mdfind \"kMDItemContentType ==
'com.apple.application-bundle' && kMDItemDisplayName == 'LibreOffice*'
&& kMDItemDisplayName != 'LibreOffice Language Pack.app'\"")
end try
set found_ooos_all to found_ooos_all & "
" & chooseMyOwn

set found_ooos_all_paragraphs to paragraphs in found_ooos_all

set found_ooos to {}
repeat with currentApp in found_ooos_all_paragraphs
	if currentApp does not start with "/Volumes" then
		copy currentApp to the end of found_ooos
	end if
end repeat



If a user runs the 4.1 langpack app installer from the publicly
available diskimage, it takes so long that it looks like the
installation has either failed or hung.

If I run, from the terminal :

mdfind kMDItemContentType == 'com.apple.application-bundle' && mdfind
kMDItemDisplayName == 'LibreOffice*' && mdfind kMDItemDisplayName !=
'LibreOffice Language Pack.app'

it takes about 30 mins to finish.


Alex





More information about the LibreOffice mailing list