Happy new year to all of you.
I’m not sure to have access to a Catalina machine today.
May you the script below in English and post the Log History ?
With a bit of luck it will give useful infos.
use AppleScript version "2.4"
use scripting additions
use framework "Foundation"
use script "FileManagerLib" version "2.3.3"
script o
-- property showViewOptions_loc : ""
property kind_loc : "" --> "Type"
property name_loc : "" --> "Nom"
property sortBy_loc : "" --> "Trier par :"
property iCloudStatus_loc : "" --> "Statut iCloud"
property dateModified_loc : "" --> "Date de modification"
property dateCreated_loc : "" --> "Date de création"
property dateLastOpened_loc : "" --> "Date de dernière ouverture"
property dateAdded_loc : "" --> "Date de l’ajout"
property size_loc : "" --> "Taille"
property version_loc : "" --> "Version"
property comments_loc : "" --> "Commentaires"
property tags_loc : "" --> "Tags"
property alwaysOpenInListView_loc : "" --> "Toujours présenter par liste"
property browseInListView_loc : "" --> "Naviguer en présentation par listes"
-- property hideToolbar_loc : "" --> "Masquer la barre d’outils"
property showToolbar_loc : "" --> "Afficher la barre d’outils"
-- property hideStatusBar_loc : "" --> "Masquer la barre d’état"
property showStatusBar_loc : "" --> "Afficher la barre d’état"
-- property hidePathBar_loc : "" --> "Masquer la barre du chemin d’accès"
property showPathBar_loc : "" --> "Afficher la barre du chemin d’accès"
property showSidebar_loc : "" --> "Afficher la barre latérale"
-- property hideSidebar_loc : "" --> "Masquer la barre latérale"
-- property hideTabBar_loc : "" --> "Masquer la barre d’onglets"
property showTabBar_loc : "" --> "Afficher la barre d’onglets"
--property hidePreview_loc : "" --> "Masqu l’aperçu"
property showPreview_loc : "" --> "Afficher l’aperçu"
property useAsDefaults_loc : "" --> "Utiliser comme valeurs par défaut"
property arrangeBy_loc : "" --> "Organiser par :"
-- property smallSizeIcons_loc : "" --> "icônes de petite taille"
property largeSizeIcons_loc : "" --> "icônes de grande taille"
property useRelativeDates_loc : "" --> "Utiliser les dates relatives"
property calculateAllSizes_loc : "" --> "Calculer toutes les tailles"
property showIconPreview_loc : "" --> "Utiliser un aperçu comme icône"
property closeButton_loc : "" --> "Bouton de fermeture"
property textSize_loc : "" --> "Taille du texte :"
end script
Germaine()
on Germaine()
-- Grab the localized version of several UI elements
set theBundle to path to application "Finder" --> an alias
-- set o's showViewOptions_loc to localized string "N35" in bundle theBundle
set o's kind_loc to localized string "N224" in bundle theBundle
set o's name_loc to localized string "N220" in bundle theBundle
set o's sortBy_loc to localized string "FR11" in bundle theBundle
set o's iCloudStatus_loc to localized string "N169.39" in bundle theBundle
set o's dateModified_loc to localized string "N169.30" in bundle theBundle -- alt N221
set o's dateCreated_loc to localized string "N169.31" in bundle theBundle -- alt N222
set o's dateLastOpened_loc to localized string "N169.32" in bundle theBundle
set o's dateAdded_loc to localized string "N169.38" in bundle theBundle -- alt N230
set o's size_loc to localized string "N169.33" in bundle theBundle -- alt N223
set o's version_loc to localized string "N169.34" in bundle theBundle -- alt N226
set o's comments_loc to localized string "N169.36" in bundle theBundle -- alt N227
set o's tags_loc to localized string "N169.37" in bundle theBundle -- alt N225
set o's alwaysOpenInListView_loc to localized string "VO15" in bundle theBundle
set o's browseInListView_loc to localized string "VO19" in bundle theBundle
--set o's hideToolbar_loc to localized string "FV1" in bundle theBundle
set o's showToolbar_loc to localized string "FV2" in bundle theBundle
--set o's hideStatusBar_loc to localized string "FV5" in bundle theBundle
set o's showStatusBar_loc to localized string "FV6" in bundle theBundle
--set o's hidePathBar_loc to localized string "FV11" in bundle theBundle
set o's showPathBar_loc to localized string "FV12" in bundle theBundle
set o's showSidebar_loc to localized string "FV13" in bundle theBundle
--set o's hideSidebar_loc to localized string "FV14" in bundle theBundle
--set o's hideTabBar_loc to localized string "FV18" in bundle theBundle
set o's showTabBar_loc to localized string "FV19" in bundle theBundle
--set o's hidePreview_loc to localized string "FV22" in bundle theBundle
set o's showPreview_loc to localized string "FV23" in bundle theBundle
-- CAUTION, now, some strings whose English spelling isn't reachable in resources
set aKey to "6.title"
set o's useAsDefaults_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "6.title". Define it here.
if o's useAsDefaults_loc = aKey then set o's useAsDefaults_loc to "Use as Defaults"
set aKey to "974.title"
set o's arrangeBy_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "974.title". Define it here.
if o's arrangeBy_loc = aKey then set o's arrangeBy_loc to "Arrange By:"
(*
-- we no longer use it
set aKey to "491.ibExternalAccessibilityDescription"
set o's smallSizeIcons_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- with old systems, in English, the resource isn't available -> "491.ibExternalAccessibilityDescription". Define it here.
if o's smallSizeIcons_loc = aKey then set o's smallSizeIcons_loc to "Small Size Icons"
*)
set aKey to "493.ibExternalAccessibilityDescription"
set o's largeSizeIcons_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- with old systems, in English, the resource isn't available -> "493.ibExternalAccessibilityDescription". Define it here.
if o's largeSizeIcons_loc = aKey then set o's largeSizeIcons_loc to "Large Size Icons"
set aKey to "52.title"
set o's textSize_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "52.title". Define it here.
if o's textSize_loc = aKey then set o's textSize_loc to "text size:" # À VÉRIFIER <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
log o's textSize_loc
set aKey to "191.title"
set o's textSize_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "191.title". Define it here.
if o's textSize_loc = aKey then set o's textSize_loc to "text size:" # À VÉRIFIER <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
log o's textSize_loc
set aKey to "101.title"
set o's textSize_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "101.title". Define it here.
if o's textSize_loc = aKey then set o's textSize_loc to "text size:" # À VÉRIFIER <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
log o's textSize_loc
set aKey to "396.title"
set o's textSize_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "396.title". Define it here.
if o's textSize_loc = aKey then set o's textSize_loc to "text size:" # À VÉRIFIER <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
log o's textSize_loc
set aKey to "54.title"
set o's useRelativeDates_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "54.title". Define it here.
if o's useRelativeDates_loc = aKey then set o's useRelativeDates_loc to "Use relative dates"
set aKey to "65.title"
set o's calculateAllSizes_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "65.title". Define it here.
if o's calculateAllSizes_loc = aKey then set o's calculateAllSizes_loc to "Calculate all sizes"
set aKey to "41.title"
set o's showIconPreview_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "41.title". Define it here.
if o's showIconPreview_loc = aKey then set o's showIconPreview_loc to "Show icon preview"
log o's showIconPreview_loc
set aKey to "402.title"
set o's showIconPreview_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "402.title". Define it here.
if o's showIconPreview_loc = aKey then set o's showIconPreview_loc to "Show icon preview"
log o's showIconPreview_loc
set aKey to "104.title"
set o's showIconPreview_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "104.title". Define it here.
if o's showIconPreview_loc = aKey then set o's showIconPreview_loc to "Show icon preview"
log o's showIconPreview_loc
set aKey to "205.title"
set o's showIconPreview_loc to localized string aKey from table "ViewOptionsWindow" in bundle theBundle
-- In English, the resource isn't available -> "205.title". Define it here.
if o's showIconPreview_loc = aKey then set o's showIconPreview_loc to "Show icon preview"
log o's showIconPreview_loc
-- Thanks to Shane Stanley this path was edited to accomodate newsystems
set theBundle to ((path to library folder from system domain as text) & "Frameworks:ApplicationServices.framework:Versions:Current:Frameworks:HIServices.framework:Versions:Current:Resources:") as «class furl»
set o's closeButton_loc to localized string "AXButton:AXCloseButton" from table "RoleDescriptions" in bundle theBundle --> "Bouton de fermeture"
end Germaine
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mercredi 1 janvier 2020 09:51:20