mounting password protected disk image

x_kzy_xd

Member
Jun 30, 2011
57
0
66
I have a password protected disk image with all my logins. I use an AppleScript to mount the disk image right now:

do shell script "hdiutil mount '/..../Password.dmg'"

delay 2

tell application "Numbers" to open "/Volumes/Password/Password.txt"



Notice the "delay 2". This is the time I leave for myself to enter the password. But sometimes, this doesn't work and I dont enter my password in time. Is there a way for the AppleScrip to open the Password.txt file automatically after the image is mounted (however long that may take)?
 

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
Why don't you just create an alias to password.txt, and run that alias instead of your applescript? Mac OS X will automount the DMG to get to password.txt.
 
Last edited: