• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UI scripting "Show Infos"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI scripting "Show Infos"


  • Subject: UI scripting "Show Infos"
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 6 Jul 2006 18:55:57 +0200

Hello
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.

--[SCRIPT]
 property theApp : "Finder"


tell application theApp activate my cutIcon() end tell

on cutIcon()
tell application theApp
-- activate
tell application "System Events"
tell process theApp
set nomFenetre to name of window 1 --perhaps temporary
tell window 1
select button "image" of UI element 6 of UI element 5 --of window nomFenetre
--keystroke "x" using command down
my selectMenu(4, 3)
end tell -- window 1
end tell -- process theApp
end tell -- application System Events
end tell -- application theApp
end cutIcon


 on selectMenu(mt, mi)
 tell application theApp
 -- activate
 tell application "System Events"
 tell process theApp
 click menu item mi of (menu mt of menu bar 1)
 end tell -- process theApp
 end tell -- application System Events
 end tell -- application theApp
 end selectMenu
--[/SCRIPT]

Yvan KOENIG

_______________________________________________
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


  • Follow-Ups:
    • Re: UI scripting "Show Infos"
      • From: Bill Cheeseman <email@hidden>
    • Re: UI scripting "Show Infos"
      • From: kai <email@hidden>
  • Prev by Date: Folder actions
  • Next by Date: Re: Folder actions
  • Previous by thread: Re: UI scripting "Show Infos"
  • Next by thread: Re: UI scripting "Show Infos"
  • Index(es):
    • Date
    • Thread