• 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: set width of column id size column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set width of column id size column


  • Subject: Re: set width of column id size column
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 02 May 2016 18:15:28 +0200


Le 2 mai 2016 à 17:54, Robert Poland <email@hidden> a écrit :

Hi,

Why doesn't this script work? There is a window 1.

tell application "Finder"
tell list view options of window 1
set width of column id size column to 180
end tell
end tell

ERROR (Gibberish) LOG:
tell application "Finder"
set width of column id size column of list view options of window 1 to 180
--> error number -1728 from window 1
Result:
error "Finder got an error: Can’t set window 1 to 180." number -10006 from window 1

It fails because you don't use the correct syntax.

Remove id and you will get the correct syntax:

set width of column id size column to 180

This said, you will just have a script which no longer issue an error.

Because an old bug/feature, the defined width will not be applied on the screen.

I was forced to used this code to get the width to apply.

tell application "Finder"
set theFolder to target of window 1 as alias
tell list view options of window 1
set width of column size column to 80
end tell
close window 1
open theFolder
end tell


Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) lundi 2 mai 2016 18:15:07




 _______________________________________________
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: set width of column id size column
      • From: rpoland <email@hidden>
References: 
 >set width of column id size column (From: Robert Poland <email@hidden>)

  • Prev by Date: set width of column id size column
  • Next by Date: Re: set width of column id size column
  • Previous by thread: set width of column id size column
  • Next by thread: Re: set width of column id size column
  • Index(es):
    • Date
    • Thread