• 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: Explorer 4 is inserting 'rich text' in El Capitan Mail script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Explorer 4 is inserting 'rich text' in El Capitan Mail script


  • Subject: Re: Explorer 4 is inserting 'rich text' in El Capitan Mail script
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 03 Dec 2015 13:51:52 +1100

G’day Shane.

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.

Regards

Santa

(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/>


 _______________________________________________
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: Explorer 4 is inserting 'rich text' in El Capitan Mail script
      • From: Shane Stanley <email@hidden>
References: 
 >Explorer 4 is inserting 'rich text' in El Capitan Mail script (From: Brian Christmas <email@hidden>)

  • Prev by Date: Explorer 4 is inserting 'rich text' in El Capitan Mail script
  • Next by Date: Re: Explorer 4 is inserting 'rich text' in El Capitan Mail script
  • Previous by thread: Explorer 4 is inserting 'rich text' in El Capitan Mail script
  • Next by thread: Re: Explorer 4 is inserting 'rich text' in El Capitan Mail script
  • Index(es):
    • Date
    • Thread