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
|