Log in

connect to smb volume and open each folder there - applescript [entries|archive|friends|userinfo]

[ website | Apple's AppleScript Home Page ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

connect to smb volume and open each folder there [Feb. 24th, 2009|12:33 pm]


 hi, i've remote volume, which connected to apple base station via usb. on mac i can see him in Shared. My remote disk has the path: "smb://Base Station._smb._tcp.local/My%20Book/", each time before launching Transmission i should choose my disk in finder and i should choose each folder there, because w/o it i can upload files in transmission (i've getting message, that transmission cannot find file, etc). I wanna write script, which will launch Finder, mount my smb's volume, open each folder there (i don't know count of folders - script must find it itself) and after close finder and open transmission. 

i begin so:

tell application "Finder"
mount volume "smb://Base Station._smb._tcp.local/My%20Book/" as user name "myusername" with password "mypassword"
-- here i should get count of my folders on disk and open each folder
end tell
close Finder
open "Transmission"