Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Startup Script to enable filesharing via TCP/IP

Startup Script to enable filesharing via TCP/IP
Thread Tools
Mac Elite
Join Date: Sep 1999
Location: The Valley of the Sun
Status: Offline
Reply With Quote
Jun 24, 2000, 02:43 PM
 
Hi,
Does anyone have (or is there a script out there) that allows TCP/IP filesharing to be enabled at start-up? I sometimes restart my home machine and forget to re-enable the share via tcp/ip.
thanks
dave
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Jun 25, 2000, 12:01 AM
 
Hi dave,

I'm not sure whether you're asking for: (1) a script to start File Sharing, or (2) a script to ensure that the File Sharing CP's 'Enable File Sharing clients to connect over TCP/IP' checkbox remains selected across restarts.

If it's case #1, Apple itself used to provide sample scripts/applets to perform this task. [Note (2000/06/30): This assumes that File Sharing isn't already automatically starting up when you reboot (e.g., because you manually stop it at some point before you shut down).] On my own hard drive, there are at least three versions:-
  • The 'Start File Sharing' applet, in the '<HD> : Apple Extras : AppleScript : Automated Tasks :' subfolder.
  • The 'Start file sharing' applet, in the '<HD> : Apple Extras : Speech Technology : More Speakable Items :' subfolder.
  • The 'turnFileSharingOn' script, in the '<HD> : System Folder : Help : Mac Help : shrd :' subfolder.
You'd just have to copy or alias one of these versions (first making it an applet if necessary) into your System Folder's 'Startup Items' subfolder. If you don't have access to any of these versions, let us know and we can post a copy here for you. Note that, in addition to the File Sharing control panels & extensions being active, the 'FileSharing Commands' OSAX must also be present in the '<HD> : System Folder : Scripting Additions :' subfolder. You'd also need to double-check that the File Sharing CP's 'Enable File Sharing clients to connect over TCP/IP' checkbox is selected.

On the other hand, if it's case #2, then it's likely that a system-level issue is preventing the checkbox from retaining its setting. You could try trashing the 'File Sharing' prefs. Also, check out the related threads over in Apple's own 'Mac OS [Archive] Discussion' Forum, such as OS9.0 & TCP/IP Filesharing Problem, or File Sharing + TCP/IP, or TCP/IP File Sharing off after restart, or Enable TCP/IP File Sharing button won't stick. Some of those threads also suggest other workarounds if the system-level fixes don't work. For example, you could try aliasing the 'ShareWay IP Personal Bgnd' or 'ShareWay IP Personal Background' "extension" (it's actually an app) into your System Folder's 'Startup Items' subfolder. If that doesn't work (note that the checkbox may still appear unselected even though the extension did nevertheless launch okay), you could try explicitly telling the extension to start. If that doesn't work either, you could try using a 3rd-party OSAX that can script mouse-clicks (to simulate selecting the 'Enable File Sharing clients to connect over TCP/IP' checkbox in the File Sharing CP), such as Akua Sweets, Sandi's Additions, or Cursor.

Regards,

--Paul

[This message has been edited by Paul Crawford (edited 06-30-2000).]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2