• 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
Scripting Finder's Information Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Finder's Information Window


  • Subject: Scripting Finder's Information Window
  • From: "Jonathan Levi, M.D." <email@hidden>
  • Date: Sat, 31 May 2008 09:19:37 -0400

HELLO,

How can I script the Finder to select a file's icon in the General Information Panel of the Information Window? Here's what I've done so far:

tell application "Finder"--an Info Window must be open
  activate
  set IW1 to information window 1
  tell IW1 to set current panel to General Information panel
end tell

tell application "System Events" to tell process "Finder"
  set w1 to window 1
  tell w1
    tell (position as list) to set {w1x, w1y} to items
    set ui5 to UI element 5 --seems to be the contents area
    tell ui5
      set ui6ui5 to UI element 6 --the general panel
      tell ui6ui5
        --properties --Size is area of general panel;
        set bui6ui5 to button "image" --the icon
        tell bui6ui5
          --properties --size={32,32}; x=w1x+27; y=w1y+47; selected: missing
          click --DARKENS MOMENTARILY BUT DOESN'T SELECT
          click at {w1x + 30, w1y + 50}--same
        end tell--bui6ui5
      end tell --ui6ui5
    end tell --ui5
  end tell --w1
end tell--SE

TIA,
Jonathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: How to paste styled text into a footnote in "Microsoft Word"
  • Next by Date: Re: Scripting Finder's Information Window
  • Previous by thread: How to paste styled text into a footnote in "Microsoft Word"
  • Next by thread: Re: Scripting Finder's Information Window
  • Index(es):
    • Date
    • Thread