• 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
Intel UI scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intel UI scripting


  • Subject: Intel UI scripting
  • From: Scott Doenges <email@hidden>
  • Date: Wed, 21 Jun 2006 22:47:00 -0600

Hi all,

I can rarely get the list search to respond on the lists.apple.com website, so I apologize if I'm asking a redundant question.  

I've been writing an Applescript to automate the setup of lab computers on my PowerMac G5, using Prefab UI Browser (granted, not updated for over a year) to help me figure out all the UI elements to control.  One specific example is this simple Finder action, which clears the recent folders list:

activate application "Finder"
tell application "System Events"
tell process "Finder"
click menu item "Clear Menu" of menu 1 of menu item "Recent Folders" of menu 1 of menu bar item "Go" of menu bar 1
end tell
end tell


I ran into some problems when I tried to use the script on any Intel-based Mac - I just get the common error "NSReceiverEvaluationScriptError: 4"  The Intel Finder does not seem to be a UI scriptable application - no elements show up in the UI Browser window - but other apps like System Preferences do show up, and my scripts work just fine.

What am I missing?  Is there some fundamental difference in the UI elements between PPC/Intel that causes this script to fail?  Or is it just a limitation to UI Browser, and I'm calling Finder UI elements by the wrong names?  Or am I simply crazy?

I would appreciate any words of wisdom!

thanks,
Scott
 _______________________________________________
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: Intel UI scripting
      • From: Bill Cheeseman <email@hidden>
    • Re: Intel UI scripting
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Currency Numbers
  • Next by Date: Re: Intel UI scripting
  • Previous by thread: Re: Auto-Configure Entourage Applescript
  • Next by thread: Re: Intel UI scripting
  • Index(es):
    • Date
    • Thread