• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ADDRESS BOOK: Changing "mobile" label to "home"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ADDRESS BOOK: Changing "mobile" label to "home"


  • Subject: ADDRESS BOOK: Changing "mobile" label to "home"
  • From: Rick Gordon <email@hidden>
  • Date: Mon, 9 Feb 2009 01:30:47 -0800

I just got a new iPhone and imported by data from a Nokia phone, so that only the first phone number was imported, and it is labeled as "mobile." I'm trying to script a solution, but can access contact info properties, and there does not appear to be a phone property.

I set up the following script to change the vcard property, hoping that that would work, but it errors with this error:

	"Address Book got an error: NSInternalScriptError"

The script follows; what am I doing wrong?

tell application "Address Book"
	set vList to every person whose company is true
	repeat with vItem in vList
		tell vItem
			set vCardText to vcard as text
			tell me
				tell application "Smile"
					try
						set vCardText to (uchange "CELL" in vCardText into "WORK")
					end try
				end tell
			end tell
			copy vCardText as text to vcard
		end tell
	end repeat
end tell

--

___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • RE: ADDRESS BOOK: Changing "mobile" label to "home"
      • From: Rick Gordon <email@hidden>
  • Prev by Date: Re: Excel
  • Next by Date: RE: ADDRESS BOOK: Changing "mobile" label to "home"
  • Previous by thread: Re: AppleScript-Users Digest, Vol 6, Issue 64
  • Next by thread: RE: ADDRESS BOOK: Changing "mobile" label to "home"
  • Index(es):
    • Date
    • Thread