Re: Inventory script
Re: Inventory script
- Subject: Re: Inventory script
- From: CYB <email@hidden>
- Date: Thu, 16 Jun 2005 14:46:14 -0500
Title: Re: Inventory script
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