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
Want to master Microsoft Excel and take your work-from-home job prospects to the next level? Jump-start your career with our Premium A-to-Z Microsoft Excel Training Bundle from the new Gadget Hacks Shop and get lifetime access to more than 40 hours of Basic to Advanced instruction on functions, formula, tools, and more.
Other worthwhile deals to check out:
- 97% off The Ultimate 2021 White Hat Hacker Certification Bundle
- 98% off The 2021 Accounting Mastery Bootcamp Bundle
- 99% off The 2021 All-in-One Data Scientist Mega Bundle
- 59% off XSplit VCam: Lifetime Subscription (Windows)
- 98% off The 2021 Premium Learn To Code Certification Bundle
- 62% off MindMaster Mind Mapping Software: Perpetual License
- 41% off NetSpot Home Wi-Fi Analyzer: Lifetime Upgrades
Be the First to Comment
Share Your Thoughts