• 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
Re: System Events scripting of Finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events scripting of Finder window


  • Subject: Re: System Events scripting of Finder window
  • From: kai <email@hidden>
  • Date: Fri, 16 Mar 2007 21:35:41 +0000


On 16 Mar 2007, at 18:32, Doug McNutt wrote:

I tried this code with a bunch or textual changes and guesses. No version has worked.

tell application "Finder"
activate window "Transfer"
end tell
tell application "System Events"
tell process "Finder"
click menu item "by Date Modified" of menu "Arrange" of menu item "Arrange" of menu "View" of menu bar ""
end tell
end tell

Try something like this, Doug:

--------------------

activate application "Finder"
tell application "System Events" to tell application process "Finder"
	perform action "AXRaise" of window "Transfer"
	click menu item "Date Modified" of menu 1 of ¬
		menu item "Arrange By" of menu 1 of ¬
		menu bar item "View" of menu bar 1
end tell

--------------------

My menu names seem to differ slightly from yours, so you may need to adjust the code slightly - but hopefully the general structure will be close...

---
kai


_______________________________________________ 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
References: 
 >System Events scripting of Finder window (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Get script as text from scpt files
  • Next by Date: Re: Getting at some Hidden Clipboard Contents
  • Previous by thread: System Events scripting of Finder window
  • Next by thread: Re: System Events scripting of Finder window
  • Index(es):
    • Date
    • Thread