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 |