Bonjour,
Je galère sur un script que je veux mettre en action de dossier. J'ai un DD externe. Je veux modifier se fenêtres (taille de la fenêtre, des icones, présentation en icone et image de fond de fenêtre. J' ai fait un script qui fonctionne parfaitement, mais…seulement à partir de la seconde ouverture du dossier. Donc, à chaque fois que je démonte et remonte le disque, à la première ouverture, j'ai tout perdu. Pouvez-vous m'expliquer ? merci
Voici mon script
on opening folder the_folder
tell application "Finder"
activate
set the bounds of the first window to {0, 0, 1440, 900}
set current view of the first window to icon view
set sidebar width of the first window to 0
set icon size of icon view options of the first window to 240
set arrangement of icon view options of the first window to snap to grid
set background picture of icon view options of front window to "Volumes:CAROLE:A:Fonds fenêtres:danse pieds.jpg" as alias
end tell
end opening folder
Je galère sur un script que je veux mettre en action de dossier. J'ai un DD externe. Je veux modifier se fenêtres (taille de la fenêtre, des icones, présentation en icone et image de fond de fenêtre. J' ai fait un script qui fonctionne parfaitement, mais…seulement à partir de la seconde ouverture du dossier. Donc, à chaque fois que je démonte et remonte le disque, à la première ouverture, j'ai tout perdu. Pouvez-vous m'expliquer ? merci
Voici mon script
on opening folder the_folder
tell application "Finder"
activate
set the bounds of the first window to {0, 0, 1440, 900}
set current view of the first window to icon view
set sidebar width of the first window to 0
set icon size of icon view options of the first window to 240
set arrangement of icon view options of the first window to snap to grid
set background picture of icon view options of front window to "Volumes:CAROLE:A:Fonds fenêtres:danse pieds.jpg" as alias
end tell
end opening folder
Dernière édition: