Re: set width of column id size column
Re: set width of column id size column
- Subject: Re: set width of column id size column
- From: rpoland <email@hidden>
- Date: Mon, 02 May 2016 11:40:49 -0600
- Z-usanet-msgid: XID842ueBROY5728X34
> On May 2, 2016, at 10:15:AM, Yvan KOENIG <email@hidden> wrote:
>
>
>> 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) rundi 2 mai 2016 18:15:07
Thanks Yvan,
I noticed that you changed 180 to 80.
When I run the script the width changes to 80 regardless what the width is set to AND regardless whether I use or don't use ID.
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