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
Context
- Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder · Alexander Thurgood
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.