• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to modify Grid Spacing ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to modify Grid Spacing ?


  • Subject: Re: How to modify Grid Spacing ?
  • From: "koenig.yvan" <email@hidden>
  • Date: Thu, 20 Dec 2012 16:27:12 +0100


Le 20/12/2012 à 10:54, koenig.yvan <email@hidden> a écrit :


Le 20/12/2012 à 09:42, emile.a.schwarz <email@hidden> a écrit :


Maybe this one is cleaner

activate application "Finder"
tell application "System Events" to tell application process "Finder"
if not (exists (first window whose subrole is "AXSystemFloatingWindow")) then
keystroke "j" using {command down}
repeat until exists (first window whose subrole is "AXSystemFloatingWindow")
delay 0.1
end repeat
end if
tell (first window whose subrole is "AXSystemFloatingWindow") to tell first group
get value of slider 2 # To get the value in use in a window using default spacing
set value of slider 2 to 54.0
end tell
end tell

Yvan KOENIG (VALLAURIS, France) jeudi 20 décembre 2012 10:48:29

Oops

Robert Poland was fair enough to tell me off thread that I triggered the wrong slider.
Slider 2 rules the icon size, not the icon spacing.

Here is a revised script which also take care to close the floating window if it was hidden on entry.

When I will have time available, I will add code checking the display mode in use and will switch to "icons mode" if it wasn't active on entry then will reset the original mode on exit.

Yvan KOENIG (VALLAURIS, France) jeudi 20 décembre 2012 16:26:31



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >How to modify Grid Spacing ? (From: "emile.a.schwarz" <email@hidden>)
 >Re: How to modify Grid Spacing ? (From: "koenig.yvan" <email@hidden>)
 >Re: How to modify Grid Spacing ? (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: How to modify Grid Spacing ?
  • Next by Date: Re: How to modify Grid Spacing ?
  • Previous by thread: Re: How to modify Grid Spacing ?
  • Next by thread: Re: How to modify Grid Spacing ?
  • Index(es):
    • Date
    • Thread