Bonjour,

J'ai un petit soucis avec mon AS
Je souhaiterai sauvegarder mon fichier pdf en pdf optimisé.
Donc premier code pour afficher la fenetre "enregistrer sous"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
tell application "System Events"
	tell application process "Acrobat"
		tell application "Adobe Acrobat Pro" to activate
		tell menu bar 1
			tell menu bar item "Fichier"
				tell menu 1
					click menu item "Enregistrer sous..."
				end tell
			end tell
		end tell
	end tell
end tell
Jusque la pas de soucis

Il me reste a changer le format de fichier ... et la ca se complique
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
tell application "System Events"
	tell application process "Acrobat"
		tell application "Adobe Acrobat Pro" to activate
		tell window "Enregistrer sous"
			tell group "Format :"
				tell pop up button "Fichiers Adobe PDF"
					click menu item "Fichiers Adobe PDF, optimisés"
				end tell
			end tell
		end tell
	end tell
end tell
ne fonctionne pas .......

Pour info, mon Assessibility Inspector est le suivant :
<AXApplication: "Acrobat">
<AXWindow: "Enregistrer sous">
<AXGroup: "Format :">
<AXPopUpButton: "Fichiers Adobe PDF">

Attributes:
AXRole: "AXPopUpButton"
AXRoleDescription: "bouton de menu local"
AXHelp: "(null)"
AXEnabled: "true"
AXFocused (W): "false"
AXParent: "<AXGroup: "Format :">"
AXWindow: "<AXWindow: "Enregistrer sous">"
AXTopLevelUIElement: "<AXWindow: "Enregistrer sous">"
AXPosition: "x=1079.63 y=691"
AXSize: "w=318 h=26"
AXValue: "Fichiers Adobe PDF"
AXChildren: "<array of size 0>"

Actions:
AXShowMenu - Afficher le menu
AXPress - appuyer

Warnings:
AXDescription or AXTitleUIElement: Missing.

Optional Attributes:
AXDescription
AXTitleUIElement
AXLinkedUIElements
AXValueDescription
Avez-vous une idée de ce que je fais mal ????

Merci d'avance

Thais