UI Scripting - First Impressions
UI Scripting - First Impressions
- Subject: UI Scripting - First Impressions
- From: Michael Sullivan <email@hidden>
- Date: Mon, 13 Jan 2003 12:53:16 -0800
Hello there. I'm new to Applescript so, of course, I dive right into
System Events UI scripting. I want to, say, save a PDF file from
Explorer
or Safari and the only way I can see to do that automatically is with
UI scripting. Oh, I'm also new to this list so sorry if this has been
gone over before.
Things go fine until I find things like a button with a parent of
"AXUnknown". I can't get the "Save As PDF..." button to work until
I figure out that its parent can also be addressed as "UI element 5".
If there's a better way, I'd love to hear about it. Why can't
System Events look through the "Print" window's element tree until
it finds the "Save As PDF..." button? There needs to be a better
way than by addressing "UI element 5" (which is bound to change numbers
in some future OS release). Also, the UI Element Inspector is nice
but if it comes across an "AXUnknown", give us some name we can use
like "UI Element 5" instead. I can't figure out what to do with
"AXUnknown".
Now I'm having problems setting a text field. The script runs like
it's being set but the file sure isn't being saved with the name I've
set (it's using the default). I'll beat on that today and see if I can
figure out what's going on. Mostly I wanted to sound off on the "UI
element 5" thing. Not good.
Anway, hello again. I'm enjoying reading the posts to the list.
--
Michael Sullivan email@hidden
Aelix, Inc. (818)678-1033
9255 Corbin Ave. (818)678-4726 (fax)
Northridge, CA 91324-2401 www.aelix.com
_______________________________
Scanned and protected by Inflex
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.