• 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
Re: UI Scripting PowerMail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Scripting PowerMail


  • Subject: Re: UI Scripting PowerMail
  • From: Mikael Byström <email@hidden>
  • Date: Sat, 2 Oct 2004 23:26:39 +0200

Shane Stanley said:

>I think you're out of luck -- it looks like it's the only element not
>accessible.

It seems this way. However, I found another posibble way to achieve my
goals, that also doesn't seem to work, but I can get the proper value,
but not set it yet:

tell application "PowerMail 5.1b1" to activate

tell application "System Events"
	tell process "PowerMail"
		--This does get the proper value from the field, which value I want to
affect
set Mango to (get value of text field 1 of UI element 1 of button "View
Only" of tool bar 1 of window "Mail Browser: In Tray")
		--This gives result "NSReceiverEvaluationScriptError: 4", Means what
exactly?
		set value of Mango to "orange"

	end tell
end tell

Do I have to type or something? How do I type a value at a specific element?

The attributes of "text field 1" (attribute, type, value) are:
parent, UIElement, unknown
role, string, AXTextField
role description, string, "text field"
selected text, string, "monkey"
selected text, range, {0,6} start, length
title, string, "monkey"
value, string, "monkey"  (this is what I want to affect)

Changing the value in Prefab UI browser doesn't change the field in
PowerMail. Is this because my code does something wrong or can it be that
PowerMail prevents me for some reason?

 _______________________________________________
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: UI Scripting PowerMail
      • From: "Shane Stanley" <email@hidden>
  • Prev by Date: Re: iCal scripting problem
  • Next by Date: Re: Getting Data out of Filemaker Pro
  • Previous by thread: Re: Getting Data out of Filemaker Pro
  • Next by thread: Re: UI Scripting PowerMail
  • Index(es):
    • Date
    • Thread