I'm trying to expand my Save As script to Final Cut Pro X.
Alas, I don't own this app so I'm not sure of the menu items available in its File menu.
Here is a short script able to give the wanted infos.
I hope that one of you will be fair enough to run it and post the returned list.
I'm not sure that the app's name is spelled the correct way. Capitalization is meaningful for System Events.
--{code}
set theApp to "Final Cut Pro X" -- Was "iBooks Author" Final Cut Pro X
set mt to 3
activate application theApp
tell application "System Events" to tell process theApp to tell menu bar 1
get name of menu bar items
--> {"Apple", "iBooks Author", "Fichier", "Édition", "Insertion", "Format", "Disposition", "Présentation", "Fenêtre", "Partager", "Aide"}
get name of menu bar item mt
--> {"Fichier"}
tell menu bar item mt to tell menu 1
get name of menu items
--> {"Nouveau", "Créer à partir de la liste de modèles…", missing value, "Ouvrir…", "Ouvrir un fichier récent", missing value, "Fermer", "Tout fermer", "Enregistrer…", "Dupliquer", "Faire revenir le document à une version précédente...", "Exporter…", missing value, "Enregistrer comme modèle…", missing value, "Publier…", missing value, "Aperçu", "Aperçu de la section active uniquement", missing value, "Imprimer…"}
--> {"Nouveau", "Créer à partir de la liste de modèles…", missing value, "Ouvrir…", "Ouvrir un fichier récent", missing value, "Fermer", "Tout fermer", "Enregistrer une version", "Dupliquer", "Faire revenir le document à une version précédente...", "Exporter…", missing value, "Enregistrer comme modèle…", missing value, "Publier…", missing value, "Aperçu", "Aperçu de la section active uniquement", missing value, "Imprimer…"}
end tell -- menu bar…
end tell -- System Events
--{code}
The script embed what I get with iBooks Author.
No problem if the menu items are the English ones.
Thanks in advance.