Sorry, I have bad English, what script do I need? I need the programme to never change the time. Literally an analogue of runasdateSomeone made an AppleScript, that can be saved as an app https://apple.stackexchange.com/a/92102
Save a script as an app in Script Editor on Mac https://support.apple.com/guide/script-editor/scpedt1072/mac
--Get time setting for action to occur
set t to "3:16:30 PM"
--build a time string to use as a target.
set cd to (current date) as text
set AppleScript's text item delimiters to " "
set targetTime to text items 1 thru -3 of cd
set targetTime to date ((targetTime as text) & " " & t)
repeat while (current date) < targetTime
beep
delay 30 -- check the time every 30 seconds
end repeat
tell application "Mail"
quit
end tell
I don't need to close the app, I need it to always work but the time in it stopped, is this possible?This one:
AppleScript:--Get time setting for action to occur set t to "3:16:30 PM" --build a time string to use as a target. set cd to (current date) as text set AppleScript's text item delimiters to " " set targetTime to text items 1 thru -3 of cd set targetTime to date ((targetTime as text) & " " & t) repeat while (current date) < targetTime beep delay 30 -- check the time every 30 seconds end repeat tell application "Mail" quit end tell
Replace "3:16:30 PM" with the time you want your app to close and "Mail" with the name of the app you want to close.