I see what you’re hinting at, script Editor inserts the ‘rich’. It doesn’t seem to matter, tho, even tho it’s no longer necessary.
(Compiled with ‘Script Editor’.
property theYear : year of (current date)
property theMonth : month of (current date)
property theDays : day of (current date)
tell application "Mail"
set tempMonthMailbox to (my theMonth) as integer
if tempMonthMailbox < 10 then set tempMonthMailbox to "0" & tempMonthMailbox as rich text
if my theDays < 10 then set my theDays to "0" & my theDays as rich text
set tempDailyName to ((my theYear) & " " & tempMonthMailbox & " " & (my theDays) as rich text)
set tempYearString to ("Year " & (my theYear) as rich text)
#if not (exists mailbox tempYearString) then make new mailbox with properties {name:tempYearString}
#if not (exists mailbox tempMonthMailbox of mailbox tempYearString) then make new mailbox with properties {name:tempYearString & "/" & tempMonthMailbox}
#if not (exists mailbox tempDailyName of mailbox tempMonthMailbox of mailbox tempYearString) then
# NOTE the forward slash for El Capitan
make new mailbox with properties {name:tempYearString & "/" & tempMonthMailbox & "/" & tempDailyName & "/" as rich text}
end tell
On 3 Dec 2015, at 1:37 PM, Shane Stanley <
email@hidden> wrote:
On 3 Dec 2015, at 1:05 PM, Brian Christmas <
email@hidden> wrote:
Explorer 4 is altering just ‘text’ to ‘rich text’ when compiling code in ‘Mail’ for El Capitan.
It seems ‘rich’ is now redundant in code that addresses ‘Mail’.
Whilst it does not seem to alter the performance of the compelled code, should they be removed?
Can you post a sample snippet (from Script Editor)?
--
Shane Stanley <
email@hidden>
<
www.macosxautomation.com/applescript/apps/>