FROM : Brian Webster
DATE : Sat Nov 02 17:14:18 2002
On Saturday, November 2, 2002, at 12:00 AM,
<email_removed> wrote:
> I'm trying to send an AppleEvent to the currently active app to do a
> "Select All" type of action. I'm currently using the below, but there
> is something wrong with it. It gets all the way through to the end of
> the method but doesn't seem to do anything.
It looks to me like you're trying to send an Apple event using Carbon
event constants. Sorry, but this just isn't going to work. Apple
events and Carbon events have some similarities, but the mechanisms for
the two are entirely different, and there's no way to send a Carbon
event to an application other than your own. You could probably alter
the selection in some apps that have support for it in their scripting
dictionary, but there's no magic event that can be sent to a remote app
that says "select all".
--
Brian Webster
<email_removed>
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 02 17:14:18 2002
On Saturday, November 2, 2002, at 12:00 AM,
<email_removed> wrote:
> I'm trying to send an AppleEvent to the currently active app to do a
> "Select All" type of action. I'm currently using the below, but there
> is something wrong with it. It gets all the way through to the end of
> the method but doesn't seem to do anything.
It looks to me like you're trying to send an Apple event using Carbon
event constants. Sorry, but this just isn't going to work. Apple
events and Carbon events have some similarities, but the mechanisms for
the two are entirely different, and there's no way to send a Carbon
event to an application other than your own. You could probably alter
the selection in some apps that have support for it in their scripting
dictionary, but there's no magic event that can be sent to a remote app
that says "select all".
--
Brian Webster
<email_removed>
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Paul Haddad | Nov 2, 05:48 | |
| Brian Webster | Nov 2, 17:14 |






Cocoa mail archive

