mirror of
https://github.com/airmessage/airmessage-server.git
synced 2026-04-26 01:05:50 +03:00
[PR #33] [MERGED] Fixes for Invalid Index errors. #46
Labels
No labels
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/airmessage-server#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/airmessage/airmessage-server/pull/33
Author: @j4byers
Created: 9/16/2022
Status: ✅ Merged
Merged: 9/18/2022
Merged by: @tagavari
Base:
main← Head:main📝 Commits (3)
8160e07Fixes for Invalid Index Errors on Incoming Calls5a98637Fixes Detection of Incoming Call (Looks for "FaceTime Video" in Notification)1c3e52eRemove redundant lines and fix indents.📊 Changes
6 files changed (+59 additions, -35 deletions)
View changed files
📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/acceptPendingUser.applescript(+9 -5)📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/getActiveLink.applescript(+20 -11)📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/getNewLink.applescript(+7 -5)📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/initiateOutgoingCall.applescript(+15 -8)📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/leaveCall.applescript(+7 -5)📝
AirMessage/AppleScript/AppleScriptSource/FaceTime/queryIncomingCall.applescript(+1 -1)📄 Description
@tagavari Hey, I replied to you on Discord -- these are the fixes that have eliminated those AppleScript Invalid Index errors for me. Basically makes use of some repeat loops to detect the presence of the buttons we're looking for, and uses try catch exceptions to prevent stopping on irrelevant errors.
In the future, I might try speeding up the execution of these scripts by replacing some of the arbitrary delays with similar loops.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.