It appears that processes with a GUI called through "osascript" cause the
cancellation of the F11 Desktop View. I tested with 4 different
widget.system() calls:
(1) /bin/date
(2) /bin/ls
(3) /usr/bin/osascript -->(iTunes)
(4) /usr/bin/osascript -->(Finder)
The second two cause F11 Desktop View to cancel while the first two do not.
Is there any known workaround for this? This could really sink the
acceptance of a dashboard widget if it disables the F11 Desktop View like
this. If users want to keep the widget permanently on their desktop, they
would have to give up their F11 Desktop View.
Brian
----Original Message Follows----
From: John Louch <email@hidden>
To: Brian Klock <email@hidden>, <email@hidden>
Subject: Re: Calling widget.system() and F11 Desktop view
Date: Tue, 15 Nov 2005 18:01:04 -0800
So it is not widget.system. I just wrote a widget that lets you type
anything in, and then calls widget.system on it.
I put in some simple commands like ls, etc. And Show Desktop was not
cancelled. Most likely the widget in question is causing some other app to
come to the front which causes show desktop to be canceled.
Thanks,
jl
> Aha. Yes, I am in developer mode so I can have all of my widgets showing
> even without the Dashboard Layer showing. With a widget showing in
> developer mode, when the widget makes a call to widget.system(), the F11
> Desktop View is cancelled if it was activated at that moment.
>
> (1) Open a widget (one that makes periodic calls to widget.system())
> (2) Drag it and press the F12 Dashboard Key while you're dragging it
> (3) Leave the widget visible on the desktop
> (4) Press F11 Desktop View
>
> ----> As soon as the widget makes a call to widget.system(), the F11
Desktop
> View is
> cancelled as if you pressed F11 again
>
> Brian
>
>
> ----Original Message Follows----
> From: John Louch <email@hidden>
> To: Brian Klock <email@hidden>, <email@hidden>
> Subject: Re: Calling widget.system() and F11 Desktop view
> Date: Tue, 15 Nov 2005 17:21:54 -0800
>
> I don't understand what you are saying. showing the widget layer cancels
> F11, show desktop. Can you give use reproducible steps of your problem?
>
> Thanks,
> jl
>
>> Has anyone found a way to prevent calls to widget.system() from
> cancelling
>> the F11 Desktop View? I can't think of a reason that Apple would write
> the
>> API that way, there must be a good reason I haven't thought up.
>>
>> As a user that is quite annoying, with a widget that runs a period
>> widget.system() script it more or less disables the F11 Desktop View.
>>
>> Brian
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Dashboard-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
>>
>> This email sent to email@hidden
>
> --------------------------------------------------
> John Louch Internet #: email@hidden
> (805) 541 2965
>
>
--------------------------------------------------
John Louch Internet #: email@hidden
(805) 541 2965
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden