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: Forcing a unique reference



I am not an expert in AppleScript, but ... once you have list of processes, can't you iterate through this list, find the one you are looking for and than use this object (process) in to do what ever you do to make widget to show up?

Sorry, if I am completely off the mark.

On Jul 28, 2006, at 11:06 AM, Daniel Jalkut wrote:


I've come up with a pretty cool trick for accomplishing something I've always wanted: keyboard toggling of just a single Dashboard Widget, outside the context of the Dashboard.


Problem is, it only works on the first widget Dashboard knows about? Why? Because all dashboard application instances are of this reference form:

application process "DashboardClient" of application "System Events"

So even though I can get a list of all processes 'whose name is "DashboardClient"', as soon as I try to communicate to that application process through System Events, I end up talking to the first one it knows about.

Is there any way to force a more explicit reference to the items being returned by System Events?

I know this is a longshot but I thought somebody might have a clever idea.

Daniel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/andrei% 40tchijov.com


This email sent to email@hidden

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

This email sent to email@hidden
References: 
 >Forcing a unique reference (From: Daniel Jalkut <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.