• 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: Scripting Finder window column widths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Finder window column widths


  • Subject: Re: Scripting Finder window column widths
  • From: Gnarlodious <email@hidden>
  • Date: Wed, 21 Jun 2006 14:10:00 -0600

set showFolder to true -- open at startup
set folderName to "testfolder"
set folderPath to (path to desktop as string) & folderName & ":"

set desktopWidth to (word 3 of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w " & "Width")) as
number
set desktopHeight to (word 3 of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w " & "Height"))
as number

tell application "Finder"
	if not (exists folder folderName of desktop) then make new folder at
desktop with properties {name:folderName}
	if showFolder is true then
		open folderPath

		tell front window
			set toolbar visible to false
			set statusbar visible to false
			set sidebar width to 0
			set bounds to {33, 40, desktopWidth, desktopHeight}

			set current view to list view
			tell its list view options
				set icon size to large icon
				set visible of column kind column to false
				set visible of column size column to false
				--		set width of date column to 400
				set visible of column creation date column to true
				set visible of column comment column to true
				set width of column comment column to 200
				set sort column to name column
			end tell

			set current view to icon view
			tell its icon view options
				set icon size to 128
				set arrangement to arranged by name
			end tell

			close
		end tell

	end if
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Scripting Finder window column widths
      • From: Errol Sayre <email@hidden>
References: 
 >Scripting Finder window column widths (From: Errol Sayre <email@hidden>)

  • Prev by Date: Re: Currency Numbers
  • Next by Date: Re: Scripting Finder window column widths
  • Previous by thread: Re: Scripting Finder window column widths
  • Next by thread: Re: Scripting Finder window column widths
  • Index(es):
    • Date
    • Thread