Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Tweaks to Assure iMessage Functionality #64

Open
wilcoxsonm21 opened this issue Apr 15, 2020 · 0 comments
Open

Small Tweaks to Assure iMessage Functionality #64

wilcoxsonm21 opened this issue Apr 15, 2020 · 0 comments

Comments

@wilcoxsonm21
Copy link

First of all, thanks so much for creating this tool and distributing it to the community.

It is extremely kind to spend so much effort to create something so useful and share it with others.
I really appreciate it.

I found a few potential small errors/tweaks that were necessary for me to get it to work with iMessage.
These may be particular to my machine, or true broadly. Without testing on multiple machines/different operating systems I cannot verify that.
However, in the text messaging variables, a few tweaks were necessary for me, both to get the icon to show up properly and (I believe) to trigger the message process to start. I changed the following lines of code from:
set messageAppIconFilepath to "/System/Applications/Messages.app/Contents/Resources/MessagesAppIcon.icns"
set messageIconDialogPath to "System:Applications:Messages.app:Contents:Resources:MessagesAppIcon.icns"
to
set messageAppIconFilepath to
"/Applications/Messages.app/Contents/Resources/MessagesAppIcon.icns"
set messageIconDialogPath to "Applications:Messages.app:Contents:Resources:MessagesAppIcon.icns"
This revised code correctly matches the native file structure of macOS, while the other does not. The application folder is not in a system folder. Thus, this was able to correctly retrieve the icon and I believe start the process.

Without further edits, I still got errors in getting a message service. After some Googling, I changed these lines:
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy phoneNumber of targetService
to
set targetService to id of 1st service whose service type = iMessage
set targetBuddy to buddy phoneNumber of service id targetService

Hope this helps someone.

Sorry if my post is incorrect/doesn't follow GitHub etiquette. This is my first post so I would appreciate any feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant