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: Alex Zavatone <email@hidden>
- Date: Sat, 25 Dec 2010 21:03:34 -0600
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
Try that out.
On Dec 25, 2010, at 8:57 PM, Dave wrote:
> The following causes nothing to happen, not even a log message. It's as though Applescript is treating it as a call to a run handler (which would explain the silence) instead of an Objective-C method invoke.
>
>> performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)
>
>
> The following lines all print out: <Test2AppDelegate @0x2005fabe0: OSAID(5)>
>
> on applicationWillFinishLaunching_(aNotification)
>
> log me
> log |description|()
> log me's |description|()
>
> But the following lines print: Test2AppDelegate
>
> on applicationWillFinishLaunching_(aNotification)
>
> log current application's class "Test2AppDelegate"
> log current application's class "Test2AppDelegate"'s |description|()
>
> And "me" tests not equal to the longer expression, so these can't be the same objects.
>
> -- Dave
>
> On Dec 25, 2010, at 7:03 PM, Shane Stanley wrote:
>
>> On 26/12/10 9:29 AM, "Dave" <email@hidden> wrote:
>>
>>> I wanted to call a handler after a 5 second delay so I tried:
>>>
>>> my's performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)
>>
>> Id there some reason you couldn't simply use:
>>
>> performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)
>
>
> -- Dave
>
> _______________________________________________
> 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
_______________________________________________
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