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: Yvan KOENIG <email@hidden>
- Date: Mon, 02 May 2016 23:22:49 +0200
> Le 2 mai 2016 à 23:04, rpoland <email@hidden> a écrit :
>
>
>> On May 2, 2016, at 2:51:PM, Yvan KOENIG <email@hidden> wrote:
>>
>>
>>> Le 2 mai 2016 à 19:40, rpoland <email@hidden> a écrit :
>>>
>>>
>>>> …
>>>
>>> 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.
>>>
>>
>> I used different values to check that it worked.
>>
>> Here is the full script which I used :
>>
>> tell application "Finder"
>> set theFolder to target of window 1 as alias
>> tell list view options of window 1
>> get width of column size column # for test only
>> set width of column size column to 280
>> end tell
>> close window 1
>> open theFolder
>> tell list view options of window 1 # for test only
>> get width of column size column # for test only
>> end tell # for test only
>> end tell
>>
>> and here is the events log.
>>
>> tell application "Finder"
>> get target of window 1
>> --> alias "SSD 500:Users:userName:Desktop:Import:"
>> get width of column size column of list view options of window 1
>> --> 80
>> set width of column size column of list view options of window 1 to 280
>> --> 280
>> close window 1
>> --> {}
>> open alias "SSD 500:Users:userName:Desktop:Import:"
>> get width of column size column of list view options of window 1
>> --> 280
>> end tell
>>
>>
>> In your original message you wrote that your script failed with an error message.
>> As I saw an anomalie in the main instruction, I directly ran the script without « id » and it worked.
>> So I thought that the extraneous « id » was the wrongdoer.
>>
>> After reading your late message, I added « id » for see.
>> The script worked flawlessly so, this extraneous « id » wasn’t the wrongdoer and I have no idea of what what the real one.
>>
>>
>> Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) rundi 2 mai 2016 22:50:01
>
> Regardless of what the events log says the size column MEASURES 85, not 280.
>
> Robert Poland
> Fort Collins, CO
>
Right - but wrong.
On my machine, the script continue to state 280 but the width is 110 which is the greater value which I can set by hand too.
To be precise, here, the width is constrained between 75 and 110.
A date column is constrained in the range 100 thru 350.
A Type column is constrained in the range 60 thru 200.
As a collateral effect, running the script changes the width of the column Name so that the entire width of the window is used by the different columns.
Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) lundi 2 mai 2016 23:22:42
_______________________________________________
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