OSX file sharing - Rev

Richard Miller wow at together.net
Sat Jun 28 09:41:22 EDT 2008


Jim,

Like I said, your code seems to work fine. But it only works when the  
Lock button on the bottom left is in its unlocked state... which  
makes sense. Is there a way through Applescript to lock and unlock  
that button? I'd prefer to keep the panel locked until I'm ready to  
turn off file sharing via script. At that point, I'd want to unlock  
the panel via script. Then once file sharing has been turned off, re- 
lock the panel. Do you know how to do this?

Thanks.
Richard


On Jun 26, 2008, at 2:50 PM, Jim Ault wrote:

> This is the way I am familiar with.  The security issues can be  
> tricky since
> this could run without the users knowledge.
>
> --------------Applescript code:----------------------
>
> 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!
>
> Jim Ault
> Las Vegas
>
> On 6/26/08 10:16 AM, "Richard Miller" <wow at together.net> wrote:
>
>> Anyone know how I can use Rev to turn on/off file sharing on a Mac? I
>> can't quite put my finger on the Applescript commands that would do
>> this.
>>
>> Thanks.
>> Richard Miller
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list