Currently Being ModeratedJan 19, 2013 11:39 AM (in response to Clemgill)
I found your script incredibly useful but I'm getting an error message when trying to use it:
error "System Events got an error: Can’t set process \"SecurityAgent\" to \"mypassword\"." number -10006 from process "SecurityAgent"
Currently Being ModeratedJan 19, 2013 1:21 PM (in response to Moises R - OMTBA)
Did you type your own password at the begining of the script
between the quotes, at the end of the following line:
set Pass_word to "..."
replacing the ... with your own password?
Currently Being ModeratedJan 23, 2013 12:08 PM (in response to larry baltz)
Larry, thank you. I have scoured the net and could not get my mac to share with my win7 machine. It had to have been an issue with user names though I thought having an account on each machine with the same exact user name and password would help, it didn't. I did manage to get them to play nicely with another user name. Thank you so much. John
Currently Being ModeratedFeb 8, 2013 1:25 PM (in response to Thomas Thaler1)
Thomas Thaler1, My network settings match what you posted, yet we still have no access to ML Server from Win7. I have read that others just turned off Sharing, then turned it back on; hasn't worked for me. I have made SMB changes in Server, as others suggested elsewhere; hasn't worked for me. I have made SMB changes and AFP changes in Sharing, as others suggested elsewhere; hasn't worked for me. I have made the changes you suggested; hasn't worked for me. I'll keep searching...
Currently Being ModeratedFeb 8, 2013 1:54 PM (in response to Don Seher1)
Maybe it does help you and solve your problems.
BUT FIRST TRY WITHIN AN TRIAL ENVIRONMENT BEFORE GOING LIFE!!!
Also keep an eye on the networking stuff like Switches, Hubs, Firewalls, Routers, Bridges, .....
I did solve some very strange problems in the past by exchanging such devices or upgrade their firmware.
Currently Being ModeratedAug 15, 2013 5:57 AM (in response to Clemgill)
I'm having the same problem with my Mac Pro running Mountain Lion in my Windows environment at work - PC clients can't connect. Turning File Sharing off and then back on again after a reboot completely solves the problem. Fortunately, the machine is very solid and I rarely reboot. In fact, I mainly reboot when I'm putting in a new hard drive or a new PCI card!
Clemgill - I would really like to use your AppleScript so that I can just have it run whenever I reboot the computer. However I am NOT running server - just "regular" Mountain Lion. Perhaps you could publish another script that works with non-server Mountain Lion? I have tried editing your script but I can not get it to work on my machine.
New York, NY
Currently Being ModeratedAug 18, 2013 9:20 AM (in response to feinberj)
I am actually not running server either, I developed the script on OSX 10.8.4.
Make sure you adapt the initial lines of the script to your own setup and to the English version.
Let me suggest this, it worked on my computer when I set it up in English language.
set Sharing_pane to "Sharing"
set File_sharing_Off to "File sharing: Off"
set File_sharing_On to "File sharing: On"
#Change the "…" in the line hereafter with your own password while keeping it within the quotes. So the sequence "…" should look like "xyztuv" if xyztuv is your own password
set Pass_word to "..."
Currently Being ModeratedAug 18, 2013 6:18 PM (in response to Clemgill)
I've gotten it to work!
I did indeed add English language strings to the three variables, and I have set my pass_word variable for my own system.
I had to make a few other changes for the script to work on my system:
- The "File Sharing" checkbox is the third service (row 3) on my Mac. In a few places, I made the change to Row 3:
click checkbox 1 of row 3
(in your script it's click checkbox 1 of row 2)
- I added a delay immediately after Click Button 4 (which clicks unlock), and I was able to remove the delay before clicking button 2 of group 2. Without the new delay, it was trying to type the password before the password request box had opened, and I got an error. See the changes below:
# Unlock modifications
click button 4
delay 0.5 # I needed to add this line
# type in your user password
tell application "System Events" to tell window 1 of process "SecurityAgent"
set value of text field 2 of scroll area 1 of group 1 to Pass_word
# delay 1 # I was able to remove this line
click button 2 of group 2
Thank you again for posting the script. It's a big help, given that I do need to access my Mac from various windows machines in my work environment.
New York, NY
Currently Being ModeratedSep 9, 2013 6:46 PM (in response to Arthur_P_Johnson)
My apologies for jumping on this thread.. though several months down the line. We have a mac min os x server, and I am having difficulty connecting to it from my windows 8 pc. I had no trouble, or little trouble I should say, connecting to my pc via the mac. I tried going through Run with the \\server\share, also the mac doesn't show in my network either. I new to Mac and this is extremely frustrating! Any help would be greatly appreciated.
Currently Being ModeratedNov 30, 2013 10:31 AM (in response to Sandy-)
Another problem with PC to Mac share access is that the bloody thing limits the upload size (from PC to Mac). It stops at ~ 2Gb & "There is a problem..." message pops up!
Try to copy anything bigger to Mac from Windows PC & it will error out each time. Anything smaller & all is fine.
Just plain silly!
Currently Being ModeratedDec 1, 2013 6:44 AM (in response to sc46)
In fact it looks like it actually never worked by default - http://hints.macworld.com/article.php?story=20100212135148675
SMBUp is definitely the way to go instead of the Apple garbage - https://discussions.apple.com/message/21639815#21639815
Currently Being ModeratedJan 15, 2014 9:22 AM (in response to larry baltz)
I could kiss you for this info!!!!! I've been trying sooo hard to figure this out - but evertime I search - I would get connection tips for a Mac and WINSERVER........you have made me the happiest girl in the office