Re: How to modify Grid Spacing ?
Re: How to modify Grid Spacing ?
- Subject: Re: How to modify Grid Spacing ?
- From: Robert Poland <email@hidden>
- Date: Thu, 20 Dec 2012 07:44:38 -0700
On Dec 20, 2012, at 2:54 AM, "koenig.yvan" <email@hidden> wrote:
>>
>> 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
>
Yvan,
I added a second "keystroke "j" using {command down}" to close the View Options window.
Unless I misunderstand, the numbers 1 and 2 are reversed on my machine.
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
-- set x to get value of slider 1 # To get the value in use in a window using default spacing
set value of slider 1 to 100
delay
set value of slider 2 to 24
end tell
keystroke "j" using {command down}
end tell
"Robert Poland - Fort Collins, CO
_______________________________________________
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