|
|
#1 |
|
Prospect
Join Date: Jul 2004
Posts: 16
|
How can I use applescript to turn on/off Personal file sharing unter OSX 10.3.4?
|
|
|
|
|
|
#2 | |||||||||||||||||||||||
|
MVP
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 2,461
|
It is probably possible to use GUI scripting to achieve what you want. See here to get you started. There may also be a way using a UNIX utility but I have no knowledge on that. |
|||||||||||||||||||||||
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jan 2002
Posts: 10,677
|
You should be able to change the "AFPSERVER="entry in /etc/hostconfig from "-YES-" to "-NO-" and back again via the Terminal.
|
|
|
|
|
|
#4 |
|
Prospect
Join Date: Jul 2004
Posts: 16
|
I got it myself!
![]() Turning on with: do shell script "/usr/sbin/AppleFileServer" password "x" with administrator privileges Turning off with: do shell script "/usr/bin/killall AppleFileServer" password "x" with administrator privileges "x" is your administrator password! |
|
|
|
![]() |
|
|