Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum A lot of “Obsolete Command”.

  • A lot of “Obsolete Command”.

    Posted by Gianni on September 24, 2019 at 11:33 am

    Moving from Omnis 5 to Omnis 8 I noticed that several commands have been deprecated.
    For example, all those concerning Apple Events.
    Such as:
    Enable receiving of Apple Events
    Set event recipient
    Use event recipient
    Send core event
    I think they should not affect the operation of the program.
    Can anyone confirm this ?

    Paul Mulroney replied 4 years, 1 month ago 3 Members · 2 Replies
  • 2 Replies
  • Scott

    October 2, 2019 at 11:40 pm

    It really depends on what you are using these commands for example if need to receive apple events then you should test to make sure it working. For example if you use an apple script to open or quit omnis you should test this script in omnis 8 to make sure it’s still working. I believe all of these commands have to do with apple scripting so it’s a good idea to find out why these were added and then test this functionality.
    From what I can tell it there isn’t a lot of info on what to do if the command is deprecated just that is was deprecated.

  • Paul Mulroney

    January 20, 2020 at 8:38 am

    Obsolete commands usually means that in some future version it will no longer exist. This is a warning – you should replace these commands with more modern equivalents.
    We had similar issues with other commands with an old Studio 6.1 app. When it moved to 10.1, suddenly it stopped working properly, because “Set return value” (which was a holdover from Omnis 7 days), was flagged as obsolete command for all versions of Omnis Studio, was now completely removed, and in Studio 10 it was commented out in the code. We had to do a quick edit and replace it with a “quit method returns <value>” instead. We were lucky it only appeared 162 times in the code 🙂
    Moral of the story: replace the obsolete commands at your leisure now, and save the heartache when you upgrade and suddenly find they have been completely removed!

Log in to reply.