Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile due to osacompile errors #293

Open
luismadrigal opened this issue Jun 7, 2013 · 1 comment
Open

Unable to compile due to osacompile errors #293

luismadrigal opened this issue Jun 7, 2013 · 1 comment

Comments

@luismadrigal
Copy link

I having issues compiling the app under OS X 10.7.x with Xcode 4.3.2.

After many attempts and some tinkering and lots of online reading I was able to compile.
Here is what I did.

First, I changed all the SDK references from Mac OS X 10.8 to 10.7. (This was the easy part)
Next, I came across OSACompiler errors. The compiler complained about 3 files.

  • getToDoListFromReminders.script
  • setStatusToAvailableInMessages.script
  • setStatusToPomodoroInMessages.script

I got around those issues in by using parethesis around the problematic identifiers.
i.e. line 5 of setStatusToAvailableInMessages.script

set status message to "%@" <--- original
set (status, message) to "%@" <--- modified

As far as I can messages and reminders are features only available in OS X 10.8 so when I tried to compile in OS X 10.7 it couldn't find them. However, I am not entirely sure why putting them in parenthesis and separating them by a comma, works.

I hope this helps the next person who try's to build it the project using 10.7.x

So since those files are not needed for 10.7 or below they be loaded conditionally. I haven't browsed the rest of the code, so I have no idea where that would be done. But I would imagine that doing a quick check for the SDK version would allow that to happen. Just a thought.

@reicheltd
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants