• 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: Setting Finder Column width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Finder Column width


  • Subject: Re: Setting Finder Column width
  • From: Robert Poland <email@hidden>
  • Date: Sat, 04 Oct 2014 18:06:35 -0600

On Oct 4, 2014, at 4:57:PM, Christopher Stone <email@hidden> wrote:

> On Oct 04, 2014, at 10:46, Robert Poland <email@hidden> wrote:
>> Is there any way to control width of, for example, the name column?
> ______________________________________________________________________
>
> Hey Bob,
>
> Same old, same old...
>
> No.  There's no way to do that natively.
>
> System Events can detect the separator though:
>
> -------------------------------------------------------------------------------------------
> tell application "System Events"
>   set quit delay to 0
>   tell application process "Finder"
>     set frontmost to true
>     tell window 1
>       tell image 2 of UI element 1 of row 1 of outline 1 of scroll area 2 of splitter group 1
>         set {xPosition, yPosition} to position
>         set {xSize, ySize} to size
>       end tell
>       set {xPosition, yPosition} to {xPosition + (xSize div 2), yPosition + (ySize div 2)}
>     end tell
>   end tell
> end tell
> do shell script "/usr/local/bin/cliclick c:" & xPosition & "," & yPosition & " w:100 c:. c:."
> -------------------------------------------------------------------------------------------
>
> Unfortunately I can't get this to work.
>
> I tried without success to have System Events do the clicks, but no go.
>
> CliClick clicks at the correct spot, but the resize doesn't happen.  Damn it.
>
> If anyone can make this work I'd like to know.
>
> --
> Best Regards,
> Chris

Chris,

try this; For some reason this won’t work when run from Smile but does work from Applescript Editor AND as an app.

# NOTE: THIS SCRIPT MAY DEPEND ON Cliclick 2.3.1

tell application "System Events"
	tell application process "Finder"
		set frontmost to true
	end tell
end tell

tell application "Finder"
	tell window 1
		set {leftEdge, topSide, null, null} to bounds
		set xPosition to (leftEdge + 54) as integer
		set yPosition to (topSide - 11) as integer
		delay 1
		tell me to do shell script "cliclick w:100 c:" & xPosition & "," & yPosition # move to green button
	end tell
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


  • Follow-Ups:
    • Re: Setting Finder Column width
      • From: Christopher Stone <email@hidden>
References: 
 >Setting Finder Column width (From: Robert Poland <email@hidden>)
 >Re: Setting Finder Column width (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Setting Finder Column width
  • Next by Date: Re: Setting Finder Column width
  • Previous by thread: Re: Setting Finder Column width
  • Next by thread: Re: Setting Finder Column width
  • Index(es):
    • Date
    • Thread