G’day scripters.
I’ver added a small amount of code to my main app, but it won’t run.
The only code I’ve added is below, and I’ve edited it till the cows come home..
Can anyone decipher the error message, please?
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0x656e6f4e45' abort() called terminating with uncaught exception of type NSException
Regards
Santa
property specialReportValue : "None" property specialReportSetter : -1 property specialReportLastSent : -1
on checkforHourlyReport() try set cc to current date set cch to hours of cc as integer if cch = my specialReportSetter and cch ≠ my specialReportLastSent then my sendSpecialReport(cch) my saveTheGeneralData() end if
on setUpRetrieveEmail:sender setSelectedEmail to sender's title() tell application "Mail" try open item 1 of (every message of mailbox ("Year " & word -2 of setSelectedEmail) whose message id is last word of setSelectedEmail) end try end tell end setUpRetrieveEmail:
on setUpSpecialReport() PopUpButtonSpecialReport's removeAllItems() set specialReportTimes to {"12am", "1am", "2am", "3am", "4am", "5am", "6am", "7am", "8am", "9am", "10am", "11am", "12pm", "1pm", "2pm", "3pm", "4pm", "5pm", "6pm", "7pm", "8pm", "9pm", "10pm", "11pm"} (PopUpButtonSpecialReport's |menu|()'s addItemWithTitle:("None") action:"" keyEquivalent:"") repeat with eachTime in specialReportTimes -- here We tell the menu to create the item and add it (PopUpButtonSpecialReport's |menu|()'s addItemWithTitle:(eachTime as text) action:"setUpSpecialReportTime:" keyEquivalent:"") end repeat end setUpSpecialReport
on setUpSpecialReportTime:sender try set temp to sender's title() as text set my specialReportValue to temp as text my saveTheGeneralData() my setUpSpecialReportTimeSetter(temp) end try end setUpSpecialReportTime: Reading a .plist file
try set p to 23 set temp to nowreadList's specialReportValueKey my setUpSpecialReportTimeSetter(temp) end try try set p to 24 set my specialReportLastSent to nowreadList's specialReportLastSentKey end try
on sendSpecialReport(cch) set my setUpButtonAvailableNumbers to false set my activeButtonFlag to false set my runningMailer to true my setUpMailer("sendSpecialReport", cch) end sendSpecialReport
|