Applescript + Keychain #iATKOS #ML2

Hi guys,



I searched myself crazy on the net, reading the man page about security(1) and being quite a beginner, can't really pinpoint how to do this.

I want to mount my NAS drive to a folder: a movies folder on the NAS to my Movies folder on the OSX drive in the Users/Kosta. It asks for the password in the Terminal when I script that. I can however type in the password in text and save the app as run only (Option 1).



However, I would prefer to learn how to script a keychain password into the Applescript, without it really showing. I mean, not even sure if it makes sense, security-wise… should I just save the app as run only, or should I even bother with entering the keychain access, as in, if it's even more secure?



Any help would be appreciated!





source