Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug?



Title: Re: bug?
On 1/22/06 1:59 AM, "Miguel Saro" <email@hidden> wrote:

With ASStudio and Xcode 2.2.1, if I write: if  (x>Y or x = Y)  then ..., all runs well.
but if I write: if x >= Y then ....., Syntax seems correct and "Save" runs well, but I get the error:

/Users/duncanmacheudress/Prog_it/Yanf/Application.applescript:268: Expected "then", etc. but found unknown token. (-2741)
Command /usr/bin/osacompile failed with exit code 1

If I try that with Applescript I've not the error!
I've desintalled and installed again Xcode. Error is always the same!
Anyone  has an idea for that?

Yes. Select your .applescript file in Xcode, click in the script itself (otherwise the next step isn't available), go into Format/File Encoding, and select Western (MacRoman). You probably have it set to UTF-8 or UTF-16 (the default for non-applescript files, and if you imported the project from an earlier version of Xcode this could happen too). If you have more than one .applescript file, do this for all of them. In one of my projects, I discovered this in all the "extra" .applescript files I had added - they all had to be fixed this way.

--
Paul Berkowitz

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >bug? (From: Miguel Saro <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.