Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

how to build a database in apple script

Loading...

Sign in or sign up now!
7,635
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 21, 2008

this video shows you how you can build a database in applescript!!!


please comment and rate!


the code is here:



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

  • likes, 8 dislikes

Link to this comment:

Share to:

Uploader Comments (applescriptman)

  • ya, sooon ill fix the script, its just the way its layed out

  • please comment!!

see all

All Comments (27)

Sign In or Sign Up now to post a comment!
  • so whenever i try to end the script it says "expected end of line, but found end of script." so how am i supposed to get rid of that?

  • so could you make this so you can search for numbers, like for instance, a code on a piece of paper that you add to a database like this?

  • the script in the description is wrong omg.

  • @applescriptman but this doesn't allow applescript to read from something do you know if there is any way to make applescript read and write from maybe a .txt file?

  • just some advice. Put the code in a txt file and link a download link

  • can you make it be like:

    if you type in anything except a (required password, etc.) then do whatever?

  • with your script design, im gonna make a database with all the cities and towns and other kinds of villages in america. it will take me at least a year.

  • where did you find the script..did you wright it yourself?

  • it did not work. can you help me good vid

  • Hey Dude can you make the code spaced out for us so we can just copy paste and work.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more