• 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: ASOC, mail insert logo problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASOC, mail insert logo problem.


  • Subject: Re: ASOC, mail insert logo problem.
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 11 Dec 2012 17:09:02 +1100


On 11/12/2012, at 4:13 PM, Shane Stanley <email@hidden> wrote:

On 11/12/2012, at 2:54 PM, Brian Christmas <email@hidden> wrote:

The lines I'm referring too are

set logoPath to MailManagerDesktopFolderPath & ":Logo.png"
set logoPath to (POSIX path of logoPath)  as POSIX file

Add a log line and make sure logoPath is what you think it is. I don't see MailManagerDesktopFolderPath being defined anywhere.

You might also get away with "set logoPath to (POSIX path of logoPath)"; where dictionaries specify a "file", in most cases these days they'll accept just a POSIX path.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

Thanks Shane

Problem solved with a pair of curled brackets, and moving the 'as POSIX file'.

Regards

Santa.


        try
set logoPath to MailManagerDesktopFolderPath & ":Logo.png"
set logoPath to  POSIX path of logoPath  
         on error
         set LogoPath to ""
end try
tell application "Mail"
activate


tell newMessage
try
make new attachment with properties {file name: {logoPath as POSIX file }} at before the first paragraph
end try


 _______________________________________________
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

References: 
 >ASOC, mail insert logo problem. (From: Brian Christmas <email@hidden>)
 >Re: ASOC, mail insert logo problem. (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: ASOC, mail insert logo problem.
  • Next by Date: Re: Scripts folder for applications
  • Previous by thread: Re: ASOC, mail insert logo problem.
  • Next by thread: create Evernote-Tags with AppleScript
  • Index(es):
    • Date
    • Thread