Automount...

I tried a search, yielded nothing. So, I’m trying to mount a volume periodically (so I don’t want to automount at startup) to copy a autogenerated file. The problem is when I use Automator to mount the volume, I’m asked for user name/pass. I’ve added the name/pass to the keychain, so it populates the dialog box. But how can I get the script to commit the entry in the dialog box? Another dialog box comes up after this asking which volume on the remote machine I’d like to mount, same question, how to commit the entry so the script can continue? Thanks!

Hi,

assuming you want to mount a network volume with AFP
use the Run AppleScript Action and this script

on run {input, parameters}
	try
		mount volume "afp://username:password@BonjourName.local/Volume" -- with Bonjour name (= ComputerName.local)
		-- or
		-- mount volume "afp://username:password@xxx.xxx.xxx.xxx/Volume" -- with IP Address
	end try
	return input
end run