Is it possible to change the order of the data presented in $POPUP for notifications?
Currently I get notifications in the format:
010220141234TESTNAME123-456-7890
For aesthetic reasons I would prefer to get the same info in the following order
TEST NAME
123-456-7890
01022014 1234
The reason for my request is that I have my PC forward Caller ID on my POTS line as an iMessage to my mobile. The way Apple parses the iMessage notifications I only see
010220141234TESTNAME...
in my notifications and I have to open iMessage and find the message in order to see the incoming caller number. Many times the caller name doesn't show up so simply seeing "No Caller ID" isn't helpful for me. One of the quirks of iMessages sent from my PC is that the messages appear as already "read" so finding my notification can be tricky if I'm getting a lot of other messages around the same time.
As an aside I'd also prefer to see dates posted as YYYYMMDD or YYYY-MM-DD since PC's tend to sort text lines left to right. Is that possible?
Last edit: nospam 2022-02-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure what you mean by "ncid client with a module to call your iMessage sender"? My NCIDD server is running on a raspberry pi (legacy setup) and I recently set up a mac-mini as a DVR which is allowing me to forward calls to iMessage. As far as I know apple doesn't allow non-mac clients to connect to iMessage.
I use an applescript on my mac-mini to send my message via command line when NCIDpop receives a call notification.
One quick comment/question: NCIDpop now shows the number differently. Before it only showed the "Number" column as a formatted seven digit number with hyphens, now it seems to show the raw cidcall.log string which may or may not include hyphens, country code etc.
example
222-333-4444
now displays as
+1 222-333-4444
and callers with more than 11 digits
442038850412
are displayed without any formatting but in the previous version was displayed as
203-885-0412
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure what you mean by "ncid client with a module to call your iMessage sender"? My NCIDD server is running on a raspberry pi (legacy setup) and I recently set up a mac-mini as a DVR which is allowing me to forward calls to iMessage. As far as I know apple doesn't allow non-mac clients to connect to iMessage.
I use an applescript on my mac-mini to send my message via command line when NCIDpop receives a call notification.
If I'm understanding this correctly, it should be easy to create an ncid module to handle this as you're already sending the message via command line in NCIDpop. The ncid module can execute an applescript using the osascript command. This could be a useful module for other Mac users as well so if you'd like to send me details via email and attachment to my personal email address -- how you've set it up in NCIDpop, and the applescript itself -- I can wrap the ncid module code around it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's pretty straight forward. Here is the script, saved in my home directory as "imessage" and use 744 for permissions. I attached a screen shot for the NCIDpop settings.
#!/usr/bin/osascript--anotherwayofwaitinguntilanappisrunningonwaitUntilRunning(appname,delaytime)repeatuntilmyappIsRunning(appname)tellapplication"Messages"toclosewindow1delaydelaytimeendrepeat--thefactthatMessages.appisrunning--doesnotmeanitisreadytosend,--unfortunately,addanothersmalldelaydelaydelaytimeendwaitUntilRunningonappIsRunning(appName)applicationappnameisrunningendappIsRunning--usesystemevents(unused)onSysevAppIsRunning(appName)tellapplication"System Events"to(nameofprocesses)containsappNameendappIsRunning--usefinder(unused)onfinderAppIsRunning(appName)tellapplication"Finder"to(nameofeveryprocess)containsappNameendappIsRunning--createinitialconversationinMessages--adaptedfrom@iSilentPoncreateMessagesConversation(phoneNumber,message)activateapplication"Messages"tellapplication"System Events"totellprocess"Messages"keycode45usingcommanddown--pressCommand+NtostartanewwindowkeystrokephoneNumber--inputthephonenumberkeycode36--pressEntertofocusonthemessageareakeystrokemessage--typesomemessagekeycode36--pressEntertosendendtellendcreateMessagesConversation--takenfrom:--http://stackoverflow.com/questions/11812184/how-to-send-an-imessage-text-with-applescript-only-in-provided-service--thankstousers@Sensefuland@DigiLordonrun{targetBuddyPhone,targetMessage}--handlesconversationnotstarted--doesnothandlecontactnotexistingsethasErrortofalsetellapplication"Messages"--ifMessages.appwasnotrunning,launchitsetwasRunningtotrueifitisnotrunningthensetwasRunningtofalselaunchclosewindow1mywaitUntilRunning("Messages",1)closewindow1endiflog"trying via imessage"trysettargetServiceto1stservicewhoseservicetype=iMessagesettargetBuddytobuddytargetBuddyPhoneoftargetServicesendtargetMessagetotargetBuddylog"sent via imessage"onerrorlog"trying via SMS"trysettargetServicetoservice"SMS"settargetBuddytobuddytargetBuddyPhoneoftargetServicesendtargetMessagetotargetBuddylog"sent via SMS"onerrorsethasErrortotrueendtryendtry--iftheappwasnotrunning,closethewindowifnotwasRunningclosewindow1endifendtellifhasErrorlog"trying via new conversation"trycreateMessagesConversation(targetBuddyPhone,targetMessage)log"sent via new conversation"onerrorlog"contact does not exist, can not send message"endtryendifendrun
Is it possible to change the order of the data presented in $POPUP for notifications?
Currently I get notifications in the format:
For aesthetic reasons I would prefer to get the same info in the following order
The reason for my request is that I have my PC forward Caller ID on my POTS line as an iMessage to my mobile. The way Apple parses the iMessage notifications I only see
in my notifications and I have to open iMessage and find the message in order to see the incoming caller number. Many times the caller name doesn't show up so simply seeing "No Caller ID" isn't helpful for me. One of the quirks of iMessages sent from my PC is that the messages appear as already "read" so finding my notification can be tricky if I'm getting a lot of other messages around the same time.
As an aside I'd also prefer to see dates posted as YYYYMMDD or YYYY-MM-DD since PC's tend to sort text lines left to right. Is that possible?
Last edit: nospam 2022-02-11
After some checking, and lining up someone who can build the Windows installer, I think this reordering can be done.
Are you using the "3rd party notifier" option? When I try it, everything in $POPUP comes out as a string without any line separation.
Yes , I am using 3rd Party Notifier.
I am also using NCIDpop 0.10.11 on my MacOSX if that makes any difference.
I have changed the order of the information that comes out in the pop-up and put new files in https://sourceforge.net/projects/ncid/files/ncidpop/0.10.13/
I don't have the tools to build the installer for the Mac but I'm hoping you can find your current NCIDpop.jar file and replace it with a new one.
As another thought, have you considered using the ncid client with a module to call your iMessage sender?
Last edit: Ed Attfield 2022-04-12
Seems to work, thanks.
I'm not sure what you mean by "ncid client with a module to call your iMessage sender"? My NCIDD server is running on a raspberry pi (legacy setup) and I recently set up a mac-mini as a DVR which is allowing me to forward calls to iMessage. As far as I know apple doesn't allow non-mac clients to connect to iMessage.
I use an applescript on my mac-mini to send my message via command line when NCIDpop receives a call notification.
One quick comment/question: NCIDpop now shows the number differently. Before it only showed the "Number" column as a formatted seven digit number with hyphens, now it seems to show the raw cidcall.log string which may or may not include hyphens, country code etc.
example
222-333-4444
now displays as
+1 222-333-4444
and callers with more than 11 digits
442038850412
are displayed without any formatting but in the previous version was displayed as
203-885-0412
Hi nospam,
If I'm understanding this correctly, it should be easy to create an ncid module to handle this as you're already sending the message via command line in NCIDpop. The ncid module can execute an applescript using the osascript command. This could be a useful module for other Mac users as well so if you'd like to send me details via email and attachment to my personal email address -- how you've set it up in NCIDpop, and the applescript itself -- I can wrap the ncid module code around it.
It's pretty straight forward. Here is the script, saved in my home directory as "imessage" and use 744 for permissions. I attached a screen shot for the NCIDpop settings.