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.
_______________________________________________
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