Bonjour,
Je suis en train de programmer un script d'automatisation de QuarkXPress.
Dans une partie du programme, j'associe à une picture box une image choisie par l'utilisateur :
set image to (choose file with prompt "choisissez une image")
puis ensuite :
tell application "QuarkXPress Passport"
tell picture box "my_picture_box"
set contents of image 1 to image
end tell
end tell
(la picture box a été nommée au préalable)
Jusque là tout va bien
Le problème vient ensuite : j'ai besoin de changer l'image que je viens de définir. J'essaye donc betement :
set image2 to (choose file with prompt "choisissez une image")
tell application "QuarkXPress Passport"
tell picture box "my_picture_box"
set contents of image 1 to image2
end tell
end tell
Sauf que ça, et bah ça marche pas
Si vous avez une idée du problème, un peu d'aide serait bienvenue!
Merci d'avance,
Adrien
Je suis en train de programmer un script d'automatisation de QuarkXPress.
Dans une partie du programme, j'associe à une picture box une image choisie par l'utilisateur :
set image to (choose file with prompt "choisissez une image")
puis ensuite :
tell application "QuarkXPress Passport"
tell picture box "my_picture_box"
set contents of image 1 to image
end tell
end tell
(la picture box a été nommée au préalable)
Jusque là tout va bien
Le problème vient ensuite : j'ai besoin de changer l'image que je viens de définir. J'essaye donc betement :
set image2 to (choose file with prompt "choisissez une image")
tell application "QuarkXPress Passport"
tell picture box "my_picture_box"
set contents of image 1 to image2
end tell
end tell
Sauf que ça, et bah ça marche pas
Merci d'avance,
Adrien