Starting/Stopping Timers and Adding Time Entries via AppleScript

Simply copy the following script(s) into a new "Script Editor" document and press run.
After pasting them, consider saving the scripts to disk for future re-use. You could even save them to iCloud Drive (or e.g. Dropbox or Google Drive) to have them available on all your Macs.
Feel free to customize them for your use cases; if you need details on how a particular method works, please refer to our AppleScript reference.

Note: We do not take responsibility for any data loss incurred by running these scripts.
Make sure to back up your data (e.g. by copying the directories mentioned here to a different location) before running these scripts.

Starting and Stopping a Timer

-- Copyright (c) 2024 Timing Software GmbH. All rights reserved.
-- This script is licensed only to extend the functionality of Timing. Redistribution and any other uses are not allowed without prior permission from us.
tell application "TimingHelper"
	if not scripting support available then
		error "This script requires a Timing Expert subscription. Please contact support via https://timingapp.com/contact to upgrade."
	end if
end tell
tell application "TimingHelper"
	set pr to front project whose name is "ProjectXYZ"
	start timer with title "What you were doing" project pr for about 3600
	-- and later:
	stop current timer with notification  -- if you don't want Timing to display a notification about the stopped timer, remove the 'with notification'
end tell

Creating A Time Entry

-- Copyright (c) 2024 Timing Software GmbH. All rights reserved.
-- This script is licensed only to extend the functionality of Timing. Redistribution and any other uses are not allowed without prior permission from us.
tell application "TimingHelper"
	if not scripting support available then
		error "This script requires a Timing Expert subscription. Please contact support via https://timingapp.com/contact to upgrade."
	end if
end tell
set datevar to current date
set hours of datevar to 7
set minutes of datevar to 0
set seconds of datevar to 0

tell application "TimingHelper"
	add time entry from (datevar) to (datevar + 60 * minutes) with title "foo" project (front project whose name is "ProjectXYZ")
	-- note: if there are two projects with the same names, but different parent projects, you can address them as follows:
	-- front project whose name chain is "Parent1 ▸ Child"
	-- front project whose name chain is "Parent2 ▸ Child"
end tell

Take our free 5-day course to get started with Timing.