This looks like a bug in osascript. Please write up a bug.
Thanks,
jl
I tried turning off Dashboard's devmode and F11 Desktop View is still
cancelled by the widget's calls to widget.system(). This would be
a problem
for any widget utilizing AppleScript to the desktop applications
(some of
the most useful widgets). There's no logical reason that this
should be the
behavior, since the widget.system() calls are only retrieving
information
and not changing anything onscreen.
A workaround is needed since this behavior has already shipped in
MacOS X.
Below are the widget.system() calls.
Dashboard's devmode is fantastic. It should be made a core
feature that is
enabled by default. So many widgets I've seen are far less useful
if you
have to search for your F12 key every time you want to just take a
glance at
them.
----Original Message Follows----
From: John Louch <email@hidden>
To: Brian Klock <email@hidden>, <dashboard-
email@hidden>
Subject: Re: Calling widget.system() and F11 Desktop view
Date: Tue, 15 Nov 2005 20:25:37 -0800
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.
What are the scripts that are being called?
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>, <dashboard-
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/ouch%
40apple.com
This email sent to email@hidden
--------------------------------------------------
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/kazezb%
40carleton.edu
This email sent to email@hidden
_______________________________________________
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