|
|
how would you GUI script mail.app?
This GUI scripting is new to me. I can't seem to change the value of the Incoming Mail Server text field of the accounts window of the preferences menu of the mail menuitem of menu bar 1.
how would you GUI script mail.app?
You can only specify an element by name if it has a Title element. Most of the elements don't seem to be named .. so you have to specify it by it's index, for example:
Unfortunately, the UI Element Inspector doesn't tell you the index of an element - so I usually just use trial and error.
You might expect that the elements would be indexed from the top of the window downwards - but apparently it seems to be all over the place (I suspect it has something to do with the order the developer adds the elements when they design the application).
Anyway - in your example the "Incoming Mail server:" text field should probably be text field 4 - but that is actually the "Description:" field! Incoming Mail is the 1st text field: ---
how would you GUI script mail.app?
Also - I've been thinking about your problem you were trying to solve with Mail - but I was thinking it'd be easier just to script it directly - Mail after all is a scriptable application and you could probably do whatever you wanted to using it's scripting abilities.
For example, if you want to change the POP server:
That's a bit easier isn't it!!--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|