Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the results out of Applescript



On 1/7/06, Mike Abdullah <email@hidden> wrote:
> I suppose it could well be.  I have to admit that on the whole I have
> relatively little experience with Cocoa (this is sort of a started project
> for me!).
>
> Basically, I have theResult which is the result of executing an
> NSApplescript.  I was then using the following:
>
>  NSLog("Result: %d", [theResult stringValue])
>
> This way I figured I could just look at the result in the log window.  Does
> this mean that I'm actually just using NSLog incorrectly?  Have I
> misunderstood the way this is used, and so in fact I should really be using
> something other than %d?
>
> Either way, muchos gracias for the help!
>

string value returns an NSString.  Use %@ to log NSStrings.

-Mark
Learning his way through life
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Re: Getting the results out of Applescript (From: Mike Abdullah <email@hidden>)



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.