Hi,

In AppleScript a Record is Dictionary, but the “keys” have to be hard coded, 
for example:


property pMessageDictionary : {kMessageID:"", kMessageClass:"", 
kMessageSubject:"", kMessagePlainContent:"", kMessageHTMLContent:"", 
kMessageRecipientArray:{}}

set kMessageSubject of pMessageDictionary of me to the subject of myMessage


I’m using the AppleScript-ObjC Bridge to call a Script in a .applescript file 
in my XCode Project, I’m wondering if there is anyway of using a variable as 
the Key? e.g. the equivalent of:

NSString*       myKey;

myKey = <get the Key somehow>

[self.pMessageDictionary setObject:@“HELLO WORLD” forKey:myKey]; 

Thanks a lot, All the Best
Dave


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to