Re: Intel UI scripting
Re: Intel UI scripting
- Subject: Re: Intel UI scripting
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 21 Jun 2006 22:36:46 -0700
- Thread-topic: Intel UI scripting
Title: Re: Intel UI scripting
On 6/21/06 9:47 PM, "Scott Doenges" <email@hidden> wrote:
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?
UI Browser 1.4.1 is not a Universal Binary - it's a PPC app. It must run in Rosetta on a MacIntel. The Finder on a MacIntel will be an Intel app. Perhaps there's a good reason why PPC apps in Rosetta can't access UI elements (accessibility) of an Intel Finder. Presumably Bill Cheeseman must be working on a Universal Binary version of UI Browser. He might even be looking for people to test it on a MacIntel. Why don't you write him directly? Or in UI Browser/Help, select "Email PreFab Support". That will probably get to Bill. Have you tried that? (If not, why not?)
--
Paul Berkowitz
_______________________________________________
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