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: UI scripting "Show Infos"



on 2006-07-06 12:55 PM, Yvan KOENIG at email@hidden wrote:

> here is a piece of code I grabbed from a script I¹m working on.
> 
> As is, it assumes that a folder¹s «Show infos» window is at front (Mac
> OS X 10.3.9)
> 
> I don¹t understand what is wrong, the folder¹s icon is NOT selected so
> the cut attempt don¹t work.

Are you trying to copy the folder icon to the clipboard? If so, I think you
need to click the Copy menu item instead of the Cut menu item. The Finder
disables the Cut menu item when you select the folder icon in the Get Info
window.

Here's a simplified version of your script. It works, when I run it under
Mac OS X 10.4. It should work under 10.3.9, as well.

activate application "Finder"
tell application "System Events"
    tell process "Finder"
        select button 1 of scroll area 1 of window "UI Browser 2.0b5 Info"
        keystroke "c" using {command down}
    end tell
end tell

--

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.
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: 
 >UI scripting "Show Infos" (From: Yvan KOENIG <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.