Hey All!
I use the following to mount my 2 Pc’s to my mac during the execution of a script in this order:
mount volume "smb://192.168.0.3/Desktop/" as user name "XXXXXX" with password "XXXXXXXXX"
&
mount volume "smb://192.168.0.4/Desktop/" as user name "XXXXXX" with password "XXXXXXXXX"
To send files to the PC’s which have watch folders via Powershell I use something like
do shell script "echo " & quoted form of "TEST TXT FILE " & "> /volumes/desktop/VO/" & "_VO1.txt"
However if I mount 192.168.0.4 first, that becomes /volumes/desktop/ and 192.168.0.3 becomes /volumes/desktop-1/ thus breaking the script
Is there a way to send files to the smb address or IP address to alleviate any confusion? Something along these lines, although it doesnt work:
do shell script "echo " & quoted form of "TEST TXT FILE " & " > smb://192.168.0.3/Desktop/VO/" & "_VO1.txt"
Thank you for any help you can provide!