Re: UI scripting "Show Infos"
Re: UI scripting "Show Infos"
- Subject: Re: UI scripting "Show Infos"
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 07 Jul 2006 05:55:31 -0400
- Thread-topic: 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:
This email sent to email@hidden