Re: me and my do not refer to your script's class
Re: me and my do not refer to your script's class
- Subject: Re: me and my do not refer to your script's class
- From: Dave <email@hidden>
- Date: Tue, 28 Dec 2010 12:55:28 -0600
On Dec 25, 2010, at 9:03 PM, Alex Zavatone wrote:
> I have found (and correct me if I am wrong) that you can't count on a log statement to properly create a string.
>
> Try creating a variable before and then logging that variable.
>
> Like so:
> set myString to current application's class "Test2AppDelegate" as string
> log myString
Back in the old pre-OS X days there were times I had to cast to string to get the log statement to work and yet in other cases doing so would create a casting error. Shane points out in his new PDF book that the Mac OS X Applescript log command internally uses NSLog(@"%@") which handles all object types. I can't remember if I've ever had to use the old type change idiom on Mac OS X, unless it was to intentionally see an item in a different form, of course. _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden