Added AppleScript support

Also fixed the problem with the creation of the url variable in AppController.m