Re: Apple Mail column widths change every day
Re: Apple Mail column widths change every day
- Subject: Re: Apple Mail column widths change every day
- From: Robert Poland <email@hidden>
- Date: Mon, 21 May 2018 15:08:30 -0600
- Z-usanet-msgid: XID244weuVif6192X31
> On May 21, 2018, at 7:36 AM, Luther B. Fuller <email@hidden> wrote:
>
> On May 20, 2018, at 4:45 PM, Robert Poland wrote:
>
>> Columns From, Date Received, Subject, Mailbox…
>> Has anyone tried to control the column widths in the classic view of Apple
>> Mail?
>> Is there a fix?
>
> Here's some scripting I use with Mail ...
>
>> tell application "Mail"
>> activate
>> try
>> set frontViewer to (some message viewer whose index is
>> 1)
>> on error
>> error "A message viewer window must be open and
>> frontmost in Mail."
>> end try
>> visible columns of frontViewer
>> if {date sent column} is not in the result then
>> set visible columns of frontViewer to (the result &
>> {date sent column})
>> end if
>> set sort column of frontViewer to date sent column
>> set sorted ascending of frontViewer to false
>> --
>> set updatePrefs to false
>> set acntList to accounts as list
>> repeat with anAcnt in acntList
>> if not (move deleted messages to trash of anAcnt) then
>> set updatePrefs to true
>> if (empty trash frequency of anAcnt) ≠ -1 then set
>> updatePrefs to true
>> if (empty sent messages frequency of anAcnt) ≠ -1 then
>> set updatePrefs to true
>> if updatePrefs then exit repeat
>> end repeat
>> if not updatePrefs then return -- the mailbox behaviors are
>> correct and do not need to be changed
>> --
>> set acntNameList to name of accounts as list
>> quit
>> end tell
>
>
> I have not tried to change the column widths in Mail, but you can try you
> insert
> such a command and see if it works. It may be similar to a Finder column
> width command ...
>
> tell application "Finder"
> ...
> set width of column name column of list view
> options of winRef to 300
>
> Hope this helps.
Thanks,
Couldn’t find a working combo...
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