Therefore, it is permitted to begin a labor on Erev Shabbat close to darkness, even though he cannot complete it while it is still day and it is completed on its own on Shabbat, such as soaking ink and dyes in water, and they soak throughout the entire Shabbat; and to place bundles of flax into an oven so that they will be whitened, and whitening is among the primary categories of labor; and similarly flax that he removed from the soaking-pool and places in the fire to dry it, and it contains the prohibition of cooking. (Mordechai, first chapter). And why do we not decree in this case lest he rake the coals, as we decree regarding all things that are on the fire, as will be explained in siman 253? They explained in the Gemara (18b) that since the wind ruins the flax, he will not open the oven to rake the coals. And similarly, it is permitted to place wool into a dyer's vat on Erev Shabbat close to darkness, and the wool is dyed throughout the entire Shabbat. However, in this there is a concern lest he rake the coals on Shabbat in order to hasten the cooking, and therefore there is no permission unless the vat is not on the fire, having been removed from the fire. (Gemara, ibid.). And even if it is not on the fire, nevertheless we require that the vat be covered, and the cover must be sealed with clay around it, for if not so, we fear lest he stir it with a spoon; and one who stirs a boiling pot, even if it is not on the fire, is liable on account of cooking, for through this they hasten the cooking, as I wrote in siman 318. And although it will be explained there that this applies to food that is not fully cooked, but regarding that which is cooked there is no cooking prohibition in stirring—this applies to food, but regarding dye, even when it is fully cooked the dye is absorbed, and it constitutes dyeing, and this is among the primary categories of labor. But when it is sealed with clay, we do not fear that he will remove the sealant with the cover and stir, for since this requires much time, he will remember that today is Shabbat. However, when it is not sealed and in a brief moment he can remove the cover and stir it, there is reason to fear that he will forget that today is Shabbat. And similarly, it is permitted to spread traps for beasts, birds, and fish on Erev Shabbat close to darkness, and they are trapped throughout the entire Shabbat. And although the trap performs an action, in that it captures the living creatures within it, we have already explained at the beginning of siman 246 that we are not commanded regarding the resting of vessels; see there. (See Bach there, that the Rokeach holds that even Beit Hillel holds of the resting of vessels where it performs an action, but all the poskim do not hold so; see there.)
ולכן מותר להתחיל במלאכה בערב שבת סמוך לחשיכה, אף על פי שאין יכול לגומרה מבעוד יום ונגמרת מאליה בשבת, כגון לשרות דיו וסממנים במים, והם נשרים כל השבת, ולתת אגודות של פשתן לתנור כדי שיתלבנו, וליבון הוא מאבות מלאכות, וכן פשתן שהעלה מן המשרה ונותנה באור לייבשו, ויש בו איסור בישול. (מרדכי פרק קמא)ולמה לא גזרינן בזה שמא יחתה בגחלים, כדגזרינן בכל הדברים שעל האש, כמו שיתבאר בסימן רנ"ג, פירשו בגמרא (י"ח:) דכיון דהרוח מקלקל את הפשתן - לא יפתח התנור לחתות בגחלים. וכן מותר ליתן צמר בתוך היורה של צבע בערב שבת סמוך לחשיכה, והצמר נצטבע כל השבת. אך בזה יש חשש שמא יחתה בגחלים בשבת כדי למהר הבישול, ולכן אין היתר רק כשאין היורה על האש, שעקרוהו מן האש. (גמרא שם) ואפילו אינו על האש - מכל מקום בעינן שתהא היורה מכוסה, והכיסוי יהא טוח בטיט סביב, דאם לא כן חיישינן שמא יגיס בה בכף, והמגיס בקדירה רותחת, אפילו אינה על האש - חייב משום מבשל, דבזה ממהרים הבישול, כמ"ש בסימן שי"ח. ואף על גב דשם יתבאר דזהו בתבשיל שאינו מבושל כל צרכו, אבל במבושל אין במגיס משום בישול - זהו בתבשיל, אבל בצבע גם כשמבושל כל צרכו נקלט הצבע - והוי צובע, וזהו מאבות מלאכות. אבל כשהוא טוח בטיט - לא חיישינן שיסיר הטיח עם הכיסוי ויגיס, דכיון דלזה צריך הרבה זמן - יזכור שהיום שבת. אך כשאינו טוח וברגע קלה מסיר הכיסוי ומגיס בו - יש לחוש שישכח ששבת היום. וכן מותר לפרוס בערב שבת סמוך לחשיכה מצודות חיה ועופות ודגים, והם נצודים כל השבת. ואף על גב דהמצודה עושה מעשה, שתופסת לתוכה את הבעלי חיים - כבר בארנו בריש סימן רמ"ו דאין אנו מצווין על שביתת כלים ע"ש. (עיין ב"ח שם דהרוקח סבירא ליה דגם בית הלל אית ליה שביתת כלים היכא דקעביד מעשה, אבל כל הפוסקים לא סבירא ליה כן ע"ש)