Re: Inventory script
Re: Inventory script
- Subject: Re: Inventory script
- From: CYB <email@hidden>
- Date: Thu, 16 Jun 2005 17:13:55 -0500
Title: Re: Inventory script
Gabe,
I think that in 10.3 works well because this dialog box was a bit different, but in 10.4.x this change, so the GUI structure change also, so you need to figure out again the actual “location” of all the new GUI structure.
I think that you are trying to refer to the text fields called “info 1, info 2, ...info 4”
If this is true then maybe this is the actual reference:
application "System Preferences"
standard window "Sharing" (1)
sheet 1
group 2
text field 1—here you can change to text field 2
text 1
And
application "System Preferences"
standard window "Sharing" (1)
sheet 1
group 1— note that now is group 1
text field 1 — her you can use 1 or 2 for the “info 4” text field
text 1
As you can see here now there are a new “sheet x” and there is no any table or other elements.
I’m sure you have “UI Elements Inspector” or “UI Browser 1.4” if don’t download it both now because whit out this is almost impossible to do this kind of stuff. My recommendation is to have both because any of this utilities is accurate enough, so you need all the tools at your hand.
Good luck!
Carlos Ysunza B.
Director
Ysunza/Santiago
Fotografía y Diseño
Tel (52)55 5256-0336
email@hidden
http://www.ysunzasantiago.com
http://www.thesecretmexico.com
From: Gabe Lucero <email@hidden>
Date: Thu, 16 Jun 2005 14:37:50 -0700
To: CYB <email@hidden>
Subject: Re: Inventory script
I see what you mean. I still trying to get to the proper pane. I’ve been messing around for a few hours and in the end I just get the error message:
System Events got an error: Can't make text "Apple Remote Desktop" of table 1 of scroll area 1 of tab group 1 of window "Sharing" of application process "System Preferences" into type UI element.
I’m still new at Applescript and I’m afraid I’m stuck at this point. Any idea how to activate the proper pane? Your reply did help me understand the process and where I went wrong. Still, why does it work in 10.3
Gabe
On 6/16/05 12:46 PM, "CYB" <email@hidden> wrote:
Hi,
I see some problems here,
1.- you are talking to a non existent button, because when you open the sharing panel of System Preferences, the default action is shows you, the Service pane, whit “Personal File Sharing” box selected in the scroll area, and as I assume, you are trying to “see” this pane but with the “Apple Remote Desktop” box selected. In that pane, there is certainly a button called “Access Privileges...”
So you need first of all to make a selection of the proper pane and then try to talk to that button
first:
( application "System Preferences"
standard window "Sharing" (1)
tab group 1
scroll area 1
table 1
table row 6)
Then
application "System Preferences"
standard window "Sharing" (1)
tab group 1
button "Access Privileges…" (2)
2.- In my experience is better in GUI scripting be sure about all the elements; so I will make a previous selection of the appropriate pane, that is
application "System Preferences"
standard window "Sharing" (1)
tab group 1
radio button "Services" (1)
I hope it help you in any way
Carlos Ysunza
From: Gabe Lucero <email@hidden>
Date: Wed, 15 Jun 2005 15:41:42 -0700
To: <email@hidden>
Subject: Inventory script
tell application process "System Preferences"
click button "Sharing" of scroll area 1 of window "System Preferences"
delay 3
click button "Edit…" of window "Sharing"
set value of text field 1 of sheet 1 of window "Sharing" to TheName
click button "OK" of sheet 1 of window "Sharing"
click button "Access Privileges..." of tab group 1 of window "Sharing"
delay 3
_______________________________________________
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
_______________________________________________
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