| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 2007-03-11, at 02:45, Ivan C Myrvold wrote:
From the call above, for a simple reply that you expect to return a text value (or even numbers), it would be: err = AEGetParamDesc( &reply, keyDirectObject, typeUnicodeText, &desc ); IOW, AEGetParamDesc() will attempt to coerce the direct object to a type you desire. For an unknown reply type, then you can proceed with: err = AEGetParamDesc( &reply, keyDirectObject, typeWildCard, &desc ); This will return the actual type of the the direct parameter. You can then look at UTCreateStringForOSType( desc.descriptorType ) to see the real type and branch on it to handle various data types. Philip Aker |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden This email sent to email@hidden
| References: | |
| >Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>) | |
| >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>) | |
| >Re: Extract text out of NSAppleEventDescriptor (From: Philip Aker <email@hidden>) | |
| >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>) | |
| >Re: Extract text out of NSAppleEventDescriptor (From: Philip Aker <email@hidden>) | |
| >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.