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

Rép: syntax used by Contacts


  • Subject: Rép: syntax used by Contacts
  • From: "koenig.yvan" <email@hidden>
  • Date: Tue, 24 Dec 2013 20:04:41 +0100


Le 24/12/2013 à 19:37, koenig.yvan <email@hidden> a écrit :


Le 24/12/2013 à 19:08, Christopher Stone <email@hidden> a écrit :

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




Thanks

Alas I can't get it to compile after several Quit and restart AppleScript Editor.
Same behavior with Smile.

I will try to run my machine in English for see.

Yvan KOENIG (VALLAURIS, France) mardi 24 décembre 2013 19:37:20


It failed in English too but I have good news.

Deivy Petrescu warned me that if Contacts is running, the script compiles.

Time to file a report but I will wait until Thursday ;-)

Yvan KOENIG (VALLAURIS, France) Tuesday 24 December 2013 19:53:31




 _______________________________________________
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

  • Prev by Date: Re: syntax used by Contacts
  • Next by Date: Final Cut Pro X
  • Previous by thread: Re: syntax used by Contacts
  • Next by thread: Final Cut Pro X
  • Index(es):
    • Date
    • Thread