Applescript for Reminders + Mail linked together - macos

On macOS and iOS, one can create reminders (in Reminders.app) from Mail.app such that when the Mail icon is clicked (or tapped on an iPhone), the source email opens in Mail.app, without further ado.
For instance, in this (attached image), I'd simply have to click on the icon on the far right to open the source email in Mail.app.
I am looking for a way to programmatically achieve this behavior using applescript. I tried setting the reminder url using "message:" and while that works on the MBP, it doesn't work on the iPhone.
Any help appreciated.

Related

Use apple automator to open a pdf in acrobat and enter keystroke on the dialog that pops up when I run acrobat

I'm trying to use Automator on my mac to get around a system dialog. When I open a pdf I get this dialog from acrobat for which I always want to select deny:
I made an automator app that works to select deny, but when I change the application that opens pdf's to this automator.app it doesn't actually open the document, it just launches acrobat and selects deny on the dialog then just sits there.
The way I'd like it to work is that I want to double click any pdf on my computer and always select deny on this dialog which always pops up whenever acrobat opens up.
I'm not married to accomplishing this the way I'm doing it now, I just don't know how else to do it.
The current automator steps/flow is this:
Ok I found how to do this in a slightly different way for anyone interested. Just using the Watch Me Do function instead since it always pops up the same way. Then I just saved it as an app and I right clicked a pdf file and selected this custom app as the one to always use when opening pdf files.

Unable to move small window when making a phone call in Facetime on macOS 10.15.7

It is possible to make audio phone calls directly from macOS using the Facetime app and this works very well. Unfortunately a small Window is placed on the top/right counter of the screen and I cannot seem to be able to move or minimize this window. Has anyone an idea on how to customize the location of this window?
You can't move or minimize the window that supports a call, it's a sort of static notification.
More people are annoyed by this:
https://discussions.apple.com/thread/8095870
https://discussions.apple.com/thread/8085443?page=1
You can disable the notification via System Preferences > Notifications > Facetime by unticking "Badge app icon".
I do appreciate the notification to answer the call. Even though my MacBook has a touch bar which also allows me to Answer/End, Video or Mute. Also note the touch bar doesn't sport the button you need when you have to dial during a call ("Select 1 for department A, Select 2 for department B"). So, you'll need the pop-up.
You can kill the pop-up as documented over here:
https://apple.stackexchange.com/a/313721
(somebody even shared a script for the kill command using an Automator Applet)
Don't forget to provide Apple feedback on this. Even though it's been a few years, hopefully they'll find a better solution than the current notification.
https://www.apple.com/feedback/macbook.html
I recently discovered a simple way to hide the call window. Right click on the FaceTime dock icon and click Hide. That's it. You can also move the window by clicking and dragging the waveform area.

Open a popup (e.g. native browser) from a Teams desktop client app tab

Is there any way to pop open a browser window from a Teams app tab (desktop client)?
I came across the following link and from my interpretation of the reply it seems it's not possible.
Quoted from link for reference:
Unfortunately it’s not possible to use window.open in Teams tabs. Because we block opening of new windows to arbitrary sites within our Teams Desktop Client (for security reasons) you need to always use microsoftTeams.authentication.authenticate (if you want a popup window) or microsoftTeams.tasks.startTask (if you want an iframe-based dialog) to open a secondary app view.
It's not very clear to me what the microsoftTeams.authentication.authenticate reference above is suggesting.
Alternatively, if not a browser window, can we attempt to open another app installed on the device (e.g. Excel)?
Thanks in advance!
Are you just wanting to launch a new browser entirely? If so, a regular anchor tag, with a target attribute (e.g. ...), will work fine (I'm doing this in a tab myself, and it's working without problem).
You could try using a TaskModule to open a custom HTML/ Javascript or an iframe based widget inside a popup from within your Teams tab.
microsoftTeams.authentication.authenticate() will let you Authenticate the user against you tab. You can find the docs for this here.

How do I test a program made with Google Drive API

Beginner question here. Let's say I have my program in Javascript and it's connected to a server. The goal of this program would be that once you right click on a document, it appears in the "Open With" tab. How would I be able to test that this works? How would i get it to appear within this tab? This is probably some dumb oversight on my part,
Thanks in advance.
What you're trying to do is Connect apps to Drive. To do that, your app must be a Chrome app and it must be uploaded on the Chrome store.
If you've done that, follow these steps:
Click the "My Drive" dropdown button in Google Drive.
Click "More" amongst the selection.
Click "+ Connect more apps".
A window will appear showing different apps. Type the name of your app in the Search bar.
Choose the app and click "Connect" button.
You're app will now appear in the Open-with contextmenu (right-clicking) if it is able to open your Drive files.

Intercepting click on send in Mail.app

Is it possible to intercept click on Send in Mac OS X Mail application?
Thanks
You can, but it won't necessarily be easy. You should be able to inject some code into the program (see for example SIMBL and F-Script Anywhere) and then change the button's target.
Basically it can be done by using Accessibility APIs. I listen to moue click events in my application, so when I get a click I check whether the Mail.app is a frontmost application and whether a click came from Send button UIElement.

Resources