Re: ASOC, mail insert logo problem.
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