Re: Setting Position attribute of a AXFinderItem (desktop Icon)
Re: Setting Position attribute of a AXFinderItem (desktop Icon)
- Subject: Re: Setting Position attribute of a AXFinderItem (desktop Icon)
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 18 Nov 2005 15:28:09 -0500
- Thread-topic: Setting Position attribute of a AXFinderItem (desktop Icon)
on 2005-11-18 9:27 AM, Scott Mitchell at email@hidden wrote:
> 1) I can not seem to find where AXFinderItem is defined, if I run the App
> UIElementInspector that Apple put out as an example I see it listed in there
> when I hover
> my mouse over a Finder Item on the desktop, but can not find the definition
> for it anywhere in the code.
I tried to find it a long time ago, but could not. My conclusion is that the
Finder defines it internally, in code, and that you cannot get at it from
outside the Finder.
> 2) I can not seem to set a position for an AXFinderItem. I call
> err = AXUIElementIsAttributeSettable( newElement, kAXPositionAttribute,
> &theSettableFlag );
> too see if the attribute is settable but it return theSettableFlag = False
>
> So according to the post I got back (link below) I should be able to set this
> attribute.
I understood Mr. Louch's message to say that you can NOT set the position
attribute of an AXFinderItem, for just the reason you mention -- the
position attribute is not settable.
I believe Mr. Louch was telling you that you can set the position of an icon
on the desktop using traditional Finder scripting, if the desktop is set to
a non-arranged icon view. Something like this:
tell application "Finder"
set position of item 1 of desktop to {100, 100}
end tell
Unfortunately, that piece of the Finder's AppleScript implementation seems
to be broken.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden