Build a database in AppleScript

Build a database in AppleScript

This video tutorial shows you how you can build a database in AppleScript! You don't know what AppleScript is? Well, it's a programming language for Mac computers only. You can build and design your own little applications if you are good enough.

The code below is the one referenced in the video.

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

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

Comments

Add your comment:

4 Years in the Making: Insane Papercraft City

Tokyo art student, Wataru Itou, spent four long years crafting his meticulous paper city, entitled "A Castle On the Ocean".  The miniature papercraft city was constructed with ...

Jetman Flys Over Atlantic with DIY Wings - Plummets!

Yves Rossy, AKA Jetman, attempted to fly across the Atantic from Morocco to Spain yesterday. His homemade, jet powered wings "span 8 feet and are powered by four kerosene-fueled jet engines ...

Avoid Turkey-Frying-Fire Disaster this Thanksgiving

Thinking of deep frying a turkey this Thanksgiving? Careful. Or this might happen: Luckily, Alton Brown (of Food Network) offers a thorough step-by-step on how to fry that bird. Hackaday has also ...

Turbo Turkey - Cook the Damn Bird Above the Camshaft

So, I suppose we're going both redneck and Thanksgiving turkey twice today (Redneck Slingshot Chick + Extreme Thanksgiving Recipes). Something about home for the holidays inspires... and this is ...

Deeply Trusting Female Volunteers Bod to Redneck Science: First Human Slingshot

Well, maybe these folks aren't redneck. That is a pretty nice house, and that slingshot doesn't look too jery rigged. But the idea of a human slingshot is certainly redneck (and lotsa fun). Previously ...

loading...