Build a password and user protected app in AppleScript

Build a password and user protected app in AppleScript

This video shows how to program a password and user protected application in AppleScript.

set sampass to "1234"set x to text returned of (display dialog "Enter your username here" default answer "EG:JOHN" buttons {"continue"} default button 1)ignoring case ignoring white space if x = "sam" then set z to text returned of (display dialog "Enter your password here, sam" default answer "************" buttons {"login"} default button 1) if z = sampass then set s to "sam price" set d to "dave blogg" set j to "jack tumb" set m to "max dog" set f to "fabio james" set sa to "sara parker" set o to "oliver jones" set b to "bob samuel" set x to text returned of (display dialog "Search for a member" default answer "ENTER THE NAME HERE!" buttons {"Search"} default button 1) ignoring white space ignoring case if x contains s then display dialog "Sam Price, member number: 1 phone number: 123" buttons {"OK"} else if x contains d then display dialog "Dave Blogg, member number: 2 phone number: 1234" buttons {"OK"} end if if x contains j then display dialog "jack tumb, member number: 3 phone number: 12345" buttons {"OK"} else if x contains m then display dialog "Max Dog, member number: 4 phone number: 12345" buttons {"OK"} end if if x contains f then display dialog "Fabio James, member number: 5 phone number: 123456" buttons {"OK"} else if x contains sa then display dialog "Sara Parker, member number: 6
phone number: 1234567" buttons {"OK"} end if if x contains o then display dialog "Oliver Jones, member number: 7 phone number: 12345678" buttons {"OK"} else if x contains b then display dialog "Bob samuel, member number: 8
phone number: 12345678" buttons {"OK"} end if end ignoring end ignoring else say "you will not get in here, hacker!!!" end if end if end ignoringend ignoring

Hosted by youtube.com
Creator's Site: www.youtube.com/user/applescriptman
Curated By: rmansur

Comments

Add your comment:

Super Robot Has Powers of Levitation

This robot hasn't levitated any humans yet (especially not pictured Days of Our Lives star Deidre Hall), but it looks like the sky may be the limit with the Robo-Air Jet System. Developed by Aaron ...

Smoke Bombs Make Beautiful Art

What is it about the infamous colored smoke bomb that is so deeply satisfying, so beautiful? Well, first there's an explosion (always fun), which then yields beautiful billowing clouds of saturated ...

$44K Street Legal Wooden SuperCar

Beautifully constructed wooden SuperCar Maniwa manufactured by Sada-Kenbi. The wooden Japanese car goes for $44,000. Wow. That's a lot for a toy. However, this baby is street legal and can go up to ...

Stomach Churning Taxidermy Fashion

Uh...yuck. Fun, but definitely yuck. Terrifying taxidermied jewelry and accessories by Reid Peppard. That's right, dead rodent cufflinks, change purses, bowties, bracelets... and a guinea pig hair ...

Eat Your Way Through the Periodic Table (Yum! Cupcakes)

Science geeks behold, the perfect dessert. The cupcake Periodic Table. Pretty simple to do-it-yourself. Start with basic cupcakes in a square mold and decorate! Previously, Knit the Periodic Table ...

loading...