Trying to select List in Reminder App, to add a reminder. it gives error error "Reminders got an error: Can’t make {"BillsTo Pay"} into type integer." number -1700 from {"BillsTo Pay"} to integer I tried various solution, none works
Plz advise whts causing the issue, and any pointers to resolve. Tx in advance
tell application "Reminders"
set listNames to {}
repeat with aList in lists
copy name of aList to end of listNames
end repeat
--get listNames
(*
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to ", "
set listNames to listNames as text
set AppleScript's text item delimiters to oldDelimiters
get listNames
*)
(*
repeat with x from 1 to (count listNames)
try -- skip errors
set item x of listNames to (item x of listNames as integer)
end try
end repeat
*)
(*
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to ","
set listNames to listNames as list
set AppleScript's text item delimiters to oldDelimiters
*)
set myList to choose from list listNames with prompt "Select the list to add Reminder"
set newremin to (make new reminder in list myList with priority) is 1
end tell