• 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
Re: syntax used by Contacts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax used by Contacts


  • Subject: Re: syntax used by Contacts
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 24 Dec 2013 12:08:26 -0600

On Dec 24, 2013, at 11:45, koenig.yvan <email@hidden> wrote:
Here is a short subset of an old script.
Most of the time it refuse to compile but once, 15 minutes ago it did but refuse again now.
______________________________________________________________________

Hey Yvan,

It compiled perfectly for me in Script Debugger verbatim.

I then cleaned out the comments and changed the variable names but otherwise left the structure intact:

-------------------------------------------------------------------------------------------

set _firstName to "Christopher"
set _lastName to "Stone"

tell application "Contacts"
try
set _person to (get first person whose (first name is _firstName) and (last name is _lastName))
end try
end tell

-------------------------------------------------------------------------------------------

This version also compiled perfectly in Script Debugger.

BUT.

I launched the Applescript Editor, pasted the above code in, hit compile, and had a failure of the type you describe.

Strangely hitting compile again allowed the script to actually compile.

Subsequent paste/compile cycles work without a problem.

Quit and restart the Applescript Editor and paste/compile works without a problem.

<shrug>

Quite weird.  Perhaps a bug.

--
Best Regards,
Chris

 _______________________________________________
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: syntax used by Contacts
      • From: "koenig.yvan" <email@hidden>
  • Prev by Date: Re: pdftotext
  • Next by Date: Re: syntax used by Contacts
  • Previous by thread: Re: pdftotext
  • Next by thread: Re: syntax used by Contacts
  • Index(es):
    • Date
    • Thread