J'ai besoin d'aide pour le script Apple. Je ne suis pas expert en la matière. Le script est le suivant:Modifier les limites d'une fenêtre
(*
This Apple script will resize any program window to an exact size and the window is then moved to the center of your screen.
Specify the program name, height and width below and run the script.
Written by Amit Agarwal on December 10, 2013
*)
set theApp to "Finder"
set appHeight to 412
set appWidth to 678
tell application "Finder"
set screenResolution to bounds of window of desktop
end tell
set screenWidth to item 3 of screenResolution
set screenHeight to item 4 of screenResolution
tell application theApp
activate
reopen
set yAxis to (screenHeight - appHeight)/2 as integer
set xAxis to (screenWidth - appWidth)/2 as integer
set the bounds of the first window to {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
tell application "Finder" to set the sidebar width of every Finder window to 142
end tell
Je voudrais redimensionner le Finder, mais sans le centrer sur l'écran. C'est possible?
Merci pour la réponse, mais je sloved de cette façon: À la fin je devais juste ajouter Apple Script Editor.app dans le panneau Préférences Système: Sécurité et confidentialité ➡ Confidentialité ➡ Accessibilité. ︎ –
user5520752
C'est bien si cela fonctionne pour vous. Cela ne fonctionnera pas lorsque vous changez d'application. Si l'application est scriptable, il est préférable d'éviter d'utiliser les scripts d'interface utilisateur. – jweaks