Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8604761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:39:21+00:00 2026-06-12T02:39:21+00:00

I am trying to make code in Applescript that makes a new contact with

  • 0

I am trying to make code in Applescript that makes a new contact with already filled in information. Here is my code:

set contactFirstName to "Brandon"
set contactLastName to "Damante"
set contactStreet to "7688 Somerly Ct"
set contactCity to "New Albany"
set contactCountry to "USA"
set contactZip to "43054"
set contactEmail to "chocolatecheese101@hotmail.com"
set contactNote to "I'm Awesome"
set contactState to "Ohio"
--Address Book Tell Block
tell application "Address Book"
    --Create the Contact
    set theContact to make new name with properties {first name:contactFirstName, last     name:contactLastName, street:contactStreet, city:contactCity, state:contactState,     country:contactCountry, zip:contactZip, email:contactEmail, note:contactNote}
end tell

it highlights the bolded part and says, “Can’t make application ‘Address Book’ into type location reference,” and I’ve never seen that error message before. What does that mean to my code? How can i correct it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:39:23+00:00Added an answer on June 12, 2026 at 2:39 am

    Try this:

    set contactFirstName to "Brandon"
    set contactLastName to "Damante"
    set contactStreet to "7688 Somerly Ct"
    set contactCity to "New Albany"
    set contactCountry to "USA"
    set contactZip to "43054"
    set contactEmail to "chocolatecheese101@hotmail.com"
    set contactNote to "I'm Awesome"
    set contactState to "Ohio"
    --Address Book Tell Block
    tell application "Address Book"
        set theContact to make new person at end of people with properties {first name:contactFirstName, last name:contactLastName, note:contactNote}
        tell theContact
            make new address at end of addresses with properties {street:contactStreet, city:contactCity, state:contactState, country:contactCountry, zip:contactZip, label:"Work"}
            make new email at end of emails with properties {label:"Work", value:contactEmail}
        end tell
        save
    end tell
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make an Applescript that takes a list of names and makes
I'm trying to make a code that will show two different images depending on
im totally new when it comes to trying to make HTML code. I was
I'm trying to make a genric code to serialize and deserialize any object that
I am trying to make a frame from code so that I can apply
I'm trying to make a code that allows me to enter a tree node
I am trying to make a code that does the following: Multiplying the digits
I was trying to make a code that will take input from a user
I'm trying to make a code that automatically counts the members in a particular
I am trying to make a code that reads the lines in file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.