Forums Search Login Register
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 2,814
Help Troubleshooting an AppleScript

So, I have a bit of a problem. I have an encrypted dmg file that I have forgotten the password for. Thanks to a younger (and dumber) version of myself using formulaic passwords, I was able to create a relatively small wordlist of the possible passwords. After some research, I found an applescript on an old metafilter discussion here ( that would test the wordlist against the encrypted dmg.

When I try to run the script in the applescript editor i get the following error (also in the attached screen shot):

"Expected end of line, etc. but found parameter name."

Here is the script:

for word in $(cat wordlist.txt | grep -v "#")
echo -n $word | hdiutil attach -mount -encryption -stdinpass - image.dmg
if [[ $? = 0 ]]
echo "Password found!"
echo $word
exit 0

echo "password not found Sad"
exit 1
If anyone could help me out with the applescript I would really appreciate it. I know next to nothing about applescripts.
08-04-2011, 02:19 AM
Subscribe to this thread Subscribed Users  Add Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  What's your Kernel Panic troubleshooting technique? sevans 0 239 06-21-2014 04:24 AM
Last Post: sevans
  iPhoto, Applescript, and Amazon Glacier question nandymorenoi 0 171 05-19-2014 07:41 AM
Last Post: nandymorenoi
  AppleScript Help zbernadinerrrhat 0 177 02-05-2014 04:39 PM
Last Post: zbernadinerrrhat
  Spontaneous random logouts -- help troubleshooting Mac Tramp 0 215 10-02-2013 11:51 AM
Last Post: Mac Tramp
  Applescript - check if connected to a specific network, then run (else fail silently) ogerardosandovaln 0 260 09-22-2013 10:13 AM
Last Post: ogerardosandovaln
  Simple AppleScript for Shiney 0 242 07-26-2013 01:05 PM
Last Post: Shiney
  App Expose Applescript medoebler82 0 208 06-28-2013 01:49 PM
Last Post: medoebler82
  Understanding Applescript gmelissaleachr 0 235 03-31-2013 10:02 PM
Last Post: gmelissaleachr
  Mac OS X Tips Troubleshooting Guide ogerardosandovaln 0 339 03-26-2013 04:17 AM
Last Post: ogerardosandovaln
  Using iCal as an Alarm via AppleScript lodiliagloverj 0 249 01-05-2013 07:06 PM
Last Post: lodiliagloverj

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2018