diff options
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/osx_install_languagepack.applescript | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/setup_native/scripts/osx_install_languagepack.applescript b/setup_native/scripts/osx_install_languagepack.applescript index 3b4a116fb122..8ad55396766a 100644 --- a/setup_native/scripts/osx_install_languagepack.applescript +++ b/setup_native/scripts/osx_install_languagepack.applescript @@ -125,13 +125,12 @@ else end if -- now only check whether the path is really from [PRODUCTNAME] --- FIXME: https://bugs.documentfoundation.org/show_bug.cgi?id=134607 --- try --- do shell script "mdls --raw --name kMDItemDisplayName --name kMDItemVersion " & quoted form of (choice as string) & " | xargs -0 | fgrep '[PRODUCTNAME] [PRODUCTVERSION]'" --- on error --- display dialog (choice as string) & appInvalid buttons {InstallLabel} default button 1 with icon 0 --- return 3 --wrong target-directory --- end try +try + do shell script "mdls --raw --name kMDItemDisplayName --name kMDItemVersion " & quoted form of (choice as string) & " | xargs -0 | fgrep '[PRODUCTNAME] [PRODUCTVERSION]'" +on error + display dialog (choice as string) & appInvalid buttons {InstallLabel} default button 1 with icon 0 + return 3 --wrong target-directory +end try (* display dialog startInstall buttons {AbortLabel, InstallLabel} default button 2 |