• 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: Attach a file to a mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attach a file to a mail


  • Subject: Re: Attach a file to a mail
  • From: Norio Ota <email@hidden>
  • Date: Mon, 11 Jul 2005 16:46:48 +0900

On 2005年 7月 11日 , at 00:21 PM, Chris Espinosa wrote:
On Jul 10, 2005, at 6:04 PM, Norio Ota wrote:

My CFM-app made by CW8 sends an AppleEvent to Mail.app and makes it send a mail with attaching a file.
The app has been working with no complain so far. However when I ported it to Xcode, only the feature of attaching a file doesn't work.


The dictionary of Mail.app says an attachment should be specified its path by string, but if the path included Japanese character it didn't work before. So I've been passing the alias handle instead of path string after that, and it's been working well as I mentioned above.

Is there any differences related with attaching files between CW8-build and Xcode-build ?
What do you think I should consider about?
Do you think it's OK to post this to Carbon list, too?

It's possible that there's a latent bug in your code that Xcode's gee compiler has exposed, or possibly gcc is generating wrong code, but it's more likely that some other variable (e.g. the headers changed, linking is not set up right, etc.) is making the difference here.


The best thing to do is to capture (using the AEDebug mechanism) the events that both your CFM and Mach-O apps are sending to create and attach
a message to Mail, and if they're different, post the results -- with a snippet of code that generates the Apple event -- to both the Carbon list and this one.



Thanks, Chris!
I found out what was wrong. I set an AEKeyword variable to -1. CW can set it to -1 but Xcode can't. I guess AEKeyword must be unsigned long but I set -1.
I could solve the problem with your suggestion of using AEDebug mechanism.
I haven't even known the way to debug AppleEvent.
Thank you!
Norio Ota


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Attach a file to a mail (From: Norio Ota <email@hidden>)
 >Re: Attach a file to a mail (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: GCC issue: No error on in-class initialization of non-integral static const variables
  • Next by Date: Re: Source file names in binary
  • Previous by thread: Re: Attach a file to a mail
  • Next by thread: GCC issue: No error on in-class initialization of non-integral static const variables
  • Index(es):
    • Date
    • Thread