AppleScript delete Reminder by ID / UID?

Hi there,
I’m trying do delete a specific Reminder per Apple Script with only the UID / ID and I’m stuck.

I’ve got the UID of the Reminder as text. Afaik id of reminder is r/o text…

set delThisID to “68B7CCEA-BE79-4602-83EB-9F28812A44A4”

so when I “return id of first reminder” I’ll get “x-apple-reminder://68B7CCEA-BE79-4602-83EB-9F28812A44A4”

I tried "


tell application "Reminders" 
delete first reminder whose id is delThisID
end tell

but with no luck

Any idea how I can select and delete any specific reminder by its UID / ID when having the UID as text??

Looking forward to your help!

Hi. Your delThisID variable needs to contain the whole ID string or it won’t be a valid comparison.

Hi,

could you please tell me, what I’m doing wrong?


tell application "Reminders"
set myID1 to id of first reminder
return first reminder whose id = myID1
end tell

imho this should work, shouldn’t it?

the id is composed of the URL scheme “x-apple-reminder://” and the UUID.
You have to write

set UUID to "68B7CCEA-BE79-4602-83EB-9F28812A44A4"

tell application "Reminders"
	delete (1st reminder whose id is "x-apple-reminder://" & UUID)
end tell

or still easier

tell application "Reminders"
	delete reminder id "x-apple-reminder://" & UUID
end tell