Hence, even if the matter leads to the desecration of Shabbat indirectly, and in a society that defines itself as observant of the Sabbath, we are dealing with a society that defines itself as observant of the Sabbath, it does not raise or lower the level for the purpose of establishing the exemption, even if in the eyes of the plaintiffs its conduct is in the framework of one word in the heart, and as they put it, "a scoundrel in the authority of the Torah."
In the case of the walnut shell, an interesting point in this context is that according to Jewish law, a resident of Eretz Yisrael who went abroad and intended to return must observe the second day of the exile (when three pilgrimages last two days for the halakhic reason of "sepika dima") to be stringent on the part of "the materials of the place where he went there" (SA, Orach Chayim, 99:3, ben Eretz Yisrael who went abroad). The people of Eretz Yisrael who came to a place abroad that also has a Jewish settlement (which within its Shabbat area - two thousand cubits outside the city and the entire area of the city is continuous - there is a Jewish community that practices on Yom Tov Sheni) are forbidden to work on Yom Tov Sheni, even if they intend to return to Israel. In other words, it is explicit that the people of Eretz Yisrael who are in a place of settlement abroad, even if they intend to return to the Land of Israel, must observe a second Yom Tov while they are there, even though they do not observe a complete Yom Tov, but strictly follow the custom of the place where they are found. While it can be argued that the second Yom Tov of the exiles is rabbinic, while the first Yom Tov is from the Torah, the question arises as to whether a flight would have been postponed by three days from the eve of Rosh Hashanah to the end of Shabbat, for example, close to Rosh Hashanah (since this is the case, since Rosh Hashanah falls on a Thursday, i.e., the eve of the holiday is on Wednesday evening, and the end of Yom Tov in Israel is also on Thursday evening, and Friday is the second Yom Tov). Thus, even the second Yom Tov of Rosh Hashanah is rabbinic (and it is not the second Yom Tov of the exiles, but also falls in Israel), and it seems that the flight would have been postponed until the end of the second Yom Tov that falls in New York (and there is no difference between Eretz Yisrael and abroad) and not to fly during the second Yom Tov or the end of the first Yom Tov, when the return flights had already been scheduled to be as foreigners. In this context, it is interesting to note that in 2010, President Shimon Peres sought advice on whether as an Israeli resident who is not obligated to observe Yom Tov, he can fly to Israel on the eve of the holiday in Israel, while in New York the holiday is still in effect and accepted the advice of the rabbis and refrained from flying from New York to Israel on the second Yom Tov of the exiles (Sukkot) due to his status as the president of the Jewish people and extended his stay in New York.