Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Service to "Make Protected Zip" files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Service to "Make Protected Zip" files
Authored by: chocky on Oct 17, '13 09:10:45AM
Unfortunately Automator uses its own Dictionary which does not include "with hidden answer". To get around this enclose the section in a tell statement: (I also added a quick confirmation since you won't be able to see what you typed ;)

set passwd to "x"
set passwd_2 to "y"
repeat while passwd ≠ passwd_2
	tell application "System Events"
		activate
		set passwd to text returned of (display dialog "password for zipped file" default answer "" buttons {"OK", "Cancel"} default button "OK" with hidden answer)
		set passwd_2 to text returned of (display dialog "Please reenter your password" default answer "" buttons {"OK", "Cancel"} default button "OK" with hidden answer)
	end tell
	
end repeat


[ Reply to This | # ]
Service to "Make Protected Zip" files
Authored by: barryjaylevine on Oct 19, '13 09:52:33AM

Thanks, chocky & ThomasMyers. Chocky's password modification script grafted into ThomasMyers' original code works perfectly. Excellent set of tips!.

---
-----
Two things in this world aren't overrated: MacOSX and Lemon Meringue Pie.



[ Reply to This | # ]