-
-
Notifications
You must be signed in to change notification settings - Fork 165
Troubleshooting & Tips
Туляганов Тимур Ганиевич edited this page Jun 18, 2020
·
10 revisions
You can add a matcher (save it as the first one to be sure) that will log out the source bundle identifier as a notification message or a log message. Example:
module.exports = {
// ...
handlers: [ {
match: ({ sourceBundleIdentifier }) => {
finicky.notify(sourceBundleIdentifier);
finicky.log(sourceBundleIdentifier);
},
browser: "Google Chrome",
}]
}
You can also directly query the bundle identifier from an application using the mdls(1) command:
Mac:~ me$ mdls /Applications/iPhoto.app | grep kMDItemCF
kMDItemCFBundleIdentifier = "com.apple.iPhoto"
(credit to Mike Bradshaw)
Add a url rewrite handler like this and it will output the full object to the finicky console.
{
match(all) {
finicky.log(JSON.stringify(all, null, 2));
return false;
},
url: ({ url }) => url,
}
Initial URL: https://chime.aws/00000
Target URL: chime://meeting?pin=00000
Current configuration (not working):
defaultBrowser: "Google Chrome",
handlers: [
{
match: "chime.aws/*",
url: {
host: "meeting?pin=",
protocol: "chime"
},
browser: "Amazon Chime"
}
]
};
Problem with initial slash passed as parameter before the numeric ID, need to remove the slash.
2020-06-18 11:14:42 - Opens browser: Amazon Chime, url: chime://meeting?pin=/00000