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: Calling widget.system() and F11 Desktop view



I don't think there is a workaround though I will ponder it.

Thanks,
jl

> I'll file a bug.  Any idea of a workaround?  Is there any way other than
> calling "osascript" to get information from applications like Finder,
> iTunes, etc.?
> 
> This is a serious problem.  Even without Dashboard's devmode enabled, the
> widget environment still exhibits the same behavior.  I see a lot of widgets
> out there that are probably using AppleScript in some way.
> 
> 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 21:09:43 -0800
> 
> 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.
>> 
>> Brian
>> 
>> 
>> widget.system(
>> "/usr/bin/osascript"+
>> " -e 'tell application \"iTunes\"'"+
>> " -e 'name of current track'"+
>> " -e 'end tell'",
>> null);
>> widget.system(
>> "/usr/bin/osascript"+
>> " -e 'tell application \"Finder\"\n"+
>> "\"\"&startup disk\n"+
>> "end tell\n'",
>> null);
>> widget.system("/bin/date", null);
>> widget.system("/bin/ls", null);
>> 
>> 
>> ----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 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>,
> <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


 _______________________________________________
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

References: 
 >Re: Calling widget.system() and F11 Desktop view (From: "Brian Klock" <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.